/* WUWT Book Reviews 2.0. Everything is scoped to .wuwt-br* so the theme is not affected. */
.wuwt-br, .wuwt-br-infobox {
	--br-red: #89000d;
	--br-red-dark: #6a000a;
	--br-ink: #1f2328;
	--br-muted: #5b636b;
	--br-line: #dfe2e6;
	--br-soft: #f5f6f8;
	--br-radius: 8px;
}
.wuwt-br-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- header ---------- */
.wuwt-br .entry-title { margin-bottom: .6em; }
.wuwt-br-banner { margin: 0 0 1em; }
.wuwt-br-banner img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--br-radius); }
.wuwt-br-intro { color: var(--br-ink); font-size: 1rem; line-height: 1.55; margin: 0 0 1.2em; }

/* ---------- controls ---------- */
.wuwt-br-controls { background: var(--br-soft); border: 1px solid var(--br-line); border-radius: var(--br-radius); padding: 14px; margin: 0 0 14px; }
.wuwt-br-search { display: flex; gap: 8px; }
.wuwt-br-search input[type="search"] { flex: 1 1 auto; min-width: 0; height: 42px; padding: 0 12px; font-size: 16px; border: 1px solid #b9bfc6; border-radius: 6px; background: #fff; color: var(--br-ink); margin: 0; box-shadow: none; }
.wuwt-br-search input[type="search"]:focus { outline: 2px solid var(--br-red); outline-offset: 1px; border-color: var(--br-red); }
.wuwt-br-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; font-size: 14px; font-weight: 600; line-height: 1; border: 1px solid #b9bfc6; border-radius: 6px; background: #fff; color: var(--br-ink); cursor: pointer; text-decoration: none; white-space: nowrap; margin: 0; }
.wuwt-br-btn:hover, .wuwt-br-btn:focus { border-color: var(--br-red); color: var(--br-red); text-decoration: none; }
.wuwt-br-btn:focus-visible { outline: 2px solid var(--br-red); outline-offset: 2px; }
.wuwt-br-btn-primary, .wuwt-br-search .wuwt-br-btn { height: 42px; background: var(--br-red); border-color: var(--br-red); color: #fff; }
.wuwt-br-btn-primary:hover, .wuwt-br-btn-primary:focus, .wuwt-br-search .wuwt-br-btn:hover { background: var(--br-red-dark); border-color: var(--br-red-dark); color: #fff; }

.wuwt-br-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.wuwt-br-field label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--br-muted); margin: 0 0 3px; }
.wuwt-br-field select { display: block; width: 100%; max-width: none; height: 38px; padding: 0 8px; font-size: 14px; border: 1px solid #b9bfc6; border-radius: 6px; background-color: #fff; color: var(--br-ink); margin: 0; }

.wuwt-br-sortbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; margin-top: 12px; }
.wuwt-br-seg { display: inline-flex; flex-wrap: wrap; align-items: center; border: 0; padding: 0; margin: 0; min-width: 0; }
.wuwt-br-seg legend { float: left; width: 100%; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--br-muted); margin: 0 0 3px; padding: 0; border: 0; }
.wuwt-br-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wuwt-br-seg label { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px; margin: 0; font-size: 14px; font-weight: 600; border: 1px solid #b9bfc6; background: #fff; color: var(--br-ink); cursor: pointer; white-space: nowrap; }
.wuwt-br-seg label span { font-size: 10px; }
.wuwt-br-seg label:first-of-type { border-radius: 6px 0 0 6px; }
.wuwt-br-seg label:last-of-type { border-radius: 0 6px 6px 0; border-left: 0; }
.wuwt-br-seg input:checked + label { background: var(--br-red); border-color: var(--br-red); color: #fff; }
.wuwt-br-seg input:focus-visible + label { outline: 2px solid var(--br-red); outline-offset: 2px; }
.wuwt-br-controls.wuwt-br-js .wuwt-br-apply { display: none; }
.wuwt-br-sortbar .wuwt-br-copywrap { margin-left: auto; }

/* ---------- copy link ---------- */
.wuwt-br-copywrap { position: relative; display: inline-flex; }
.wuwt-br-toast { position: absolute; z-index: 5; right: 0; bottom: calc(100% + 6px); padding: 6px 10px; font-size: 13px; line-height: 1.3; white-space: nowrap; color: #fff; background: #1d6b2f; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.2); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; pointer-events: none; }
.wuwt-br-toast.wuwt-br-toast-bad { background: #a1260d; }
.wuwt-br-toast.wuwt-br-toast-show { opacity: 1; visibility: visible; }
.wuwt-br-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--br-muted); cursor: pointer; margin: 0; }
.wuwt-br-iconbtn:hover, .wuwt-br-iconbtn:focus { color: var(--br-red); border-color: var(--br-line); background: #fff; }

/* ---------- status line ---------- */
.wuwt-br-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 12px; }
.wuwt-br-count { margin: 0; font-size: 14px; color: var(--br-muted); }
.wuwt-br-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.wuwt-br-chips li { margin: 0; padding: 0; }
.wuwt-br-chips li::before { content: none; }
.wuwt-br-chips a { display: inline-block; padding: 3px 10px; font-size: 13px; border-radius: 999px; background: #f3e6e7; color: var(--br-red); text-decoration: none; }
.wuwt-br-chips a:hover { background: var(--br-red); color: #fff; }
.wuwt-br-chips .wuwt-br-clear a { background: transparent; text-decoration: underline; color: var(--br-muted); }

/* ---------- grid (book covers are taller than video thumbs) ---------- */
.wuwt-br-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; list-style: none; margin: 0 0 20px; padding: 0; }
.wuwt-br-grid > li { margin: 0; padding: 0; min-width: 0; }
.wuwt-br-grid > li::before { content: none; }
.wuwt-br-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--br-line); border-radius: var(--br-radius); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.wuwt-br-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.10); }
.wuwt-br-cover { position: relative; display: block; aspect-ratio: 3 / 4; background: #2b2f36; overflow: hidden; }
.wuwt-br-cover img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.wuwt-br-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 22px 16px; text-align: center; color: #f5e6c8; background:
	linear-gradient(90deg, rgba(0,0,0,.28) 0 14px, transparent 14px),
	linear-gradient(160deg, #3a2420 0%, #6a000a 55%, #4b1015 100%);
	line-height: 1.3; box-shadow: inset 0 0 0 1px rgba(245,230,200,.15); }
.wuwt-br-ph-title { font-size: 15px; font-weight: 700; letter-spacing: .01em; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.wuwt-br-ph-author { font-size: 12px; font-weight: 600; opacity: .9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wuwt-br-card-body { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; padding: 10px 12px 12px; }
.wuwt-br .wuwt-br-card-title { margin: 0 28px 6px 0; padding: 0; font-size: 15px; line-height: 1.3; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wuwt-br .wuwt-br-card-title a { color: var(--br-ink); text-decoration: none; }
.wuwt-br .wuwt-br-card-title a:hover, .wuwt-br .wuwt-br-card-title a:focus { color: var(--br-red); text-decoration: underline; }
.wuwt-br-author, .wuwt-br-meta { margin: 0 0 4px; font-size: 13px; line-height: 1.4; color: var(--br-muted); }
.wuwt-br-author { color: var(--br-ink); font-weight: 600; }
.wuwt-br-card a, .wuwt-br-infobox a { text-decoration: none; }
.wuwt-br-author a, .wuwt-br-meta a { color: inherit; }
.wuwt-br-author a:hover, .wuwt-br-meta a:hover { color: var(--br-red); text-decoration: underline; }
.wuwt-br-meta { margin-top: auto; padding-top: 4px; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; }
.wuwt-br-topic a { display: inline-block; padding: 1px 8px; font-size: 12px; border-radius: 999px; background: #f3e6e7; color: var(--br-red); }
.wuwt-br-topic a:hover { background: var(--br-red); color: #fff; text-decoration: none; }
.wuwt-br-more { font-size: 12px; color: var(--br-muted); font-weight: 400; }
.wuwt-br-card-copy { position: absolute; top: 6px; right: 4px; }
.wuwt-br-empty { padding: 30px 16px; text-align: center; border: 1px dashed var(--br-line); border-radius: var(--br-radius); color: var(--br-muted); }

/* ---------- pagination ---------- */
.wuwt-br-pages { margin: 10px 0 24px; text-align: center; }
.wuwt-br-pages ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.wuwt-br-pages li { margin: 0; padding: 0; }
.wuwt-br-pages li::before { content: none; }
.wuwt-br-pages a, .wuwt-br-pages .wuwt-br-current { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; font-size: 14px; font-weight: 600; border: 1px solid var(--br-line); border-radius: 6px; background: #fff; color: var(--br-ink); text-decoration: none; }
.wuwt-br-pages a:hover, .wuwt-br-pages a:focus { border-color: var(--br-red); color: var(--br-red); }
.wuwt-br-pages .wuwt-br-current { background: var(--br-red); border-color: var(--br-red); color: #fff; }
.wuwt-br-gap { display: inline-flex; align-items: center; height: 38px; color: var(--br-muted); }
.wuwt-br-pageof { margin: 8px 0 0; font-size: 13px; color: var(--br-muted); }

/* ---------- single review page ---------- */
.wuwt-br-infobox { margin: 0 0 16px; padding: 12px 14px; background: var(--br-soft); border: 1px solid var(--br-line); border-left: 4px solid var(--br-red); border-radius: var(--br-radius); font-size: 15px; }
.wuwt-br-infobox dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; }
.wuwt-br-infobox dl > div { display: contents; }
.wuwt-br-infobox dt { margin: 0; font-weight: 700; color: var(--br-muted); }
.wuwt-br-infobox dd { margin: 0; color: var(--br-ink); }
.wuwt-br-infobox dd a { color: var(--br-red); }
.wuwt-br-infobox dd a:hover { text-decoration: underline; }
.wuwt-br-infobox-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.wuwt-br-infobox .wuwt-br-toast { right: auto; left: 0; }
.wuwt-br-back { font-size: 14px; font-weight: 600; color: var(--br-red); }

/* ---------- small screens ---------- */
@media (max-width: 767px) {
	.wuwt-br-filters { grid-template-columns: 1fr; gap: 8px; }
	.wuwt-br-sortbar .wuwt-br-copywrap { margin-left: 0; }
	.wuwt-br-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
}
@media (max-width: 479px) {
	.wuwt-br-controls { padding: 10px; }
	.wuwt-br-grid { grid-template-columns: 1fr 1fr; }
	.wuwt-br-sortbar { gap: 8px; }
	.wuwt-br-seg label { padding: 0 10px; font-size: 13px; }
	.wuwt-br-infobox dl { grid-template-columns: 1fr; gap: 0; }
	.wuwt-br-infobox dd { margin-bottom: 6px; }
	.wuwt-br-search .wuwt-br-btn { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.wuwt-br-card, .wuwt-br-toast { transition: none; }
}
