/* /discover/ page. Shared title-discovery.css (td-*) stays untouched for video pages and the discovery editor. */
*{box-sizing:border-box}
body.dsc-body{--dsc-accent:#e8544f;--dsc-accent-ink:#ff8a85;--dsc-ink:#f4f2ee;--dsc-body:#d6d3dc;--dsc-dim:#a8a5b0;--dsc-mute:#8a8792;--dsc-line:rgba(255,255,255,.09);--dsc-line-strong:rgba(255,255,255,.2);--dsc-bg:#0a0a0d;--dsc-panel:#111116;--dsc-raise:#17171d;--dsc-field:#0c0c10;margin:0;background:var(--dsc-bg);color:var(--dsc-ink);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:15px;line-height:1.5}
.dsc-body [hidden]{display:none!important}
button,input,select{font:inherit;color:inherit}
.dsc-shell :focus-visible,.dsc-dialog :focus-visible{outline:2px solid var(--dsc-ink);outline-offset:3px}
.dsc-sr,.dsc-skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.dsc-skip:focus{position:fixed;top:12px;left:12px;z-index:100;padding:10px 14px;border-radius:8px;background:var(--dsc-ink);color:#0a0a0d}
.dsc-shell{max-width:1240px;margin:0 auto;padding:clamp(22px,3vw,40px) 16px clamp(48px,6vw,80px)}

/* Header + search */
.dsc-head{max-width:760px;margin-bottom:clamp(20px,3vw,28px)}
.dsc-eyebrow{display:flex;align-items:center;gap:10px;margin:0 0 10px;color:var(--dsc-accent-ink);font:600 11px/1 "Space Mono",ui-monospace,monospace;letter-spacing:.16em;text-transform:uppercase}
.dsc-eyebrow:before{content:"";width:22px;height:1px;background:currentColor}
.dsc-head h1{margin:0 0 10px;font:700 clamp(2.2rem,1.5rem + 2.4vw,3.3rem)/1 "Space Grotesk",Inter,sans-serif;letter-spacing:-.03em}
.dsc-lead{max-width:62ch;margin:0 0 20px;color:var(--dsc-dim);font-size:15.5px;line-height:1.6}
.dsc-search{position:relative;display:flex;align-items:center}
.dsc-search svg{position:absolute;left:16px;width:20px;height:20px;fill:none;stroke:var(--dsc-mute);stroke-width:1.8;pointer-events:none}
.dsc-search input{width:100%;min-width:0;min-height:54px;padding:0 112px 0 48px;border:1px solid var(--dsc-line-strong);border-radius:12px;background:var(--dsc-field);font-size:16px}
.dsc-search input::placeholder{color:#75727d}
.dsc-search input:focus{border-color:var(--dsc-accent);outline:none;box-shadow:0 0 0 3px rgba(232,84,79,.16)}
.dsc-search button{position:absolute;right:6px;min-height:42px;padding:0 18px;border:1px solid var(--dsc-accent);border-radius:9px;background:var(--dsc-accent);color:#0a0a0d;font-weight:700;cursor:pointer}
.dsc-search button:hover{background:#f06a65}

/* Toolbar */
.dsc-toolbar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 16px;padding:14px 0;border-top:1px solid var(--dsc-line);border-bottom:1px solid var(--dsc-line)}
.dsc-types{display:flex;gap:2px;padding:3px;border:1px solid var(--dsc-line);border-radius:10px;background:var(--dsc-panel)}
.dsc-types button{min-height:38px;padding:0 16px;border:0;border-radius:7px;background:transparent;color:var(--dsc-dim);font-size:14px;font-weight:600;cursor:pointer}
.dsc-types button:hover{color:var(--dsc-ink)}
.dsc-types button[aria-pressed=true]{background:var(--dsc-ink);color:#0a0a0d}
.dsc-filter-toggle{display:none}
.dsc-filter-panel{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin-left:auto}
.dsc-field{display:grid;gap:6px}
.dsc-field label{color:var(--dsc-dim);font-size:12.5px;font-weight:600}
.dsc-field select{min-width:170px;min-height:44px;padding:0 38px 0 12px;border:1px solid var(--dsc-line-strong);border-radius:10px;appearance:none;background:var(--dsc-field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8a5b0' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center/16px;font-size:14px;cursor:pointer}
.dsc-field select:focus{border-color:var(--dsc-accent);outline:none;box-shadow:0 0 0 3px rgba(232,84,79,.16)}

/* Summary: count + chips */
.dsc-summary{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;min-height:52px;padding:12px 0}
.dsc-count{margin:0;color:var(--dsc-body);font-size:14px;font-weight:600}
.dsc-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.dsc-chip{display:inline-flex;align-items:center;gap:8px;min-height:34px;padding:0 10px 0 12px;border:1px solid var(--dsc-line-strong);border-radius:999px;background:var(--dsc-raise);font-size:13px;font-weight:500;cursor:pointer}
.dsc-chip span{color:var(--dsc-mute);font-size:16px;line-height:1}
.dsc-chip:hover{border-color:var(--dsc-ink)}
.dsc-chip:hover span{color:var(--dsc-ink)}
.dsc-clear{min-height:34px;padding:0 6px;border:0;background:none;color:var(--dsc-accent-ink);font-size:13px;font-weight:600;cursor:pointer;text-decoration:underline;text-underline-offset:3px}

/* Grid and cards */
.dsc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:24px 18px;margin:0;padding:0;list-style:none;transition:opacity .2s ease}
.dsc-shell.is-updating .dsc-grid{opacity:.5}
.dsc-card{display:flex;flex-direction:column;gap:8px;min-width:0}
.dsc-card-link{display:grid;gap:10px;color:inherit;text-decoration:none;border-radius:10px}
.dsc-art{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;border:1px solid var(--dsc-line);border-radius:10px;background:var(--dsc-raise)}
.dsc-art img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .4s cubic-bezier(.2,.8,.2,1)}
.dsc-card-link:hover .dsc-art img{transform:scale(1.03)}
.dsc-noimg{display:grid;place-items:center;width:100%;height:100%;color:#5d5a66;background:linear-gradient(180deg,#17171d,#111116)}
.dsc-noimg svg{width:36px;height:36px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round}
.dsc-type{position:absolute;left:8px;top:8px;padding:3px 8px;border-radius:6px;background:rgba(8,8,10,.84);color:var(--dsc-ink);font:600 11px/1.2 Inter,system-ui,sans-serif;letter-spacing:.02em}
.dsc-card-title{display:-webkit-box;overflow:hidden;font-size:15.5px;font-weight:600;line-height:1.35;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.dsc-card-link:hover .dsc-card-title{text-decoration:underline;text-decoration-color:rgba(244,242,238,.45);text-underline-offset:3px}
.dsc-meta{display:flex;flex-wrap:wrap;gap:2px 10px;margin:0;color:var(--dsc-mute);font-size:12.5px}
.dsc-count:empty{display:none}
.dsc-pulse{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 6px;margin:0;color:var(--dsc-mute);font-size:12.5px}
.dsc-pulse-label{color:var(--dsc-dim);font-weight:600}
.dsc-pulse b{color:var(--dsc-ink);font-weight:700;font-variant-numeric:tabular-nums}
.dsc-where{align-self:flex-start;min-height:36px;margin-top:auto;padding:0 12px;border:1px solid var(--dsc-line-strong);border-radius:8px;background:transparent;font-size:13px;font-weight:600;cursor:pointer}
.dsc-where:hover{border-color:var(--dsc-ink)}
.dsc-skel{aspect-ratio:16/12.5;border-radius:10px;background:linear-gradient(90deg,var(--dsc-raise),#1d1d24,var(--dsc-raise));background-size:200% 100%;animation:dsc-shimmer 1.4s linear infinite}
@keyframes dsc-shimmer{to{background-position:-200% 0}}

/* States, pagination */
.dsc-state{display:grid;justify-items:start;gap:10px;margin-top:6px;padding:clamp(24px,4vw,36px);border:1px dashed var(--dsc-line-strong);border-radius:14px}
.dsc-state h3{margin:0;font:600 20px/1.25 "Space Grotesk",Inter,sans-serif}
.dsc-state p{max-width:56ch;margin:0;color:var(--dsc-dim);line-height:1.6}
.dsc-state[role=alert]{border-style:solid;border-color:rgba(240,176,122,.4)}
.dsc-state-slot:empty{display:none}
.dsc-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border:1px solid var(--dsc-line-strong);border-radius:10px;background:transparent;color:var(--dsc-ink);font-size:14.5px;font-weight:600;text-decoration:none;cursor:pointer}
.dsc-btn:hover{border-color:var(--dsc-ink);background:rgba(255,255,255,.05)}
.dsc-btn:disabled{opacity:.6;cursor:wait}
.dsc-more{display:grid;justify-items:center;gap:10px;margin-top:clamp(28px,4vw,40px)}
.dsc-more .dsc-btn{min-width:220px}
.dsc-more-error{margin:0;color:#f3c79c;font-size:14px;text-align:center}
.dsc-more-error:empty{display:none}
.dsc-link{padding:0;border:0;background:none;color:var(--dsc-ink);font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer}

/* Editorial pairings */
.dsc-pairs{margin-top:clamp(44px,6vw,64px);padding-top:clamp(24px,3vw,32px);border-top:1px solid var(--dsc-line)}
.dsc-section-head h2{margin:0 0 6px;font:700 clamp(1.4rem,1.1rem + .9vw,1.8rem)/1.2 "Space Grotesk",Inter,sans-serif}
.dsc-section-head p{max-width:62ch;margin:0 0 20px;color:var(--dsc-dim)}
.dsc-pair-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:14px;margin:0;padding:0;list-style:none}
.dsc-pair{display:grid;gap:12px;padding:16px;border:1px solid var(--dsc-line);border-radius:14px;background:var(--dsc-panel)}
.dsc-pair-titles{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px}
.dsc-pair-plus{color:var(--dsc-mute)}
.dsc-pair-title{display:grid;gap:8px;min-width:0;color:inherit;font-size:14px;font-weight:600;text-decoration:none;overflow-wrap:anywhere}
.dsc-pair-title small{display:block;color:var(--dsc-mute);font-size:11.5px;font-weight:500}
.dsc-pair-title:hover>span:last-child{text-decoration:underline;text-underline-offset:3px}
.dsc-pair-art{display:block;aspect-ratio:16/9;overflow:hidden;border-radius:8px;background:var(--dsc-raise)}
.dsc-pair-art img{width:100%;height:100%;object-fit:cover}
.dsc-pair>p{margin:0;color:var(--dsc-body);font-size:14px;line-height:1.6}
.dsc-note{max-width:80ch;margin:clamp(36px,5vw,52px) 0 0;color:var(--dsc-mute);font-size:13px;line-height:1.6}

/* Availability dialog */
.dsc-dialog{width:min(560px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:22px;border:1px solid var(--dsc-line-strong);border-radius:16px;background:var(--dsc-panel);color:var(--dsc-ink)}
.dsc-dialog::backdrop{background:rgba(0,0,0,.72)}
.dsc-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}
.dsc-dialog h2{margin:0;font:600 20px/1.3 "Space Grotesk",Inter,sans-serif;overflow-wrap:anywhere}
.dsc-close{flex:0 0 40px;display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--dsc-line);border-radius:50%;background:none;font-size:24px;line-height:1;cursor:pointer}
.dsc-close:hover{border-color:var(--dsc-ink)}
.dsc-dialog-country{margin-bottom:14px}
.dsc-dialog-country select{width:100%}
.dsc-offers{display:grid;gap:8px;margin:0 0 16px;padding:0;list-style:none}
.dsc-offers a{display:grid;grid-template-columns:1fr auto;gap:2px 12px;padding:12px 14px;border:1px solid var(--dsc-line);border-radius:10px;color:inherit;text-decoration:none}
.dsc-offers a:hover{border-color:var(--dsc-ink)}
.dsc-offer-provider{font-weight:600}
.dsc-offer-access{color:var(--dsc-dim);font-size:13px;text-transform:capitalize}
.dsc-offers small{grid-column:1/-1;color:var(--dsc-mute);font-size:12px}
.dsc-dialog-status,.dsc-dialog-empty{margin:0 0 16px;color:var(--dsc-dim)}
.dsc-dialog-more{width:100%}

/* Tablet */
@media(max-width:900px){.dsc-filter-panel{margin-left:0}.dsc-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}}
/* Phone: search stays on top; extended filters move into a collapsible panel */
@media(max-width:640px){
.dsc-search input{min-height:52px;padding-right:96px}
.dsc-search button{padding:0 14px}
.dsc-toolbar{align-items:stretch}
.dsc-types{flex:1 1 auto}
.dsc-types button{flex:1 1 0;min-height:40px;padding:0 8px}
.dsc-filter-toggle{display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:0 14px;border:1px solid var(--dsc-line-strong);border-radius:10px;background:transparent;font-size:14px;font-weight:600;cursor:pointer}
.dsc-filter-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.dsc-filter-toggle[aria-expanded=true]{border-color:var(--dsc-ink)}
.dsc-filter-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--dsc-accent);color:#0a0a0d;font-size:12px;font-weight:700}
.dsc-filter-panel{display:none;width:100%;flex-direction:column;align-items:stretch}
.dsc-filter-panel.is-open{display:flex}
.dsc-field select{width:100%;min-height:48px}
.dsc-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}
.dsc-card-title{font-size:14.5px}
.dsc-where{align-self:stretch;min-height:44px}
.dsc-pair-list{grid-template-columns:1fr}
.dsc-more .dsc-btn{width:100%}}
@media(max-width:360px){.dsc-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.dsc-body *{transition:none!important;animation:none!important}}
