:root {
  color-scheme: dark;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #0a0a0b;
  color: #eceae4;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #0a0a0b; }
[hidden] { display: none !important; }
.hero { padding: 48px clamp(22px, 5vw, 72px) 32px; border-bottom: 1px solid #404146; background: #0f0f11; }
.eyebrow { margin: 0 0 8px; color: #e8a636; font-size: .78rem; font-weight: 800; letter-spacing: .18em; }
h1 { margin: 0; color: #e8a636; font-size: clamp(2.5rem, 7vw, 5rem); line-height: .95; }
.hero .updated-at { display: none; }
.stat .catalog-updated-at { margin-top: 8px; color: #aaa69d; font-size: .75rem; line-height: 1.4; }
h1 a { color: inherit; text-decoration: none; }
h1 a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
main { width: min(1400px, calc(100% - 36px)); margin: 0 auto; padding: 30px 0 60px; }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 12px; margin-bottom: 36px; }
.stat { width: 100%; padding: 18px; border: 1px solid #404146; border-radius: 14px; color: inherit; background: #1c1d20; font: inherit; text-align: left; cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.stat:hover, .stat:focus-visible { border-color: #9a7334; }
.stat:focus-visible { outline: 3px solid rgb(232 166 54 / 28%); outline-offset: 2px; }
.stat.is-active { border-color: #e8a636; background: #22201b; box-shadow: 0 5px 18px rgb(232 166 54 / 10%); }
.stat strong { display: block; color: #e8a636; font-size: 1.7rem; }
.stat span { display: block; color: #989691; font-size: .9rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
h2 { margin: 0; font-size: 1.7rem; }
#total-label { color: #e8a636; }
.search-label { display: block; margin-bottom: 8px; color: #989691; font-size: .9rem; font-weight: 600; }
.search { width: 100%; margin-bottom: 24px; padding: 14px 16px; border: 1px solid #56585e; border-radius: 12px; outline: none; background: #151619; color: #eceae4; font: inherit; }
.search::placeholder { color: #777973; }
.search:focus { border-color: #e8a636; box-shadow: 0 0 0 3px rgb(232 166 54 / 18%); }
.catalog-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin: -8px 0 24px; }
.catalog-controls label { color: #989691; font-size: .9rem; font-weight: 600; }
.sort-order { min-height: 42px; padding: 9px 13px; border: 1px solid #56585e; border-radius: 10px; color: #eceae4; background: #1c1d20; font: inherit; }
.sort-order:focus-visible { border-color: #e8a636; outline: none; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 18px 0; }
.pagination button { min-height: 42px; padding: 9px 13px; border: 1px solid #56585e; border-radius: 10px; color: #eceae4; background: #1c1d20; font: inherit; cursor: pointer; }
.pagination button:disabled { opacity: .45; cursor: default; }
.pagination button:focus-visible { outline: 2px solid #e8a636; outline-offset: 2px; }
.page-label { color: #989691; text-align: center; }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card { overflow: hidden; border: 1px solid #404146; border-radius: 16px; background: #1c1d20; color: inherit; text-decoration: none; cursor: pointer; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.card:hover { transform: translateY(-3px); border-color: #9a7334; box-shadow: 0 12px 28px rgb(0 0 0 / 24%); }
.card:focus-visible { outline: 3px solid #e8a636; outline-offset: 3px; }
.poster { width: 100%; aspect-ratio: 2 / 3; display: block; object-fit: contain; background: #151619; }
.card-body { padding: 16px; }
.card h3 { min-height: 2.6em; margin: 0 0 12px; font-size: 1.08rem; line-height: 1.3; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 5px 9px; border: 1px solid #6e5224; border-radius: 999px; color: #e8a636; background: #2c2416; font-size: .8rem; }
.error { padding: 18px; border: 1px solid #9c413b; border-radius: 12px; color: #ffb4ab; background: #311714; }
.empty-results { padding: 30px; border: 1px solid #404146; border-radius: 14px; color: #989691; text-align: center; background: #1c1d20; }
.back-button { display: inline-block; margin-bottom: 20px; padding: 10px 16px; border: 1px solid #56585e; border-radius: 10px; color: #eceae4; text-decoration: none; background: #1c1d20; }
.back-button:hover, .back-button:focus-visible { border-color: #e8a636; color: #e8a636; }
.back-button-bottom { margin: 20px 0 0; }
.detail-card { padding: clamp(18px, 4vw, 34px); border: 1px solid #404146; border-radius: 18px; background: #1c1d20; }
.detail-layout { display: grid; grid-template-columns: minmax(190px, 300px) 1fr; gap: clamp(22px, 5vw, 54px); align-items: start; }
.detail-poster { width: 100%; aspect-ratio: 2 / 3; display: block; object-fit: contain; border-radius: 14px; background: #151619; }
.detail-card h2 { margin-bottom: 18px; font-size: clamp(1.8rem, 4vw, 3rem); }
.detail-review { margin-top: 26px; padding-top: 22px; border-top: 1px solid #404146; }
.detail-review h3 { margin: 0 0 12px; }
.detail-review p { margin: 0; color: #c5c3bd; line-height: 1.65; white-space: pre-wrap; }
.not-found { padding: 34px; border: 1px solid #404146; border-radius: 18px; background: #1c1d20; }
@media (max-width: 540px) {
  .hero { padding-top: 34px; }
  .pagination { gap: 8px; font-size: .85rem; }
  .pagination button { padding: 9px 10px; }
  main { width: min(100% - 24px, 1400px); }
  .catalog { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 12px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-poster { width: min(280px, 100%); margin: 0 auto; }
}

.identity { max-width: 760px; margin: 16px 0 12px; color: #b5b2aa; font-size: clamp(.9rem, 2vw, 1.04rem); line-height: 1.5; }
.brand { margin: 0; color: #e8a636; font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 700; line-height: .95; }
.brand a { color: inherit; text-decoration: none; }
.detail-card h1 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.1; margin: 0 0 18px; overflow-wrap: anywhere; }
.detail-review h2 { font-size: 1.1rem; margin-bottom: 12px; }
.detail-review .detail-review-heading { font-size: .9rem; font-style: italic; font-weight: 500; color: #aaa69d; }
.detail-review-text { text-transform: uppercase; }
.review-actions, .like-widget { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
/* Presentation only: embedded vectors keep the existing export allowlist intact. */
.share-whatsapp, .like-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; border: 1.5px solid #f5c568; border-radius: 999px;
  box-shadow: inset 0 1px 2px #fff0be55, inset 0 -3px 6px #0009, 0 0 12px #e8a63630;
  transition: box-shadow .16s ease, transform .12s ease;
  touch-action: manipulation;
}
.share-whatsapp {
  width: 56px; height: 56px; padding: 8px; flex: 0 0 56px;
  font-size: 0; background: radial-gradient(circle at 35% 25%, #14533d, #082b21 75%);
}
.share-whatsapp::before {
  content: ""; display: block; width: 38px; height: 38px;
  background: url("data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Csvg%20id%3D%22Layer_1%22%20data-name%3D%22Layer%201%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20720%20720%22%3E%0A%20%20%3Cdefs%3E%0A%20%20%20%20%3Cstyle%3E%0A%20%20%20%20%20%20.cls-1%20%7B%0A%20%20%20%20%20%20%20%20fill%3A%20%2325d366%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%3C%2Fstyle%3E%0A%20%20%3C%2Fdefs%3E%0A%20%20%3Cpath%20class%3D%22cls-1%22%20d%3D%22M360%2C0C161.18%2C0%2C0%2C161.18%2C0%2C360c0%2C65.41%2C17.45%2C126.75%2C47.94%2C179.61L0%2C720l187.02-44.21c51.34%2C28.18%2C110.28%2C44.21%2C172.98%2C44.21%2C198.82%2C0%2C360-161.18%2C360-360S558.82%2C0%2C360%2C0ZM360%2C655.52c-60.17%2C0-116.13-17.98-162.82-48.87l-110.49%2C28.14%2C30.99-105.61c-33.53-47.93-53.2-106.26-53.2-169.19%2C0-163.21%2C132.31-295.52%2C295.52-295.52s295.52%2C132.31%2C295.52%2C295.52-132.31%2C295.52-295.52%2C295.52Z%22%2F%3E%0A%20%20%3Cpath%20class%3D%22cls-1%22%20d%3D%22M444.35%2C407.52l87.1%2C41.06c4%2C1.88%2C6.56%2C5.94%2C6.2%2C10.34-.94%2C11.46-5.54%2C34.43-26.13%2C55.02-58.12%2C58.12-162.49-7.64-166.74-10.18-25.67-13.79-50.06-32.24-73.19-55.36-23.12-23.12-41.58-47.52-55.37-73.19-2.55-4.24-68.31-108.61-10.18-166.74%2C20.59-20.59%2C43.56-25.19%2C55.02-26.13%2C4.41-.36%2C8.46%2C2.2%2C10.34%2C6.2l41.07%2C87.1c1.94%2C4.12%2C1.09%2C9.02-2.13%2C12.24l-30.61%2C30.61c-6.62%2C6.62-8.56%2C16.93-4%2C25.11%2C11.17%2C20.03%2C26.19%2C39.32%2C43.59%2C57.07%2C17.75%2C17.4%2C37.04%2C32.43%2C57.07%2C43.59%2C8.18%2C4.56%2C18.48%2C2.62%2C25.11-4l30.61-30.61c3.22-3.22%2C8.12-4.08%2C12.24-2.13Z%22%2F%3E%0A%3C%2Fsvg%3E") center / contain no-repeat;
}
.like-button {
  gap: 12px; min-width: 210px; max-width: 100%; padding: 4px 22px 4px 16px;
  color: #ffda85; background: radial-gradient(ellipse at 25% 0%, #94602145, transparent 65%), linear-gradient(110deg, #21170c, #392714 38%, #14110d 70%, #30200f);
  font-size: clamp(1.15rem, 3.2vw, 1.45rem); font-weight: 800; letter-spacing: .035em;
  text-shadow: 0 1px 1px #000, 0 0 10px #e8a63635;
}
.like-button::before {
  content: ""; flex: 0 0 21px; width: 21px; height: 44px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2036%2088%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22gold%22%3E%3Cstop%20stop-color%3D%22%23a65c0b%22%2F%3E%3Cstop%20offset%3D%22.28%22%20stop-color%3D%22%23ffcc62%22%2F%3E%3Cstop%20offset%3D%22.47%22%20stop-color%3D%22%23fff2b3%22%2F%3E%3Cstop%20offset%3D%22.62%22%20stop-color%3D%22%23e5a02c%22%2F%3E%3Cstop%20offset%3D%22.84%22%20stop-color%3D%22%23ffd574%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%2392500c%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cg%20fill%3D%22url%28%23gold%29%22%20stroke%3D%22%23ffdc83%22%20stroke-width%3D%22.7%22%20stroke-linejoin%3D%22round%22%3E%3Cellipse%20cx%3D%2218%22%20cy%3D%229%22%20rx%3D%225%22%20ry%3D%227%22%2F%3E%3Cpath%20d%3D%22M14%2016h8l7%207-2%2023-5-8%201%2016-2%2020h-6l-2-20%201-16-5%208-2-23z%22%2F%3E%3Cpath%20d%3D%22m9%2024%209%2010%209-10-2%2012-7%205-7-5z%22%2F%3E%3Cpath%20d%3D%22M17%2031h2v39h-2z%22%2F%3E%3Cpath%20d%3D%22M12%2073h12v5H12zM8%2078h20v5H8zM4%2083h28v4H4z%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22m15%2020%203%209%203-9M15%2046l3%208%203-8M18%2055v17%22%20fill%3D%22none%22%20stroke%3D%22%239d5e13%22%20stroke-width%3D%221%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; filter: drop-shadow(0 0 4px #f5b54366);
}
.share-whatsapp:focus-visible, .like-button:focus-visible { outline: 2px solid #ffe0a0; outline-offset: 4px; }
.like-button.is-active { color: #fff0bb; border-color: #ffe4a2; background: radial-gradient(ellipse at 30% 0%, #b67d3255, transparent 70%), linear-gradient(110deg, #35220e, #513716 38%, #21180d 75%, #493014); box-shadow: inset 0 1px 2px #fff0be77, inset 0 -3px 6px #0009, 0 0 15px #e8a63655; }
.like-button:disabled { opacity: .55; cursor: wait; }
@media (hover: hover) {
  .share-whatsapp:hover, .like-button:hover:not(:disabled) { box-shadow: inset 0 1px 2px #fff0be77, inset 0 -3px 6px #0009, 0 0 17px #e8a63655; }
}
.share-whatsapp:active, .like-button:active:not(:disabled) { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) {
  .share-whatsapp, .like-button { transition: none; }
  .share-whatsapp:active, .like-button:active:not(:disabled) { transform: none; }
}

/* Keep both actions on one row in static and dynamic review pages. */
.review-actions { flex-wrap: nowrap; align-items: flex-start; }
.review-actions .like-widget { margin-top: 0; min-width: 0; }
.review-actions .like-status:not(:empty) { flex-basis: 100%; }
@media (max-width: 600px) {
  .review-actions { gap: 8px; }
  .review-actions .like-widget { flex: 1; }
  .share-whatsapp { width: 44px; height: 48px; min-height: 48px; flex-basis: 44px; padding: 6px; }
  .share-whatsapp::before { width: 30px; height: 30px; }
  .like-button { min-width: 0; width: 100%; min-height: 48px; padding: 4px 8px; gap: 7px; font-size: 1rem; letter-spacing: 0; }
  .like-button::before { flex-basis: 14px; width: 14px; height: 34px; }
}
.like-status { color: #aaa69d; font-size: .88rem; }
.detail-review p { overflow-wrap: anywhere; }
