/* Seasonal catalogue and chart cards. */
.bottom-nav { grid-template-columns:repeat(5,1fr); }
.bottom-nav .nav-indicator { width:calc((100% - 20px)/5); }
.bottom-nav button { min-width:0; }
.filter-button { position:relative; }
.filter-badge { position:absolute; top:-4px; right:-4px; display:grid; place-items:center; background:var(--accent); color:#fff; font-size:9px; min-width:17px; height:17px; padding:0 4px; border-radius:50%; }
#random-open.is-picking svg { animation:pick-turn .7s ease-in-out infinite; }
.season-heading { display:flex; align-items:center; gap:12px; padding:7px 0 13px; border-bottom:1px solid #4c4e52; }
.season-heading>div { flex:1; min-width:0; }
.section-eyebrow { display:block; font-size:8px; font-weight:700; color:var(--muted); letter-spacing:1.6px; margin-bottom:6px; }
.season-heading h1 { font:500 30px/1.25 var(--display); text-transform:uppercase; text-align:center; margin:0; letter-spacing:.3px; }
.season-tabs { display:flex; gap:8px; justify-content:center; padding:12px 0 17px; }
.season-tabs button { display:flex; justify-content:center; align-items:center; gap:8px; color:var(--muted); min-height:43px; min-width:120px; padding:8px 16px; border-bottom:2px solid transparent; font-size:13px; }
.season-tabs button.active { color:var(--text); border-color:var(--accent); background:#f04a3210; }
.season-tabs svg { width:19px; height:19px; }
.season-tabs button.active svg { color:var(--accent); }
.season-rail-wrap { position:relative; }
.season-rail { grid-template-rows:min-content; align-content:start; overflow-y:hidden; }
.rail-next { position:absolute; right:7px; top:34%; z-index:2; display:grid; place-items:center; width:39px; height:39px; border:1px solid #d8d4cb66; border-radius:50%; background:#151617d9; color:#fff; box-shadow:0 2px 10px #0005; }
.rail-next svg { width:20px; height:20px; }
.rail-next:hover { background:var(--accent); }
.season-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:38px; padding-top:4px; }
.season-footer p { margin:0; font-size:11px; }
.season-footer .text-button { font-size:11px; }
#season-section { margin-bottom:29px; }
.poster { display:grid; aspect-ratio:auto; border-radius:14px; clip-path:none; border:1px solid #494b5080; }
.poster:before { content:''; grid-area:1/1; width:100%; aspect-ratio:2/3; }
.poster img { position:absolute; inset:0; object-position:center; }
.poster-info { position:absolute; z-index:2; top:6px; left:6px; display:grid; place-items:center; width:23px; height:23px; border-radius:6px; background:#101112b8; color:#e8e5dd; }
.poster-info svg { width:16px; height:16px; }
.card { text-align:center; align-self:start; }
.card h3,.poster-rail .card h3,.poster-grid .card h3 { position:relative; z-index:1; grid-area:1/1; align-self:end; display:block; -webkit-line-clamp:unset; min-height:0; max-height:none; height:auto; overflow:visible; white-space:normal; overflow-wrap:anywhere; text-overflow:clip; margin:0; padding:32px 7px 9px; color:#fff; background:linear-gradient(0deg,#090a0bf5 0%,#090a0bca 72%,transparent); text-shadow:0 1px 3px #000a; font:600 17px/1.2 var(--display); text-transform:uppercase; letter-spacing:.05px; }
.resume-card .resume-title,.library-info h3,.detail-heading h2 { display:block; -webkit-line-clamp:unset; max-height:none; overflow:visible; white-space:normal; overflow-wrap:anywhere; text-overflow:clip; }
.card-meta,.poster-rail .card-meta { display:flex; align-items:center; justify-content:center; gap:8px; margin:4px 0 6px; font-size:10px; }
.poster-rail .card-meta>span:not(.score) { display:inline; color:var(--muted); }
.card-type { display:inline-block; max-width:100%; border:1px solid #a4a09a25; border-radius:20px; padding:3px 10px; background:#e8ded712; color:#ccc5bb; font-size:8px; line-height:1.3; font-weight:700; letter-spacing:.65px; text-transform:uppercase; }
.card-type[data-kind=TV] { background:#f04a3226; color:#ffb7aa; border-color:#f04a3233; }
.card-type[data-kind=MOVIE] { background:#caaf6d20; color:#dfca9a; border-color:#caaf6d33; }
.card-type[data-kind=ONA] { background:#6a9ba520; color:#b3d6dd; border-color:#6a9ba533; }
.card .score { font-size:10px; }
.rank-badge { position:absolute; z-index:2; top:7px; left:7px; display:grid; place-items:center; min-width:28px; height:28px; padding:0 6px; border-radius:9px; color:#171819; background:#f2eee5; font:800 13px/1 system-ui,sans-serif; box-shadow:0 2px 7px #0004; }
.rank-badge.podium { background:linear-gradient(135deg,#fff0ad,#cfaa4d); color:#382b0b; }
.charts-grid { grid-template-columns:repeat(5,minmax(0,1fr)); gap:27px 18px; }
.chart-tabs button { display:flex; align-items:center; gap:8px; font:500 22px var(--display); }
.chart-tabs svg { width:20px; height:20px; }
.chart-tabs button.active svg { color:var(--accent); }
.chart-footer { display:grid; justify-items:center; gap:10px; padding:27px 0 15px; }
.chart-footer p { margin:0; font-size:12px; }
.resume-art img { object-position:50% 50%; }
.catalog-filters { padding:14px 22px max(22px,env(safe-area-inset-bottom)); }
.catalog-filters .sheet-heading { margin-bottom:15px; }
.catalog-filters .sheet-heading h2 { margin:0; font-size:29px; }
.filter-group { border:1px solid #47494d; background:#202123e8; margin:8px 0; border-radius:5px; }
.filter-group summary { list-style:none; display:flex; align-items:center; justify-content:space-between; gap:8px; cursor:pointer; padding:12px; min-height:45px; color:var(--text); font-size:12px; }
.filter-group summary::-webkit-details-marker { display:none; }
.filter-group summary>span { color:#b3b0aa; font-size:13px; }
.filter-group[open] summary { border-bottom:1px solid #46484c; }
.filter-find { width:calc(100% - 20px); margin:10px; min-height:36px; border:1px solid #505257; border-radius:3px; background:#141517; color:var(--text); font-size:12px; padding:7px 9px; }
.filter-check-list { display:grid; max-height:190px; overflow-y:auto; padding:4px 10px 9px; overscroll-behavior:contain; scrollbar-width:thin; }
.filter-check-list.compact { grid-template-columns:repeat(2,minmax(0,1fr)); }
.filter-check-list label { display:flex; gap:10px; align-items:center; min-height:37px; font-size:12px; cursor:pointer; padding:5px 0; }
.filter-check-list input { accent-color:var(--accent); width:16px; height:16px; flex-shrink:0; }
.filter-check-list p { font-size:11px; }
.year-filter { margin:17px 0 11px; }
.year-filter>span { display:block; font-size:12px; color:var(--muted); margin-bottom:7px; }
.year-filter>div { display:flex; align-items:center; gap:9px; }
.year-filter input { min-width:0; width:50%; background:#202123; color:var(--text); border:1px solid #53555a; border-radius:4px; padding:10px; min-height:43px; font-size:12px; }
.catalog-filters .field { margin:11px 0; }
.catalog-filters .field select { min-height:43px; font-size:12px; }
.filter-actions { position:sticky; bottom:-23px; z-index:2; display:grid; grid-template-columns:43px 1fr 43px; gap:8px; padding:13px 0 5px; background:#151617f5; border-top:1px solid #44464b; margin-top:17px; }
.filter-actions .button { padding:9px; font-size:13px; min-height:45px; }
.filter-actions svg { width:18px; height:18px; }
#filter-error { color:#ffb6a7; font-size:12px; margin:10px 0; }
@media(min-width:1100px){.catalog-filters { margin:90px max(calc((100vw - 1060px)/2),25px) auto auto; width:390px; max-height:calc(100dvh - 120px); }}
@media(max-width:1000px){.charts-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }}
@media(max-width:760px){.charts-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }.season-tabs button { min-width:0; flex:1; }}
@media(max-width:600px){
  .season-heading { gap:8px; padding-top:0; padding-bottom:12px; }
  .season-heading h1 { font-size:23px; letter-spacing:0; }
  .season-tabs { gap:3px; padding:9px 0 13px; }
  .season-tabs button { padding:8px 3px; gap:5px; font-size:10px; min-height:41px; }
  .season-tabs svg { width:16px; height:16px; }
  .season-footer p,.season-footer .text-button { font-size:9px; }
  .card h3,.poster-rail .card h3,.poster-grid .card h3 { font-size:15px; }
  .card-meta,.poster-rail .card-meta { gap:5px; font-size:9px; }
  .card-type { font-size:7px; padding:3px 7px; letter-spacing:.35px; }
  .poster { border-radius:11px; }
  .poster-info { width:20px; height:20px; top:5px; left:5px; }
  .poster-info svg { width:14px; height:14px; }
  .rail-next { height:32px; width:32px; right:3px; top:29%; }
  .charts-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:23px 14px; }
  .poster-grid .card h3 { font-size:18px; }
  .rank-badge { min-width:27px; height:27px; font-size:12px; }
  .chart-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; overflow:visible; }
  .chart-tabs button { font-size:19px; margin-right:0; gap:4px; padding:10px 0; justify-content:center; min-width:0; }
  .chart-tabs svg { width:18px; height:18px; }
  .bottom-nav button { font-size:8px; }
  .filter-button { width:43px; height:43px; }
  .catalog-filters { max-height:91dvh; padding:12px 19px max(22px,env(safe-area-inset-bottom)); }
}
@keyframes pick-turn { 50% { transform:rotate(12deg); } }
@media(prefers-reduced-motion:reduce){#random-open.is-picking svg { animation:none; }}
