/*
Theme Name: AmvFeed Native
Description: Лёгкая видеотека AmvFeed без конструктора страниц.
Version: 2.2.0
Text Domain: amv-native
*/
/* Self-hosted Manrope and Unbounded (SIL Open Font License), split by script like Google Fonts. */
@font-face{font-family:Manrope;font-style:normal;font-weight:400 700;font-display:swap;src:url(fonts/manrope-cyrillic-ext.woff2) format("woff2");unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:Manrope;font-style:normal;font-weight:400 700;font-display:swap;src:url(fonts/manrope-cyrillic.woff2) format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:Manrope;font-style:normal;font-weight:400 700;font-display:swap;src:url(fonts/manrope-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:Manrope;font-style:normal;font-weight:400 700;font-display:swap;src:url(fonts/manrope-latin.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:Unbounded;font-style:normal;font-weight:500 600;font-display:swap;src:url(fonts/unbounded-cyrillic-ext.woff2) format("woff2");unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:Unbounded;font-style:normal;font-weight:500 600;font-display:swap;src:url(fonts/unbounded-cyrillic.woff2) format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:Unbounded;font-style:normal;font-weight:500 600;font-display:swap;src:url(fonts/unbounded-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:Unbounded;font-style:normal;font-weight:500 600;font-display:swap;src:url(fonts/unbounded-latin.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
:root {
  --gold:#efb63f; --gold-bright:#ffd05c; --gold-line:#7a5a1e; --gold-tint:#2b2210;
  --glow:0 0 0 1px #efb63f80,0 0 18px #efb63f59; --glow-soft:0 0 22px #efb63f2e;
  --bg:#0b0b0c; --panel:#141416; --panel-raised:#1b1b1e; --footer:#08080a;
  --text:#f4efe6; --soft:#c9c3b6; --muted:#a8a295; --line:#221f1a; --line-strong:#2a2722;
  --radius:22px;
  --font:Manrope,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --display:Unbounded,Manrope,ui-sans-serif,system-ui,sans-serif;
  color-scheme:dark;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:24px;background:var(--bg)}
body{margin:0;background:var(--bg);color:var(--text);font:15px/1.6 var(--font);-webkit-font-smoothing:antialiased;overflow-x:clip}
a{color:inherit;text-decoration:none;transition:color .18s}
a:hover{color:var(--gold-bright)}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.6}
img{max-width:100%;height:auto}
button,a,input,summary{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
::selection{background:#efb63f40;color:#fff}
h1,h2,h3{line-height:1.15;letter-spacing:-.02em;font-family:var(--display);font-weight:600;text-wrap:balance}
h1{font-size:clamp(30px,4vw,48px)}
p{margin:0 0 1em}
.site-header,.site-main,.site-footer{position:relative;z-index:1}
.site-header{z-index:20}
.skip-link{position:absolute;left:16px;top:-80px;z-index:100001;padding:12px 18px;background:var(--gold);color:#17130b;border-radius:8px}
.skip-link:focus{top:8px}
/* Header */
.site-header{border-bottom:1px solid var(--line);background:#0b0b0cee}
.header-inner{max-width:1320px;min-height:84px;padding:0 40px;margin:auto;display:flex;align-items:center;gap:32px}
.site-logo{display:flex;align-items:center;flex-shrink:0}
.site-logo img{display:block;width:118px;max-height:46px;object-fit:contain}
/* The logo wordmark sits 5px below the image's centre; the menu sits 1px lower still. Text spacing: 24px from the logo, 12px between items. */
.primary-nav{position:relative;top:6px;margin-left:-13px}
.primary-nav .menu{display:flex;align-items:center;gap:2px;margin:0;padding:0;list-style:none}
.primary-nav a{position:relative;display:block;padding:10px 5px;color:var(--soft);font-size:15px;font-weight:500;white-space:nowrap;transition:color .2s,text-shadow .25s}
.primary-nav a:hover,.primary-nav a:focus-visible{color:var(--gold-bright);text-shadow:0 0 10px #efb63fb3,0 0 22px #efb63f66}
.primary-nav .current-menu-item>a,.primary-nav .current-menu-ancestor>a{color:var(--gold);font-weight:600}
.header-actions{display:flex;align-items:center;gap:10px;margin-left:auto}
.round-button{border:1px solid var(--line-strong);width:44px;height:44px;border-radius:999px;background:var(--panel);color:#e8e2d6;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .18s,border-color .18s,color .18s}
.round-button:hover{background:var(--gold-tint);border-color:var(--gold-line);color:var(--gold-bright)}
.round-button.is-current{border-color:var(--gold-line);color:var(--gold-bright)}
/* Signed-in members see their avatar instead of the account icon */
.round-button.account-avatar{padding:2px;overflow:hidden}
.round-button.account-avatar img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover}
.round-button.favorites-button svg{width:20px;height:20px;transform-origin:center}
/* Heartbeat on hover: a strong beat, a softer echo, then a pause */
.round-button.favorites-button svg{transition:filter .4s ease}
.favorites-button:hover svg,.favorites-button:focus-visible svg{animation:heartbeat 1.8s cubic-bezier(.45,0,.55,1) infinite;filter:drop-shadow(0 0 4px #efb63f80)}
@keyframes heartbeat{0%,55%,100%{transform:scale(1)}15%{transform:scale(1.11)}28%{transform:scale(1.03)}40%{transform:scale(1.08)}}
@media(prefers-reduced-motion:reduce){.favorites-button:hover svg,.favorites-button:focus-visible svg{animation:none}}
.round-button svg{width:19px;height:19px;stroke-width:1.8}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.header-search{position:relative}
.search-pill{display:inline-flex;align-items:center;gap:10px;width:280px;height:44px;padding:0 16px;border:1px solid var(--line-strong);border-radius:999px;background:var(--panel);color:var(--muted);font-size:14px;text-align:left;cursor:text;transition:border-color .18s,color .18s}
.search-pill:hover{border-color:var(--gold-line);color:var(--soft)}
.search-pill:focus-within{border-color:var(--gold);color:var(--gold-bright);box-shadow:var(--glow)}
.search-pill svg{width:18px;height:18px;flex-shrink:0}
.search-pill input{flex:1;min-width:0;height:100%;padding:0;border:0;outline:0;background:transparent;color:var(--text);font-size:14px}
.search-pill input::placeholder{color:var(--muted)}
.search-pill input::-webkit-search-cancel-button{filter:invert(.7) sepia(1) hue-rotate(5deg);cursor:pointer}
/* Live search suggestions: a dropdown under the header field, inline in the mobile dialog */
.search-dropdown{position:absolute;z-index:50;top:calc(100% + 10px);right:0;width:420px;max-height:min(70vh,560px);overflow:auto;padding:8px;border:1px solid var(--line-strong);border-radius:20px;background:var(--panel-raised);box-shadow:0 24px 60px #000c,var(--glow-soft);scrollbar-width:thin;scrollbar-color:#3a362f transparent}
.search-dropdown[hidden]{display:none}
.search-results-inline{margin-top:16px}
.search-hit{display:flex;align-items:center;gap:14px;padding:8px;border-radius:14px;color:var(--text);transition:background .15s}
.search-hit:hover,.search-hit.is-active{background:var(--gold-tint);color:var(--text)}
.search-hit.is-active{box-shadow:inset 0 0 0 1px var(--gold-line)}
.search-hit-thumb{flex:0 0 104px;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:var(--panel)}
.search-hit-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.search-hit-text{display:flex;flex-direction:column;gap:4px;min-width:0}
.search-hit-title{font-weight:700;font-size:14px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.search-hit-meta{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-hit mark{background:none;color:var(--gold-bright)}
.search-all{display:block;margin-top:4px;padding:12px 10px 6px;border-top:1px solid var(--line-strong);color:var(--gold);font-size:13px;font-weight:600}
.search-all:hover{color:var(--gold-bright)}
.search-empty{margin:0;padding:14px 10px;color:var(--muted);font-size:14px}
.login-pill{min-height:44px;padding:0 22px;border-radius:999px;font-size:14px}
.mobile-menu,.mobile-only{display:none}
.site-main{max-width:1320px;margin:0 auto;padding:0 40px;min-height:65vh}
/* Buttons */
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;background:var(--gold);color:#17130b;border:1px solid transparent;border-radius:999px;padding:10px 22px;font-weight:700;font-size:14px;transition:background .2s}
.button:hover{background:var(--gold-bright);color:#17130b}
.button svg{width:18px;height:18px}
.button-large{min-height:54px;padding:0 28px 0 22px;font-size:16px}
.button-large svg{width:20px;height:20px}
.button-secondary{border-color:var(--line-strong);color:var(--text);background:var(--panel)}
.button-secondary:hover{background:var(--panel-raised);border-color:var(--gold-line);color:var(--text)}
/* Hero */
.hero{position:relative;margin:32px 0 0;min-height:clamp(380px,44vw,600px);border-radius:28px;overflow:hidden;border:1px solid #2a2520;display:flex;align-items:flex-end;background:transparent}
.hero-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* Slides are stacked; the active one fades in with a slow zoom on its poster */
.hero-slide{position:absolute;inset:0;display:flex;align-items:flex-end;opacity:0;visibility:hidden;transition:opacity .9s ease,visibility 0s linear .9s}
.hero-slide.is-active{opacity:1;visibility:visible;transition:opacity .9s ease,visibility 0s}
.hero-slide:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#0b0b0c00 30%,#0b0b0cb8 68%,#0b0b0cf5 100%);pointer-events:none}
/* Poster zoom runs on its own GPU layer so the slow scale doesn't snap pixel by pixel */
.hero-slide .hero-image{will-change:transform;backface-visibility:hidden;transform:translate3d(0,0,0) scale(1)}
.hero-slide.is-active .hero-image{animation:hero-zoom 16s cubic-bezier(.25,.1,.25,1) both}
@keyframes hero-zoom{from{transform:translate3d(0,0,0) scale(1.06)}}
.hero-slide .hero-body{transform:translateY(14px);opacity:0;transition:transform .8s cubic-bezier(.22,1,.36,1) .15s,opacity .8s ease .15s}
.hero-slide.is-active .hero-body{transform:none;opacity:1}
.hero-body{z-index:2}
/* Progress dots: the active bar fills over the slide's time; site.js moves on when it ends */
.hero-dots{position:absolute;right:40px;bottom:44px;z-index:3;display:flex;gap:8px}
.hero-dot{width:26px;height:20px;padding:0;border:0;background:none;cursor:pointer;display:grid;align-items:center;transition:width .45s cubic-bezier(.22,1,.36,1)}
.hero-dot.is-active{width:76px}
.hero-dot span{position:relative;display:block;height:4px;border-radius:4px;background:#ffffff33;overflow:hidden;transition:background .25s;transform:translateZ(0)}
.hero-dot:hover span{background:#ffffff59}
/* The fill slides in (translate on its own layer) instead of scaling, so a slow 14s fill moves in smooth sub-pixel steps */
.hero-dot span:after{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(90deg,var(--gold) 0,var(--gold-bright) 100%);transform:translate3d(-100%,0,0);will-change:transform;backface-visibility:hidden}
.hero-dot.is-active span:after{animation:hero-progress var(--hero-time,14s) linear forwards}
.hero-dot.is-active span{box-shadow:0 0 8px #efb63f40}
.hero.is-paused .hero-dot.is-active span:after{animation-play-state:paused}
.hero-dot:focus-visible{outline:2px solid var(--gold);outline-offset:2px;border-radius:4px}
@keyframes hero-progress{to{transform:translate3d(0,0,0)}}
/* Hide / show the featured block (remembered per visitor) */
/* Hide button stays out of sight until the pointer is over the block (faint on touch screens) */
.hero-hide{position:absolute;top:18px;right:18px;z-index:4;display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:#0b0b0c59;color:#ffffffa6;cursor:pointer;opacity:.35;transition:opacity .3s,color .25s,background .25s,box-shadow .25s}
@media(hover:hover){.hero-hide{opacity:0}.hero:hover .hero-hide{opacity:.6}}
.hero-hide:hover,.hero-hide:focus-visible{opacity:1!important;color:var(--gold-bright);background:#0b0b0c99;box-shadow:0 0 10px #efb63f33}
.hero-hide svg{width:15px;height:15px}
.hero-restore svg{width:17px;height:17px}
.hero-hide svg,.hero-restore svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hero.is-hiding{opacity:0;transform:scale(.98);transition:opacity .35s ease,transform .35s ease}
.hero-restore-row{display:none;justify-content:flex-end;margin:24px 0 0}
.hero-hidden .hero-restore-row{display:flex}
.hero-hidden .hero{display:none}
.hero-restore{display:inline-flex;align-items:center;gap:8px;padding:8px 16px;border:1px solid var(--line);border-radius:999px;background:var(--panel-raised);color:var(--muted);font:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:color .25s,border-color .25s,box-shadow .25s}
.hero-restore:hover,.hero-restore:focus-visible{color:var(--gold-bright);border-color:var(--gold-line);box-shadow:0 0 12px #efb63f2e}
.hero.is-showing{animation:hero-show .45s ease}
@keyframes hero-show{from{opacity:0;transform:scale(.98)}}
@media(prefers-reduced-motion:reduce){.hero-slide,.hero-slide .hero-body{transition:none}.hero-slide.is-active .hero-image{animation:none}.hero-dot.is-active span:after{animation:none;transform:none}}
.hero-body{position:relative;z-index:1;padding:56px;max-width:800px;display:flex;flex-direction:column;gap:18px}
.hero-eyebrow{display:flex;align-items:center;gap:12px;margin:0;color:var(--gold);font-size:13px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.hero-eyebrow:before{content:"";width:28px;height:1px;background:currentColor}
.hero-eyebrow a:hover{color:var(--gold-bright)}
.hero-title{margin:0;font-size:clamp(30px,4.6vw,64px);line-height:1.04;color:#fbf7ef}
.hero .clip-meta{font-size:14px;color:#cfc8ba;gap:10px 22px}
.hero .clip-meta time{margin-right:0}
.hero .clip-meta svg{width:16px;height:16px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:6px}
/* Section headings */
.eyebrow{display:block;color:var(--gold);font-size:13px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;margin:0 0 8px}
.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin:56px 0 28px}
.section-heading h2,.section-heading .section-title{margin:0;font-size:34px}
.section-caption{color:var(--muted);font-size:13px}
.section-title{margin:40px 0 28px}
/* Random clips rail */
.discovery{position:relative;margin:32px 0 0}
.discovery+.clip-feed{margin-top:40px}
.discovery-track{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-ms-overflow-style:none;padding:0;overscroll-behavior-x:contain}
.discovery-track::-webkit-scrollbar{display:none;width:0;height:0}
/* Rails can be dragged with the mouse; the random-clips rail drifts on its own, so it does not snap. */
.discovery-track{cursor:grab}
.discovery-track.is-dragging{cursor:grabbing;user-select:none}
.discovery-track.is-dragging a{pointer-events:none}
.discovery-track img{-webkit-user-drag:none;user-select:none}
.discovery[data-autoscroll] .discovery-track{scroll-snap-type:none;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%)}
.discovery-track>a{position:relative;flex:0 0 calc((100% - 64px)/5);scroll-snap-align:start;aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:transparent;border:1px solid var(--line)}
.discovery-track img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s}
.discovery-track>a:hover img{transform:scale(1.045)}
.discovery-label{position:absolute;left:0;right:0;bottom:0;padding:28px 12px 10px;background:linear-gradient(transparent,#0b0b0cdd);font-size:12px;font-weight:600;line-height:1.3;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rail-arrow{position:absolute;z-index:2;top:50%;transform:translateY(-50%);display:grid;place-items:center;padding:0;background:#141416ee;border:1px solid var(--gold-line);color:var(--gold-bright);border-radius:50%;width:40px;height:40px;box-shadow:0 3px 12px #0006;transition:background .2s,opacity .2s}
.rail-arrow svg{width:20px;height:20px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.rail-arrow[aria-disabled=true]{opacity:.35;cursor:default}
.rail-arrow:hover{background:var(--gold-tint)}
.rail-prev{left:-16px}.rail-next{right:-16px}
/* Video cards */
.clip-feed,.archive-grid,.amv-favorites-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin:0 auto}
.archive-grid{margin-top:24px}
/* Posters may have transparent areas (alpha channel): nothing is painted behind them, so the particles show through;
   only the text part of the card is frosted glass. */
.clip-card{min-width:0;position:relative;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:transparent;transition:border-color .2s,box-shadow .2s}
.clip-card:hover{border-color:var(--gold-line);box-shadow:0 14px 36px #0005}
.clip-poster{display:block;overflow:hidden;position:relative;aspect-ratio:16/9;background:transparent}
.clip-poster img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease}
.clip-card:hover .clip-poster img{transform:scale(1.04)}
.play-mark{position:absolute;left:14px;bottom:14px;display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--gold-line);border-radius:50%;background:#0b0b0cb3;color:var(--gold-bright);pointer-events:none;transition:background .2s,color .2s}
.play-mark svg{width:16px;height:16px;margin-left:2px}
.clip-card:hover .play-mark{background:var(--gold);color:#17130b;border-color:var(--gold)}
.clip-body{padding:20px 22px 22px;background:#14141670;-webkit-backdrop-filter:blur(5px) saturate(1.4);backdrop-filter:blur(5px) saturate(1.4)}
.clip-card h2{font-size:20px;line-height:1.25;letter-spacing:-.01em;margin:10px 0 16px;overflow-wrap:anywhere;text-wrap:pretty}
.clip-categories{font-size:12px;font-weight:700;line-height:1.4;color:var(--gold);letter-spacing:.12em;text-transform:uppercase;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.clip-categories a:hover{color:var(--gold-bright)}
.clip-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;color:var(--muted);font-size:13px;line-height:1.4}
.clip-card .clip-meta{padding-top:14px;border-top:1px solid var(--line)}
.clip-meta time{margin-right:auto}
.clip-meta svg{width:15px;height:15px;flex-shrink:0}
.clip-meta>span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.clip-views .post-views{display:inline-flex;align-items:center;gap:4px}
.clip-views .post-views-icon{display:none}
.clip-views .post-views-count{margin:0}
.compact .clip-body{padding:18px 20px 20px}
.compact h2{font-size:18px}
.pagination,.amv-favorites-pagination{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;margin:48px 0 24px}
.page-numbers,.amv-favorites-pagination button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:7px 12px;border:1px solid var(--line-strong);border-radius:999px;color:var(--soft);background:transparent;font-size:14px}
.page-numbers:hover,.amv-favorites-pagination button:hover{background:var(--panel);border-color:var(--gold-line);color:var(--text)}
.page-numbers.current{background:var(--gold);border-color:var(--gold);color:#17130b;font-weight:700}
.page-numbers.dots{border-color:transparent;color:var(--muted)}
.amv-favorites-pagination span{padding:0 10px;font-size:13px;color:var(--muted)}
/* Clip page */
.single-clip{padding-top:32px}
/* Clip page grid: player and text in the wide column, "Up next" beside them. Theater mode gives the player the full width. */
.single-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;grid-template-areas:"player aside" "main aside";column-gap:40px;align-items:start}
.single-player{grid-area:player;min-width:0}
.single-main{grid-area:main;min-width:0}
.single-aside{grid-area:aside;min-width:0}
.single-clip.is-theater{padding-top:24px}
.is-theater .single-layout{grid-template-areas:"player player" "main aside"}
.is-theater .single-aside{margin-top:28px}
/* Theater: nearly the full window width, 24px from each edge, rounded like the normal player. */
.is-theater .single-player{margin-inline:calc(50% - 50vw + var(--scrollbar,0px) / 2 + 24px)}
.is-theater .amv-video,.is-theater .youtube-player{width:100%;height:min(calc((100vw - var(--scrollbar,0px) - 48px) * .5625),calc(100vh - 170px));max-height:none;aspect-ratio:auto}
/* Signed-in users see the fixed WordPress toolbar (32px, 46px on narrow screens); keep the same margins below it */
.admin-bar .is-theater .amv-video,.admin-bar .is-theater .youtube-player{height:min(calc((100vw - var(--scrollbar,0px) - 48px) * .5625),calc(100vh - 202px))}
@media(max-width:782px){.admin-bar .is-theater .amv-video,.admin-bar .is-theater .youtube-player{height:min(calc((100vw - var(--scrollbar,0px) - 48px) * .5625),calc(100vh - 216px))}}
/* Player buttons (favorites heart, then theater) sit in the video's top-right corner and show on hover.
   Theater icon: outward diagonal corners = normal, inward = theater. */
.video-shell{position:relative}
.player-actions{position:absolute;z-index:3;top:12px;right:12px;display:flex;align-items:center;gap:8px;opacity:0;transform:translateY(-4px);transition:opacity .3s,transform .3s;pointer-events:none}
/* Shown like the native controls: while the pointer moves over the video (site.js sets .is-active), on hover when paused, or when focused. */
.video-shell.is-active .player-actions,.video-shell.is-paused:hover .player-actions,.player-actions:focus-within{opacity:1;transform:none;pointer-events:auto}
.player-actions .amv-favorite-wrap{display:flex}
.player-actions .amv-favorite-status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.cc-toggle{font-size:12px;font-weight:800;letter-spacing:.02em;line-height:1}
.cc-toggle[aria-pressed=true]{color:#17130b!important;background:var(--gold)!important}
.cc-toggle:disabled{opacity:.45;cursor:not-allowed}
.cc-toggle,.theater-toggle,.player-actions .amv-favorite-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;min-height:0;padding:0;border:0;border-radius:50%;background:#0b0b0cb3;color:#f4efe6;transition:color .2s,box-shadow .25s,background .2s;backdrop-filter:blur(6px)}
.theater-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:square;stroke-linejoin:miter}
.theater-toggle .icon-open,.theater-toggle[aria-pressed=true] .icon-closed{display:none}
.theater-toggle[aria-pressed=true] .icon-open{display:block}
.player-actions .amv-favorite-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linejoin:round;stroke-linecap:round;transition:fill .2s}
.cc-toggle:hover,.theater-toggle:hover,.player-actions .amv-favorite-button:hover{color:var(--gold-bright);background:#0b0b0cd9;box-shadow:0 0 18px #efb63f66}
.player-actions .amv-favorite-button[aria-pressed=true]{color:var(--gold-bright)}
.amv-favorite-button[aria-pressed=true] svg{fill:currentColor}
@media(hover:none){.video-shell.is-paused .player-actions{opacity:1;transform:none;pointer-events:auto}}
@media(max-width:1000px){
  .single-layout,.is-theater .single-layout{grid-template-columns:minmax(0,1fr);grid-template-areas:"player" "main" "aside"}
  .is-theater .single-player{margin-inline:0}.theater-toggle{display:none}
  .single-aside,.is-theater .single-aside{margin-top:12px}
}
.video-shell{background:#000;border:1px solid #2a2520;border-radius:24px;overflow:hidden;scroll-margin-top:24px;box-shadow:0 18px 60px #0006}
.amv-video{width:100%;max-height:85vh;display:block;background:#000;aspect-ratio:16/9;object-fit:contain;accent-color:var(--gold)}
.youtube-player{aspect-ratio:16/9;position:relative}
.youtube-player button{padding:0;border:0;width:100%;height:100%;background:#000;position:relative}
.youtube-player img{width:100%;height:100%;object-fit:contain;display:block}
.youtube-player .play-mark{left:50%;top:50%;bottom:auto;transform:translate(-50%,-50%);width:88px;height:88px;border:0;background:var(--gold);color:#17130b;box-shadow:0 0 0 10px #efb63f2e,0 0 40px #efb63f40}
.youtube-player .play-mark svg{width:34px;height:34px}
.youtube-player iframe{width:100%;height:100%;border:0}
/* YouTube players inside clip cards (Music page): the card's own small play button, poster fills the frame */
.youtube-player.in-card button{cursor:pointer;overflow:hidden}
.youtube-player.in-card img{object-fit:cover;transition:transform .5s ease}
.youtube-player.in-card button:hover img{transform:scale(1.04)}
.youtube-player.in-card .play-mark{left:14px;top:auto;bottom:14px;transform:none;width:44px;height:44px;border:1px solid var(--gold-line);background:#0b0b0cb3;color:var(--gold-bright);box-shadow:none}
.youtube-player.in-card .play-mark svg{width:16px;height:16px}
.youtube-player.in-card button:hover .play-mark,.youtube-player.in-card button:focus-visible .play-mark{background:var(--gold);color:#17130b;border-color:var(--gold);box-shadow:var(--glow)}
.youtube-player.in-card.is-playing>*,.youtube-player.in-card video{display:block;width:100%;height:100%;background:#000;object-fit:contain}
.clip-poster-blank{display:block;width:100%;height:100%;background:var(--panel-raised)}
.youtube-player button.is-loading .play-mark{animation:yt-wait .9s ease-in-out infinite alternate}
@keyframes yt-wait{to{opacity:.45}}
.youtube-link{font-size:13px;color:var(--muted);margin:10px 16px}
.amv-subtitle-controls{margin-right:3px!important}
.single-head{display:flex;flex-direction:column;gap:12px;margin:28px 0 28px}
.single-head .clip-categories{font-size:13px;letter-spacing:.14em;white-space:normal}
.single-head h1{margin:0;font-size:clamp(30px,3.4vw,44px);line-height:1.08}
.single-head .clip-meta{font-size:14px;gap:8px 22px}
.single-head .clip-meta time{margin-right:0}
.clip-details{margin:0 0 32px;padding:26px 28px;border:1px solid var(--line);border-radius:20px;background:var(--panel)}
.clip-details h2{margin:0;font-size:20px}
.detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin:18px 0 0}
.detail-grid>div{display:flex;flex-direction:column;gap:6px;padding:16px;border-radius:14px;background:var(--panel-raised);min-width:0}
.detail-grid dt{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.detail-grid dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.detail-grid .creator-link{color:var(--text);text-decoration:none;transition:color .2s}
.detail-grid .creator-link:hover,.detail-grid .creator-link:focus-visible{color:var(--gold-bright)}
.creator-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin-top:6px}
.creator-actions .follow-wrap{gap:8px}
.detail-grid .creator-external{font-size:12px;font-weight:600;color:var(--muted);text-decoration:none;transition:color .2s}
.detail-grid .creator-external:hover,.detail-grid .creator-external:focus-visible{color:var(--gold)}
.single-head .clip-categories{display:flex;flex-wrap:wrap;gap:4px 6px}
.clip-details p{margin:18px 0 0;font-size:14px;color:var(--soft)}
.post-content{margin:26px 0;color:var(--soft);overflow-wrap:anywhere}
.post-content iframe{max-width:100%}
.single-aside h2{margin:0 0 14px;font-size:18px}
.next-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.next-item{display:flex;gap:14px;padding:10px;border-radius:16px;transition:background .18s}
.next-item:hover{background:var(--panel-raised);color:var(--text)}
.next-thumb{position:relative;flex:0 0 150px;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:transparent}
.next-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.next-text{display:flex;flex-direction:column;gap:5px;min-width:0}
.next-cat{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--gold);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.next-title{font-weight:700;font-size:15px;line-height:1.3;overflow-wrap:anywhere}
.next-text time{color:var(--muted);font-size:12px}
.plain-page{max-width:1120px;margin:40px auto;padding:0;overflow-wrap:anywhere}
.plain-page>h1{margin:0 0 28px}
/* Privacy policy: hero, at-a-glance cards, sticky table of contents and numbered section cards */
.policy-page{max-width:1120px;margin:0 auto;padding:48px 0 24px}
.policy-hero{padding:8px 0 28px;border-bottom:1px solid var(--line);margin-bottom:32px}
.policy-hero h1{margin:0 0 12px;font-size:clamp(34px,4.4vw,56px)}
.policy-updated{margin:0;color:var(--muted);font-size:14px}
.policy-lead{max-width:760px;margin:0 0 28px;color:var(--soft);font-size:18px;line-height:1.7}
.policy-glance-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 48px}
.policy-glance-card{padding:22px 24px;border:1px solid var(--line);border-radius:20px;background:var(--panel)}
.policy-glance-label{display:block;margin-bottom:10px;color:var(--gold);font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.policy-glance-card p{margin:0;color:var(--soft);font-size:14px;line-height:1.65}
.policy-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:48px;align-items:start}
.policy-toc{position:sticky;top:24px;padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--panel)}
.admin-bar .policy-toc{top:56px}
.policy-toc-title{margin:0 0 10px;color:var(--muted);font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.policy-toc ol{margin:0;padding:0;list-style:none;counter-reset:toc}
.policy-toc li{counter-increment:toc}
.policy-toc a{display:flex;gap:10px;padding:7px 8px;border-radius:10px;color:var(--soft);font-size:14px;line-height:1.35;transition:color .18s,background .18s}
.policy-toc a:before{content:counter(toc,decimal-leading-zero);color:var(--gold-line);font-variant-numeric:tabular-nums;font-size:12px;padding-top:1px}
.policy-toc a:hover{color:var(--gold-bright);background:var(--panel-raised)}
.policy-toc a.is-current{color:var(--gold-bright);background:var(--gold-tint)}
.policy-toc a.is-current:before{color:var(--gold)}
.policy-body{display:flex;flex-direction:column;gap:18px;min-width:0}
.policy-section{padding:28px 32px;border:1px solid var(--line);border-radius:22px;background:var(--panel);scroll-margin-top:24px;color:var(--soft);font-size:15px;line-height:1.75}
.admin-bar .policy-section{scroll-margin-top:56px}
.policy-section h2{display:flex;align-items:baseline;gap:14px;margin:0 0 14px;color:var(--text);font-size:22px}
.policy-num{color:var(--gold);font-family:var(--font);font-size:13px;font-weight:700;letter-spacing:.08em}
.policy-section p{margin:0 0 12px}.policy-section p:last-child{margin-bottom:0}
.policy-section a{color:var(--gold);text-decoration:underline;text-decoration-color:#efb63f55;text-underline-offset:3px}
.policy-section a:hover{color:var(--gold-bright);text-decoration-color:currentColor}
.policy-section ul{margin:0 0 12px;padding-left:20px}.policy-section li{margin:6px 0}.policy-section li::marker{color:var(--gold)}
.policy-section strong{color:var(--text)}
.policy-section code{padding:2px 7px;border-radius:6px;background:var(--panel-raised);color:var(--gold-bright);font-size:13px}
.policy-list{display:grid;gap:12px;margin:16px 0 0}
.policy-list>div{display:grid;grid-template-columns:170px minmax(0,1fr);gap:16px;padding:16px 18px;border-radius:14px;background:var(--panel-raised)}
.policy-list dt{color:var(--text);font-weight:700}
.policy-list dd{margin:0;color:var(--soft);font-size:14px;line-height:1.7}
.policy-table-wrap{margin:16px 0;overflow-x:auto;border:1px solid var(--line-strong);border-radius:14px}
.policy-table{width:100%;border-collapse:collapse;font-size:14px}
.policy-table th{padding:12px 16px;background:var(--panel-raised);color:var(--muted);font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;text-align:left}
.policy-table td{padding:12px 16px;border-top:1px solid var(--line);vertical-align:top}
.policy-table td:first-child{white-space:nowrap}
.policy-services{list-style:none;padding:0!important}
.policy-services li{margin:0 0 10px;padding:14px 18px;border-radius:14px;background:var(--panel-raised)}
.policy-contact{background:linear-gradient(var(--panel),var(--panel)) padding-box,linear-gradient(135deg,#efb63f66,#efb63f10) border-box;border:1px solid transparent}
.policy-contact .button{color:#17130b;text-decoration:none;margin-top:6px}
@media(max-width:900px){.policy-layout{grid-template-columns:minmax(0,1fr)}.policy-toc{position:static}.policy-glance-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.policy-page{padding-top:28px}.policy-lead{font-size:16px}.policy-section{padding:22px 20px}.policy-section h2{font-size:19px}.policy-list>div{grid-template-columns:minmax(0,1fr);gap:6px}.policy-table td:first-child{white-space:normal}}
/* Favorites are ordinary WordPress user metadata, with lightweight controls. */
.amv-favorite-wrap{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.amv-favorite-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border:1px solid var(--gold-line);border-radius:999px;background:var(--panel);color:var(--text);padding:8px 18px;font-size:14px;font-weight:600;line-height:1.35;transition:color .2s,background .2s,border-color .2s}
.amv-favorite-button svg{width:17px;height:17px;flex-shrink:0}
.amv-favorite-button:hover{border-color:var(--gold);color:var(--gold-bright)}
.amv-favorite-button[aria-pressed=true]{color:var(--gold-bright);border-color:var(--gold);background:var(--gold-tint)}
.amv-favorite-status{color:var(--muted);font-size:12px}
.amv-favorite-status:empty{display:none}
.amv-favorites-heading{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:14px;margin:0 0 24px}
.amv-favorites-tools{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin:-8px 0 20px;font-size:13px;color:var(--muted)}
.amv-favorites-tools button{padding:8px 14px;border:1px solid var(--line-strong);border-radius:999px;background:var(--panel);color:var(--soft)}
.amv-favorites-count{color:var(--gold);font-variant-numeric:tabular-nums}
.amv-favorites-grid .clip-body .amv-favorite-wrap{margin-top:18px}
.amv-favorites-grid .clip-meta{margin-bottom:0}
.amv-favorites-empty{padding:42px 24px;border:1px dashed #3a332a;border-radius:18px;text-align:center;background:#111113;color:var(--muted)}
.amv-favorites-empty p:last-child{margin:0}
/* Dialogs, search and native statistics */
.site-dialog{width:min(600px,calc(100vw - 32px));max-height:85vh;overflow:auto;padding:28px;border:1px solid var(--line-strong);border-radius:24px;background:var(--panel);color:var(--text);box-shadow:0 28px 100px #000a;z-index:100000;scrollbar-width:thin;scrollbar-color:#3a362f transparent}
.site-dialog::backdrop{background:#050506cc;backdrop-filter:blur(6px)}
/* Left drawer (Ratings & comments): full height, slides in from the left edge */
.site-dialog.drawer{position:fixed;inset:0 auto 0 0;margin:0;width:min(440px,100vw);height:100%;max-width:none;max-height:none;border-width:0 1px 0 0;border-radius:0 24px 24px 0;box-shadow:24px 0 80px #000b}
/* Frosted glass: the page shows through the drawer, lightly blurred */
.site-dialog.drawer{background:#141416b3;-webkit-backdrop-filter:blur(18px) saturate(1.2);backdrop-filter:blur(18px) saturate(1.2)}
.site-dialog.drawer::backdrop{background:#05050673;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
.site-dialog.drawer .amv-stat-tab,.site-dialog.drawer .amv-stat-panel:not([hidden]){background:#1b1b1e99}
.admin-bar .site-dialog.drawer{top:32px;height:calc(100% - 32px)}
@media(max-width:782px){.admin-bar .site-dialog.drawer{top:46px;height:calc(100% - 46px)}}
.site-dialog.drawer[open]{animation:drawer-in .42s cubic-bezier(.22,1,.36,1)}
.site-dialog.drawer[open]::backdrop{animation:drawer-fade .42s ease}
.site-dialog.drawer.is-closing{animation:drawer-out .32s cubic-bezier(.55,0,.75,.2) forwards}
.site-dialog.drawer.is-closing::backdrop{animation:drawer-fade .32s ease reverse forwards}
@keyframes drawer-in{from{transform:translateX(-100%)}}
@keyframes drawer-out{to{transform:translateX(-100%)}}
@keyframes drawer-fade{from{opacity:0}}
@media(prefers-reduced-motion:reduce){.site-dialog.drawer[open],.site-dialog.drawer[open]::backdrop{animation:none}}
/* Top drawer (Categories): full width, slides down from the top edge; content centred to the page width */
.site-dialog.drawer.drawer-top{inset:0 0 auto 0;width:100%;height:auto;max-height:min(86vh,760px);padding:26px max(28px,calc((100vw - 1100px) / 2)) 30px;border-width:0 0 1px;border-radius:0 0 28px 28px;box-shadow:0 24px 80px #000b}
.site-dialog.drawer.drawer-top[open]{display:block;animation-name:drawer-down-in}
.site-dialog.drawer.drawer-top.is-closing{animation-name:drawer-down-out}
.admin-bar .site-dialog.drawer.drawer-top{top:32px;height:auto;max-height:min(calc(86vh - 32px),760px)}
@media(max-width:782px){.admin-bar .site-dialog.drawer.drawer-top{top:46px}}
@keyframes drawer-down-in{from{transform:translateY(-100%)}}
@keyframes drawer-down-out{to{transform:translateY(-100%)}}
.dialog-top{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:26px}
.dialog-top h2{margin:0;font-size:22px}
.site-dialog ul{padding-left:20px}
.site-dialog li{margin:8px 0}
.dialog-links{display:grid;gap:8px;margin-top:16px}
.dialog-links .button{justify-content:flex-start;border-radius:14px}
/* Genre tiles in the Categories drawer */
.genre-groups{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.genre-group h3{margin:0 0 14px;font-size:13px;letter-spacing:.14em;text-transform:uppercase}
.genre-group h3 a{color:var(--gold);text-decoration:none;transition:text-shadow .2s}
.genre-group h3 a:hover{text-shadow:var(--glow)}
.site-dialog .genre-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin:0;padding:0;list-style:none}
.site-dialog .genre-grid li{margin:0}
.genre-tile{display:flex;align-items:center;gap:10px;height:100%;padding:11px 13px;border:1px solid var(--line);border-radius:14px;background:#1b1b1e99;color:var(--text);font-size:14px;font-weight:600;text-decoration:none;transition:border-color .25s,background .25s,box-shadow .25s,color .25s}
.genre-icon{flex:none;width:20px;height:20px;fill:none;stroke:var(--gold);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:filter .25s}
.genre-tile:hover,.genre-tile:focus-visible{border-color:var(--gold-line);background:#efb63f14;color:var(--gold-bright);box-shadow:0 0 14px #efb63f26}
.genre-tile:hover .genre-icon,.genre-tile:focus-visible .genre-icon{filter:drop-shadow(0 0 4px #efb63f99)}
@media(max-width:700px){.genre-groups{grid-template-columns:1fr;gap:22px}.site-dialog .genre-grid{grid-template-columns:1fr 1fr}}
.search-form{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-end}
.search-form label{display:block;flex:1;color:var(--muted);font-size:13px}
.search-form input{width:100%;min-width:0;background:var(--bg);color:var(--text);border:1px solid var(--line-strong);border-radius:999px;padding:12px 18px;margin-top:7px;outline-offset:2px}
.search-form input:focus{border-color:var(--gold-line)}
.search-row{display:flex;gap:8px;margin-top:8px;width:100%}
.search-row input{margin-top:0}
.search-form .button{flex-shrink:0}
body:has(dialog[open]){overflow:hidden}
.site-dialog .menu{list-style:none;padding:0}
.site-dialog .menu a{display:block;padding:12px 16px;background:var(--panel-raised);border:1px solid var(--line);border-radius:14px}
.site-dialog .menu .current-menu-item>a{border-color:var(--gold-line);color:var(--gold-bright)}
/* Statistics: a row of icon tabs; the selected list fills the rest of the drawer and scrolls inside */
.site-dialog.drawer[open]{display:flex;flex-direction:column}
.site-dialog.drawer .dialog-top{flex:none}
#native-stats{flex:1;min-height:0;display:flex;flex-direction:column}
.amv-statistics{flex:1;min-height:0;display:flex;flex-direction:column;gap:14px}
.amv-stat-tabbar{flex:none;display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.amv-stat-tab{position:relative;display:grid;place-items:center;aspect-ratio:1;padding:0;border:1px solid var(--line);border-radius:14px;background:var(--panel-raised);color:var(--muted);cursor:pointer;transition:border-color .25s,background .25s,color .25s,box-shadow .25s}
.amv-stat-tab:hover{color:var(--gold);border-color:#efb63f40}
.amv-stat-tab[aria-selected="true"]{color:var(--gold-bright);border-color:var(--gold-line);background:#efb63f17;box-shadow:0 0 16px #efb63f26}
.amv-stat-tab:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.amv-stat-icon{display:grid;place-items:center}
.amv-stat-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.amv-stat-tab[aria-selected="true"] .amv-stat-icon svg{filter:drop-shadow(0 0 4px #efb63f73)}
.amv-stat-count{position:absolute;top:4px;right:5px;font-size:9px;font-weight:700;line-height:1;color:var(--muted);font-variant-numeric:tabular-nums}
.amv-stat-tab[aria-selected="true"] .amv-stat-count{color:var(--gold)}
.amv-stat-panel:not([hidden]){flex:1;min-height:0;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:18px;background:var(--panel-raised);overflow:hidden;animation:stat-panel-in .3s ease}
@keyframes stat-panel-in{from{opacity:0;transform:translateY(6px)}}
.amv-stat-heading{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:14px 16px;border-bottom:1px solid var(--line);font-family:inherit;font-size:14px;font-weight:700}
.amv-stat-total{flex:none;min-width:28px;padding:3px 9px;border-radius:999px;background:#ffffff0a;color:var(--muted);font-size:12px;font-weight:600;text-align:center;font-variant-numeric:tabular-nums}
.amv-stat-list{flex:1;min-height:0;margin:0!important;padding:0 15px!important;list-style:none;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#3a362f transparent}
.amv-stat-list .amv-stat-item{display:flex;gap:12px;margin:0;padding:14px 0;border-bottom:1px solid var(--line)}
.amv-stat-list .amv-stat-item:last-child{border-bottom:0}
.amv-stat-rank{flex:0 0 21px;padding-top:1px;color:var(--gold);font-size:12px;font-variant-numeric:tabular-nums}
.amv-stat-main{min-width:0;flex:1}
.amv-stat-avatar{flex:none;width:40px;height:40px;border-radius:50%;object-fit:cover;background:var(--panel-raised);border:1px solid #efb63f40;box-shadow:0 0 0 2px #0b0b0c80;transition:border-color .25s,box-shadow .25s,transform .25s}
.amv-stat-avatar-link{flex:none;align-self:flex-start;border-radius:50%;line-height:0}
.amv-stat-avatar-link:hover .amv-stat-avatar,.amv-stat-avatar-link:focus-visible .amv-stat-avatar{border-color:#efb63fcc;box-shadow:0 0 0 2px #0b0b0c80,0 0 8px #efb63f66;transform:scale(1.04)}
.amv-stat-avatar-link:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
/* Member page: avatar header, their clips, their latest comments */
.author-hero{display:flex;align-items:center;gap:24px;margin:8px 0 34px;padding:28px;border:1px solid var(--line);border-radius:24px;background:var(--panel)}
.author-hero .author-avatar{flex:none;width:96px;height:96px;border-radius:50%;object-fit:cover;border:2px solid #efb63f80;box-shadow:0 0 18px #efb63f33}
.author-hero h1{margin:4px 0 8px;font-size:clamp(26px,4vw,38px)}
.author-hero .eyebrow{margin:0;color:var(--gold);font-size:12px;letter-spacing:.14em;text-transform:uppercase}
.author-stats{display:flex;flex-wrap:wrap;gap:6px 18px;margin:0;color:var(--muted);font-size:14px}
.author-stats strong{color:var(--text)}
.author-section-title{margin:34px 0 16px;font-size:20px}
.author-comments{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.author-comments a{display:block;padding:14px 18px;border:1px solid var(--line);border-radius:16px;background:var(--panel-raised);color:inherit;text-decoration:none;transition:border-color .25s,box-shadow .25s}
.author-comments a:hover,.author-comments a:focus-visible{border-color:var(--gold-line);box-shadow:0 0 14px #efb63f1f}
.author-comment-top{display:flex;justify-content:space-between;gap:12px;font-size:13px}
.author-comment-clip{color:var(--gold);font-weight:700}
.author-comment-top time{flex:none;color:var(--muted)}
.author-comments p{margin:8px 0 0;color:var(--soft);font-size:14px;line-height:1.6;overflow-wrap:anywhere}
@media(max-width:600px){.author-hero{flex-direction:column;text-align:center;padding:22px}.author-stats{justify-content:center}}
/* Account (/account/) and clip upload (/upload/) */
.account-page,.upload-page{max-width:1120px;margin:8px auto 0}
.flash{margin:24px 0 0;padding:14px 18px;border:1px solid var(--line-strong);border-left:3px solid var(--gold);border-radius:14px;background:#141416cc;color:var(--soft);font-size:14px}
.flash-error{border-left-color:#ff6b6b;color:#f1d0d0}
.account-hero{margin-top:24px}
.account-hero-text{flex:1;min-width:0}
.author-stats a{color:var(--soft)}.author-stats a:hover{color:var(--gold-bright)}
.account-upload{flex:none}
.account-upload svg,.file-icon svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.account-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:24px;align-items:start}
.account-card{padding:24px;border:1px solid var(--line);border-radius:var(--radius);background:#14141699}
.account-card h2{margin:0 0 18px;font-size:18px}
.account-empty{margin:0;color:var(--muted)}
.my-clips{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin:0;padding:0 6px 0 0;list-style:none;max-height:min(640px,68vh);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#3a362f transparent}
.my-clip[hidden]{display:none}
.account-clips h2{display:flex;align-items:center;justify-content:space-between;gap:12px}
.my-clips-filter{width:100%;margin:0 0 14px}
.my-clip{min-width:0;display:flex;align-items:center;gap:14px;padding:10px;border:1px solid var(--line);border-radius:16px;background:#1b1b1e80}
.my-clip-thumb{flex:none;width:96px;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:transparent}
.my-clip-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.my-clip-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.my-clip-title{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.my-clip-meta{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:12px}
.my-clip-actions{flex:none;display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.my-clip-actions form{margin:0}
.status-badge{display:inline-block;padding:2px 9px;border-radius:999px;border:1px solid var(--line-strong);font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.status-badge.is-publish{color:#4fd67a;border-color:#4fd67a59}
.status-badge.is-pending,.status-badge.is-future{color:var(--gold);border-color:var(--gold-line)}
.chip-button{display:inline-flex;align-items:center;min-height:32px;padding:0 13px;border:1px solid var(--line-strong);border-radius:999px;background:var(--panel);color:var(--soft);font:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:border-color .2s,color .2s,box-shadow .2s}
.chip-button:hover,.chip-button:focus-visible{border-color:var(--gold-line);color:var(--gold-bright);box-shadow:0 0 12px #efb63f26}
.chip-button.is-danger:hover,.chip-button.is-danger:focus-visible{border-color:#ff6b6b80;color:#ff8a8a;box-shadow:0 0 12px #ff6b6b26}
.stack-form{display:grid;gap:16px}
.field{display:grid;gap:7px;min-width:0}
.field>span,.field-group legend,.genre-pick legend{color:var(--soft);font-size:13px;font-weight:600}
.field small{color:var(--muted);font-weight:500}
.field b,.file-label b{color:var(--gold)}
.field input,.field textarea{width:100%;min-height:46px;padding:11px 15px;border:1px solid var(--line-strong);border-radius:14px;background:var(--bg);color:var(--text);font:inherit;font-size:15px;transition:border-color .2s,box-shadow .2s}
.field textarea{min-height:120px;resize:vertical;line-height:1.55}
.field input:focus,.field textarea:focus{outline:0;border-color:var(--gold);box-shadow:0 0 0 1px #efb63f80,0 0 16px #efb63f33}
.field-group{display:grid;gap:12px;margin:0;padding:0;border:0}
.field-group legend{margin-bottom:10px}
.field-note{margin:0;color:var(--muted);font-size:13px}
.field-note a{color:var(--gold)}
.stack-form .button{justify-self:start}
.upload-head{margin:28px 0 0}
.upload-head h1{margin:0;font-size:clamp(28px,4vw,40px)}
.upload-head .eyebrow a{color:inherit}
.upload-status{display:flex;align-items:center;gap:12px;margin:12px 0 0;font-size:14px}
.clip-form{display:grid;gap:24px;margin-top:24px}
.file-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.file-drop{position:relative;border:1px dashed #3a352c;border-radius:18px;background:#0b0b0c80;transition:border-color .2s,background .2s,box-shadow .2s}
.file-drop:hover,.file-drop.is-drag,.file-drop:focus-within{border-color:var(--gold);background:#efb63f0d;box-shadow:0 0 18px #efb63f1f}
.file-drop.has-file{border-style:solid;border-color:var(--gold-line)}
.file-drop.has-error{border-color:#ff6b6b99}
.file-pick{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:200px;padding:22px;text-align:center;cursor:pointer;overflow:hidden;border-radius:inherit}
.file-preview{width:100%;max-height:150px;object-fit:cover;border-radius:12px;margin-bottom:6px}
.file-preview[hidden]{display:none}
.file-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#efb63f14;color:var(--gold)}
.file-icon svg{width:22px;height:22px}
.has-file .file-preview:not([hidden])~.file-icon{display:none}
.file-label{font-weight:700}
.file-hint{color:var(--muted);font-size:12px}
.file-status{max-width:100%;color:var(--soft);font-size:13px;overflow-wrap:anywhere}
.has-file .file-status{color:var(--gold-bright)}
.has-error .file-status{color:#ff8a8a}
.file-progress{position:absolute;left:18px;right:18px;bottom:12px;height:4px;border-radius:4px;background:#ffffff1a;overflow:hidden;opacity:0;transition:opacity .2s}
.file-progress span{display:block;height:100%;background:var(--gold);transform:scaleX(0);transform-origin:left;transition:transform .2s linear}
.is-uploading .file-progress{opacity:1}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.field.is-wide{grid-column:1/-1}
.genre-pick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:22px 0 0;padding:0;border:0}
.genre-pick legend{margin-bottom:12px}
.genre-pick-group{display:grid;gap:6px;align-content:start}
.check{display:flex;align-items:center;gap:9px;color:var(--soft);font-size:14px;cursor:pointer}
.check input{width:17px;height:17px;margin:0;accent-color:var(--gold)}
.check b{color:var(--gold)}
.upload-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.upload-actions .field-note{flex:1;min-width:240px}
.upload-buttons{display:flex;gap:10px;flex-wrap:wrap}
.clip-form.is-uploading .upload-buttons .button{opacity:.5;cursor:progress}
/* Picture links in comments are shown as the picture (amv-comment-youtube.php) */
.amv-comment-image{display:block;width:fit-content;max-width:min(520px,100%);margin:12px 0;border:1px solid var(--line);border-radius:18px;overflow:hidden;line-height:0;transition:border-color .2s,box-shadow .2s}
.amv-comment-image:hover,.amv-comment-image:focus-visible{border-color:var(--gold-line);box-shadow:0 0 16px #efb63f26}
.amv-comment-image img{display:block;max-width:100%;max-height:420px;width:auto;height:auto;object-fit:contain;background:var(--panel-raised)}
/* Embedded players and posts from links in comments (amv-comment-youtube.php) */
.amv-embed{display:block;max-width:640px;margin:12px 0;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#000}
.amv-embed iframe{display:block;width:100%;border:0;color-scheme:normal}
.amv-embed-wide iframe{aspect-ratio:16/9;height:auto}
.amv-embed-tall{max-width:325px}.amv-embed-tall iframe{height:740px}
.amv-embed-square{max-width:400px}.amv-embed-square iframe{aspect-ratio:1/1;height:auto}
.amv-embed-post{max-width:550px;border:0;border-radius:14px;background:none}.amv-embed-post iframe{transition:height .25s ease}
.amv-embed-player{max-width:560px;border:0;border-radius:12px;background:none}
.amv-comment-audio{display:block;max-width:480px;margin:12px 0}
.amv-comment-audio audio{display:block;width:100%;color-scheme:dark}
.amv-comment-video{display:block;width:fit-content;max-width:min(560px,100%);margin:12px 0;border:1px solid var(--line);border-radius:18px;overflow:hidden;line-height:0;background:#000}
.amv-comment-link{overflow-wrap:anywhere}
.amv-comment-video video{display:block;max-width:100%;max-height:420px;width:auto;height:auto}
/* Follow buttons (creator pages, member pages, "About the clip") and /following/ */
.follow-wrap{display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap;vertical-align:middle}
.follow-button{display:inline-flex;align-items:center;gap:5px;min-height:30px;padding:0 13px 0 10px;border:1px solid #efb63f47;border-radius:999px;background:#efb63f0d;color:#e9c77a;font:inherit;font-size:12.5px;font-weight:600;letter-spacing:.01em;cursor:pointer;text-decoration:none;transition:background .2s,color .2s,border-color .2s}
.follow-button svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;transition:transform .25s}
.follow-button:hover,.follow-button:focus-visible{background:#efb63f1f;border-color:#efb63f80;color:var(--gold-bright)}
.follow-button .follow-text-on,.follow-button .follow-text-leave{display:none}
.follow-button.is-following{background:transparent;border-color:var(--line);color:var(--muted)}
.follow-button.is-following svg{transform:rotate(45deg)}
.follow-button.is-following .follow-text-off{display:none}
.follow-button.is-following .follow-text-on{display:inline}
.follow-button.is-following:hover,.follow-button.is-following:focus-visible{background:transparent;border-color:#ff6b6b66;color:#ff8a8a}
.follow-button.is-following:hover .follow-text-on,.follow-button.is-following:focus-visible .follow-text-on{display:none}
.follow-button.is-following:hover .follow-text-leave,.follow-button.is-following:focus-visible .follow-text-leave{display:inline}
.follow-button:disabled{opacity:.6;cursor:progress}
.follow-button.is-compact{min-height:22px;padding:0 9px 0 7px;font-size:11px;gap:3px}
.follow-button.is-compact svg{width:11px;height:11px}
.follow-count{color:var(--muted);font-size:12px}
.section-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px 20px;flex-wrap:wrap;margin:40px 0 28px}
.section-title-row .section-title{margin:0}
.author-hero-follow{flex:none;margin-left:auto}
.following-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px;margin:24px 0 0;padding:0;list-style:none}
.following-item{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:16px;background:#14141699}
.following-item>img,.following-initial{flex:none;width:40px;height:40px;border-radius:50%;border:1px solid #efb63f40}
.following-initial{display:grid;place-items:center;background:var(--gold-tint);color:var(--gold-bright);font-family:var(--display);font-size:16px}
.following-name{flex:1;min-width:0;display:flex;flex-direction:column;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.following-name a{color:var(--text)}.following-name a:hover{color:var(--gold-bright)}
.following-name small{color:var(--muted);font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
.following-empty{margin-top:24px}.following-empty p{margin:0 0 8px}
@media(max-width:600px){.author-hero-follow{margin:0}}
/* Creator stats on /account/ */
.creator-stats{margin:0 0 24px}
.creator-stats-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;margin:0 0 18px}
.creator-stats-head h2{margin:0}
.stat-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 18px}
.stat-tile{display:flex;flex-direction:column;gap:4px;padding:16px 18px;border:1px solid var(--line);border-radius:16px;background:#1b1b1e80}
.stat-tile-label{color:var(--muted);font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.stat-tile-value{font-family:var(--display);font-size:28px;font-weight:600;line-height:1.15;color:var(--text)}
.stat-tile-note{color:var(--muted);font-size:12px}
.stat-trend{font-weight:700}.stat-trend.is-up{color:#4fd67a}.stat-trend.is-down{color:#ff8a8a}
.stat-chart-card{margin:0 0 18px;padding:16px 18px 10px;border:1px solid var(--line);border-radius:16px;background:#1b1b1e80}
.stat-chart-controls{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.stat-chart-title{margin:14px 0 6px;color:var(--soft);font-size:13px;font-weight:600}
.stat-chart{position:relative;width:100%;min-height:240px}
.stat-chart svg{display:block;overflow:visible}
.stat-chart .grid{stroke:#ffffff12;stroke-width:1}
.stat-chart .axis{fill:var(--muted);font-size:11px;font-family:var(--font)}
.stat-chart .line{fill:none;stroke:var(--gold);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.stat-chart .area{fill:#efb63f1f}
.stat-chart .bar{fill:var(--gold)}
.stat-chart .crosshair{stroke:#ffffff40;stroke-width:1;stroke-dasharray:3 3}
.stat-chart .dot{fill:var(--gold-bright);stroke:#141416;stroke-width:2}
.stat-chart .hit{fill:transparent;cursor:crosshair}
.stat-tip{position:absolute;z-index:2;transform:translate(-50%,-100%);padding:6px 10px;border:1px solid var(--line-strong);border-radius:10px;background:var(--panel-raised);color:var(--soft);font-size:12px;white-space:nowrap;pointer-events:none;box-shadow:0 8px 24px #0009}
.stat-tip span{display:block;color:var(--muted);font-size:11px}
.stat-tip b{color:var(--text)}
.stat-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:12px;margin:0 0 18px}
.stat-panel{padding:16px 18px;border:1px solid var(--line);border-radius:16px;background:#1b1b1e80;min-width:0}
.stat-panel h3{margin:0 0 14px;font-size:15px}
.rating-spread{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.rating-spread li{display:grid;grid-template-columns:36px minmax(0,1fr) 34px;align-items:center;gap:10px;font-size:13px}
.rating-spread-star{color:var(--soft);font-weight:700}
.rating-spread-bar{height:10px;border-radius:999px;background:#ffffff0d;overflow:hidden}
.rating-spread-bar span{display:block;height:100%;border-radius:999px;background:var(--gold)}
.rating-spread-count{color:var(--soft);text-align:right;font-variant-numeric:tabular-nums}
.stat-comments{display:grid;gap:12px;margin:0;padding:0;list-style:none}
.stat-comments li{display:flex;gap:10px;min-width:0}
.stat-comments img{flex:none;width:36px;height:36px;border-radius:50%;border:1px solid #efb63f40}
.stat-comments div{min-width:0}
.stat-comment-head{margin:0;color:var(--muted);font-size:12px}
.stat-comment-head b{color:var(--gold)}
.stat-comment-head a{color:var(--soft)}
.stat-comment-text{margin:3px 0 0;color:var(--soft);font-size:13px;overflow-wrap:anywhere}
.stat-table-wrap{overflow-x:auto}
.stat-table{width:100%;border-collapse:collapse;font-size:13px}
.stat-table th,.stat-table td{padding:9px 10px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.stat-table th[scope=row],.stat-table thead th:first-child{text-align:left;white-space:normal}
.stat-table th[scope=row] a{color:var(--text);font-weight:600}
.stat-table thead th{color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.stat-table thead button{padding:0;border:0;background:none;color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer}
.stat-table thead button:hover{color:var(--gold-bright)}
.stat-table th[aria-sort] button{color:var(--gold)}
.stat-table th[aria-sort=descending] button::after{content:" ↓"}.stat-table th[aria-sort=ascending] button::after{content:" ↑"}
.stat-table tr[hidden]{display:none}
.stat-table small{color:var(--muted)}
.stat-table-more{margin-top:12px}
@media(max-width:900px){.stat-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-columns{grid-template-columns:minmax(0,1fr)}}
/* Review queue (administrator) and moderation states */
.review-queue{margin:0 0 24px;border-color:var(--gold-line)}
.review-queue h2,.account-clips h2{display:flex;align-items:center;justify-content:space-between;gap:12px}
.chip-button.is-approve{color:#4fd67a;border-color:#4fd67a59}
.chip-button.is-approve:hover,.chip-button.is-approve:focus-visible{color:#7be59b;border-color:#4fd67a;box-shadow:0 0 12px #4fd67a33}
.status-badge.is-returned{color:#ff8a8a;border-color:#ff6b6b66;cursor:help}
.review-note b{color:var(--text)}
.my-clip-reason{color:var(--soft);font-size:13px;font-style:italic;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Member genre picker: tiles with icons, grouped under AMV and CGI */
.genre-pick.is-member{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.genre-pick.is-member .genre-pick-group{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px}
.genre-pick.is-member .genre-pick-group.is-sections{grid-column:1/-1;grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.genre-pick-head{grid-column:1/-1;margin:0 0 2px;color:var(--gold);font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.genre-option{position:relative;display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#1b1b1e99;color:var(--soft);font-size:14px;font-weight:600;cursor:pointer;transition:border-color .2s,background .2s,color .2s,box-shadow .2s}
.genre-option input{position:absolute;opacity:0;pointer-events:none}
.genre-option:hover{border-color:#efb63f59;color:var(--text)}
.genre-option:has(input:checked){border-color:var(--gold);background:#efb63f1a;color:var(--gold-bright);box-shadow:0 0 12px #efb63f26}
.genre-option:has(input:focus-visible){outline:2px solid var(--gold);outline-offset:2px}
.genre-option .genre-icon{width:18px;height:18px}
.account-dialog-name{display:flex;align-items:center;gap:12px;margin:0 0 16px;font-weight:700}
.account-dialog-name img{width:40px;height:40px;border-radius:50%;border:1px solid #efb63f40}
@media(max-width:900px){.account-grid{grid-template-columns:1fr}.genre-pick{grid-template-columns:repeat(2,minmax(0,1fr))}.genre-pick.is-member{grid-template-columns:minmax(0,1fr)}}
@media(max-width:640px){.file-grid,.form-grid{grid-template-columns:minmax(0,1fr)}.account-card{padding:18px}.my-clip{flex-wrap:wrap}.my-clip-actions{width:100%;justify-content:flex-start}.upload-buttons{width:100%}.upload-buttons .button{flex:1}}
/* Top rated score: big, colour-graded badge */
.amv-stat-score{flex:none;align-self:center;display:inline-flex;align-items:center;gap:5px;padding:6px 11px;border-radius:12px;border:1px solid currentColor;font-family:Unbounded,var(--font-display,inherit),sans-serif;font-size:19px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
.amv-stat-score svg{width:15px;height:15px;fill:currentColor}
.amv-stat-score.is-low{color:#ff5a5a;background:#ff5a5a17;border-color:#ff5a5a59}
.amv-stat-score.is-mid{color:#ff8a3d;background:#ff8a3d17;border-color:#ff8a3d59}
.amv-stat-score.is-good{color:#4fd67a;background:#4fd67a14;border-color:#4fd67a52}
.amv-stat-score.is-top{color:#ffd77a;background:linear-gradient(135deg,#efb63f2e,#efb63f12);border-color:#efb63fb3;text-shadow:0 0 10px #efb63fb3,0 0 22px #efb63f66;box-shadow:0 0 16px #efb63f4d,inset 0 0 10px #efb63f1f}
.amv-stat-score.is-top svg{filter:drop-shadow(0 0 5px #efb63fcc)}
.amv-stat-name{font-size:14px;font-weight:600;line-height:1.45;overflow-wrap:anywhere}
.amv-stat-meta{margin-top:5px;font-size:12px;color:var(--muted)}
.amv-stat-excerpt{margin:7px 0 0;font-size:13px;color:var(--soft);line-height:1.6;overflow-wrap:anywhere}
.amv-stat-empty{margin:0;padding:18px;color:var(--muted);font-size:13px}
/* Top clips on the Favorites page */
.top-clips{margin:56px 0 0;padding-top:28px;border-top:1px solid var(--line)}
.top-clips-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 22px}
.top-clips-head h2{margin:0;font-size:clamp(22px,3vw,28px)}
.top-clips-panel[hidden]{display:none}
.top-clips-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:0;padding:0;list-style:none}
.top-clip{position:relative;min-width:0}
.top-clip-rank{position:absolute;top:10px;left:10px;z-index:2;display:grid;place-items:center;min-width:30px;height:30px;padding:0 8px;border-radius:999px;background:#0b0b0ccc;border:1px solid var(--gold-line);color:var(--gold-bright);font-family:var(--display);font-size:13px;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.top-clip:nth-child(-n+3) .top-clip-rank{background:var(--gold);border-color:var(--gold);color:#17130b;box-shadow:0 0 14px #efb63f66}
.top-clip-metric{position:absolute;top:10px;right:10px;z-index:2;padding:4px 10px;border-radius:999px;background:#0b0b0ccc;border:1px solid var(--line-strong);color:var(--text);font-size:12px;font-weight:700;white-space:nowrap;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
@media(max-width:1100px){.top-clips-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:820px){.top-clips-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}
@media(max-width:480px){.top-clips-grid{grid-template-columns:minmax(0,1fr)}}
/* Comments and clip rating (theme comments.php + comments.js) */
.comments-section{margin-top:8px;padding-top:12px;border-top:1px solid var(--line)}
.amv-comments{margin-top:18px}
.amv-rating{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;margin:0 0 26px;padding:16px 20px;border:1px solid var(--line);border-radius:18px;background:#14141699}
.amv-rating-label{color:var(--muted);font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.amv-rating-stars{display:flex;gap:2px}
.amv-star{display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;background:none;color:#4a453c}
button.amv-star{cursor:pointer;transition:transform .15s,color .15s}
.amv-star svg{width:26px;height:26px;fill:currentColor}
.amv-star.is-on{color:var(--gold);filter:drop-shadow(0 0 6px #efb63f66)}
button.amv-star:hover{transform:scale(1.15)}
button.amv-star:focus-visible{outline:2px solid var(--gold);outline-offset:1px;border-radius:8px}
.amv-rating-summary{color:var(--soft);font-size:14px}
.amv-rating-average{margin-right:4px;font-family:var(--display);font-size:20px;color:var(--text)}
.amv-rating-count{color:var(--muted)}
.amv-rating-signin{margin-left:auto;color:var(--gold);font-size:14px;font-weight:600}
.amv-rating.is-busy{opacity:.6;pointer-events:none}
.amv-rating.is-saved .amv-rating-stars{animation:amv-rate-pop .6s ease}
@keyframes amv-rate-pop{40%{transform:scale(1.08)}}
.amv-comments-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 18px}
.amv-comments-head h2{margin:0;font-size:20px}
.amv-sort{display:flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:999px;background:var(--panel)}
.amv-sort button{padding:6px 14px;border:0;border-radius:999px;background:none;color:var(--muted);font:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:color .2s,background .2s}
.amv-sort button:hover{color:var(--text)}
.amv-sort button[aria-pressed="true"]{background:var(--gold-tint);color:var(--gold-bright)}
.archive-sort{width:max-content;max-width:100%;margin:-12px auto 22px;overflow-x:auto;scrollbar-width:none}
.archive-sort::-webkit-scrollbar{display:none}
.archive-sort.section-sort{margin:28px auto 18px}
.archive-sort a{flex:none;padding:6px 14px;border-radius:999px;color:var(--muted);font-size:13px;font-weight:600;white-space:nowrap;text-decoration:none;transition:color .2s,background .2s}
.archive-sort a:hover{color:var(--text)}
.archive-sort a[aria-current]{background:var(--gold-tint);color:var(--gold-bright)}
.amv-comment-form{display:flex;gap:14px;margin:0 0 28px}
.amv-comment>.amv-comment-form{margin:0 0 16px 58px}
.amv-comment-form-avatar img,.amv-comment-avatar img{display:block;width:44px;height:44px;border:1px solid var(--gold-line);border-radius:50%;object-fit:cover}
.amv-comment-field{flex:1;min-width:0}
.amv-comment-field textarea{display:block;width:100%;min-height:96px;max-height:420px;padding:13px 16px;border:1px solid var(--line-strong);border-radius:16px;background:var(--bg);color:var(--text);font:inherit;font-size:15px;line-height:1.6;resize:none;transition:border-color .2s,box-shadow .2s}
.amv-comment-field textarea:focus{outline:0;border-color:var(--gold);box-shadow:0 0 0 1px #efb63f80,0 0 16px #efb63f33}
.amv-comment-field textarea::placeholder{color:var(--muted)}
.amv-comment-form-foot{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-top:10px}
.amv-comment-error{margin:0 auto 0 0;color:#ff8a8a;font-size:13px}
.amv-reply-to{display:flex;align-items:center;gap:8px;margin:0 0 8px;color:var(--muted);font-size:13px}
.amv-reply-to[hidden]{display:none}
.amv-reply-to b{color:var(--gold)}
.amv-reply-to button{padding:0;border:0;background:none;color:var(--soft);font:inherit;font-size:13px;text-decoration:underline;cursor:pointer}
.amv-comments-signin{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 28px;color:var(--muted)}
.amv-comments-signin a:not(.button){color:var(--gold)}
.amv-comments-closed,.amv-comments-empty{color:var(--muted)}
.amv-comment-list,.amv-comment-children{margin:0;padding:0;list-style:none}
.amv-comment-children{margin-left:58px;padding-left:16px;border-left:1px solid var(--line)}
.amv-comment-children:empty{display:none}
.amv-comment{margin:0}
.amv-comment-card{display:flex;gap:14px;padding:16px 0}
.amv-comment-list>.amv-comment+.amv-comment{border-top:1px solid var(--line)}
.amv-comment-avatar{flex:none;align-self:flex-start;border-radius:50%;transition:box-shadow .25s}
a.amv-comment-avatar:hover{box-shadow:0 0 0 2px #0b0b0c,0 0 10px #efb63f66}
.amv-comment-main{flex:1;min-width:0}
.amv-comment-head{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;color:var(--muted);font-size:13px}
.amv-comment-author{color:var(--gold);font-size:14px;font-weight:700}
a.amv-comment-author:hover{color:var(--gold-bright)}
.amv-comment-badge{padding:1px 8px;border-radius:999px;background:var(--gold);color:#17130b;font-size:11px;font-weight:700}
.amv-comment-link{margin-left:auto;color:var(--muted);opacity:0;transition:opacity .2s}
.amv-comment-card:hover .amv-comment-link,.amv-comment-link:focus-visible{opacity:1}
.amv-comment-pending{margin:6px 0 0;color:var(--gold);font-size:13px}
.amv-comment-text{margin-top:6px;color:var(--soft);font-size:15px;line-height:1.7;overflow-wrap:anywhere}
.amv-comment-text p{margin:0 0 10px}.amv-comment-text p:last-child{margin-bottom:0}
.amv-comment-text a{color:var(--gold-bright)}
.amv-comment-actions{display:flex;align-items:center;gap:10px;margin-top:10px}
.amv-vote{display:flex;align-items:center;gap:6px}
.amv-vote-btn,.amv-reply{display:inline-flex;align-items:center;justify-content:center;height:32px;border:1px solid var(--line-strong);background:var(--panel);color:var(--muted);font:inherit;font-weight:700;cursor:pointer;transition:color .2s,border-color .2s,box-shadow .2s,background .2s}
.amv-vote-btn{width:32px;border-radius:50%;font-size:16px;line-height:1}
.amv-vote-btn:hover,.amv-reply:hover{color:var(--gold-bright);border-color:var(--gold);box-shadow:var(--glow)}
.amv-vote-btn[aria-pressed="true"]{border-color:var(--gold);background:var(--gold);color:#17130b}
.amv-vote-btn:disabled{opacity:.6;cursor:progress}
.amv-vote-score{min-width:24px;color:var(--soft);font-weight:700;text-align:center;font-variant-numeric:tabular-nums}
.amv-reply{gap:6px;padding:0 14px 0 11px;border-radius:999px;font-size:13px;font-weight:600}
.amv-reply svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.amv-vote-score.is-positive{color:#4fd67a}
.amv-vote-score.is-negative{color:#ff8a8a}
/* The clip's best comment */
.amv-comment.is-top>.amv-comment-card{margin:6px 0;padding:16px;border:1px solid var(--gold-line);border-radius:16px;background:linear-gradient(135deg,#efb63f14,#efb63f05 60%);box-shadow:0 0 24px #efb63f1a}
.amv-comment-top{display:inline-flex;align-items:center;gap:5px;padding:2px 9px 2px 7px;border:1px solid #efb63fb3;border-radius:999px;background:#efb63f1f;color:var(--gold-bright);font-size:11px;font-weight:700;text-shadow:0 0 8px #efb63f80}
.amv-comment-top svg{width:12px;height:12px;fill:currentColor;filter:drop-shadow(0 0 4px #efb63fcc)}
.amv-stat-score.is-thumb svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.amv-comment-edited{color:var(--muted);font-size:12px;font-style:italic;cursor:help}
.amv-comment-edited[hidden]{display:none}
.amv-edit-form{margin-top:8px}
.amv-edit-form textarea{display:block;width:100%;min-height:80px;max-height:420px;padding:12px 15px;border:1px solid var(--gold-line);border-radius:14px;background:var(--bg);color:var(--text);font:inherit;font-size:15px;line-height:1.6;resize:none}
.amv-edit-form textarea:focus{outline:0;border-color:var(--gold);box-shadow:0 0 0 1px #efb63f80,0 0 16px #efb63f33}
.amv-comment-text[hidden],.amv-edit[hidden]{display:none}
.amv-comment.is-new>.amv-comment-card{animation:amv-new-comment 1.6s ease}
@keyframes amv-new-comment{from{border-radius:14px;background:#efb63f1f}}
.amv-comment:target>.amv-comment-card{border-radius:14px;background:#efb63f12}
@media(max-width:600px){.amv-comment-children{margin-left:18px;padding-left:12px}.amv-comment>.amv-comment-form{margin-left:0}.amv-comment-form-avatar{display:none}.amv-rating-signin{margin-left:0}}
/* Footer and background */
.site-footer{margin-top:72px;border-top:1px solid var(--line);background:var(--footer)}
.footer-inner{max-width:1320px;margin:auto;padding:40px;display:flex;align-items:center;gap:24px 40px;flex-wrap:wrap}
.footer-brand{display:flex;flex-direction:column;gap:8px;margin-right:auto}
.footer-brand img{display:block;width:104px;height:auto}
.footer-brand span{color:var(--muted);font-size:14px}
.footer-nav{display:flex;gap:28px;flex-wrap:wrap;align-items:center;font-size:14px}
.footer-nav a,.footer-nav .text-button{color:var(--soft)}
/* Site numbers between the logo and the links */
.footer-stats{display:flex;gap:8px 28px;flex-wrap:wrap;margin:0;padding:0;list-style:none;color:var(--muted);font-size:14px}
.footer-stats b{margin-right:2px;color:var(--gold-bright);font-family:var(--display);font-size:18px;font-weight:600}
/* Bottom row: copyright and contact */
.footer-bottom{max-width:1320px;margin:auto;padding:16px 40px 28px;display:flex;justify-content:space-between;gap:10px 24px;flex-wrap:wrap;border-top:1px solid var(--line);color:var(--muted);font-size:13px}
.footer-bottom a{color:var(--soft)}
.footer-bottom a:hover{color:var(--gold-bright)}
@media(max-width:640px){.footer-bottom{padding:14px 16px 24px;flex-direction:column}.footer-stats{gap:6px 20px}}
.text-button{padding:0;border:0;color:inherit;background:none;font-size:inherit}
.text-button:hover,.footer-nav a:hover{color:var(--gold-bright)}
#site-particles{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;display:block;opacity:.89}
#wpadminbar{z-index:100000!important}
/* Back to top: borderless, fades and rises in; after a click it lingers briefly, then fades out (site.js toggles .is-visible) */
/* Wide screens: in the empty side gutter, 148px outside the 1320px content (152px from the edge on a 1920px window), raised to 230px. */
#amv-back-to-top{position:fixed;right:max(24px,calc((100vw - 1320px) / 2 - 148px));bottom:218px;width:52px;height:52px;padding:0;border:0;border-radius:50%;background:none;color:var(--soft);z-index:1000;cursor:pointer;opacity:0;visibility:hidden;transform:translateY(16px) scale(.92);transition:opacity .5s ease,transform .5s cubic-bezier(.2,.8,.2,1),visibility 0s linear .5s,color .2s}
#amv-back-to-top.is-visible{opacity:1;visibility:visible;transform:none;transition:opacity .5s ease,transform .5s cubic-bezier(.2,.8,.2,1),visibility 0s,color .2s}
#amv-back-to-top.is-visible{opacity:.55}
/* Narrower desktops have no gutter for it, so it goes back to the bottom corner; phones, tablets and touch screens don't show it */
@media(max-width:1399px){#amv-back-to-top{right:24px;bottom:32px}}
@media(max-width:1024px),(pointer:coarse){#amv-back-to-top{display:none!important}}
#amv-back-to-top.is-visible:hover,#amv-back-to-top.is-visible:focus-visible,#amv-back-to-top.is-visible.is-launching{opacity:1}
#amv-back-to-top:hover{color:var(--gold-bright)}
/* Small arrow that grows when pressed (site.js adds .is-launching for the short hold before the fade) */
#amv-back-to-top .top-arrow{transform-box:fill-box;transform-origin:center;transform:scale(.62);filter:drop-shadow(0 1px 3px #000c);transition:transform .45s cubic-bezier(.2,.8,.2,1)}
#amv-back-to-top:hover .top-arrow{transform:scale(.7) translateY(-1px)}
#amv-back-to-top.is-launching .top-arrow{transform:scale(.8) translateY(-2px);color:var(--gold-bright)}
/* Ring: the gold progress arc with round ends and a soft glow, drawn with geometric precision */
#amv-back-to-top svg{overflow:visible;shape-rendering:geometricPrecision}
#amv-back-to-top.is-launching .top-progress,#amv-back-to-top:hover .top-progress{filter:drop-shadow(0 0 3px #efb63f8c)}
#amv-back-to-top.is-launching{color:var(--gold-bright)}
#amv-back-to-top svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2}
/* stroke-width is in viewBox units: 48 units span 52px, so 2.4 units is about 2.6px */
#amv-back-to-top .top-progress{stroke:var(--gold);stroke-width:2.4;stroke-linecap:round;stroke-dasharray:131.947;stroke-dashoffset:var(--top-progress,131.947);transform:rotate(-90deg);transform-origin:center;filter:drop-shadow(0 0 2px #efb63f59);transition:filter .3s}
/* Gold glow on hover for interactive surfaces */
.button,.round-button,.search-pill,.page-numbers,.amv-favorite-button,.rail-arrow{transition:background .2s,border-color .2s,color .2s,box-shadow .25s}
.button:hover,.round-button:hover,.search-pill:hover,a.page-numbers:hover,.amv-favorite-button:hover,.rail-arrow:hover{box-shadow:var(--glow)}
.search-pill:hover{border-color:var(--gold)}
.clip-card:hover{border-color:var(--gold-line);box-shadow:0 14px 36px #0005,var(--glow-soft)}
.clip-card:hover .play-mark{box-shadow:var(--glow)}
.next-item:hover .next-thumb{box-shadow:var(--glow)}
@media(max-width:1180px){
  .header-inner{gap:20px;padding:0 28px}.primary-nav{margin-left:-1px}.primary-nav a{padding:10px 5px;font-size:14px}.search-pill{width:210px}
  .site-main{padding:0 28px}.clip-feed,.archive-grid,.amv-favorites-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
  .discovery-track>a{flex-basis:calc((100% - 48px)/4)}.footer-inner{padding:36px 28px}
}
@media(max-width:850px){.header-inner{gap:14px}.primary-nav{margin-left:5px;top:5px}.primary-nav a{padding:10px 5px}.site-logo img{width:100px}.header-actions{gap:8px}}
@media(max-width:767px){
  .header-inner{min-height:68px;padding:0 16px;gap:8px}.site-logo{margin-right:auto}.site-logo img{width:100px}.header-actions{gap:8px}
  .primary-nav,.desktop-only,.header-search,.login-pill{display:none}.mobile-menu,.mobile-only{display:inline-flex}
  .mobile-menu{border-color:var(--gold-line);background:var(--gold-tint);color:var(--gold-bright)}
  .site-main{padding:0 16px}
  .hero-dots{left:22px;right:auto;top:30px;bottom:auto}.hero-hide{top:16px;right:16px}
  .hero{margin-top:16px;min-height:420px;border-radius:24px}.hero-body{padding:22px;gap:12px}.hero-eyebrow{font-size:11px}.hero-eyebrow:before{width:20px}.hero-title{font-size:28px;line-height:1.08}.hero .clip-meta{font-size:13px;gap:8px 16px}
  .hero-actions .button-large{flex-grow:1;min-height:50px;font-size:15px}
  .eyebrow{font-size:11px}.section-heading{margin:28px 0 16px;gap:12px}.section-heading h2,.section-heading .section-title{font-size:22px}.section-title{margin:28px 0 20px}
  .discovery{margin-top:20px}.discovery+.clip-feed{margin-top:28px}.discovery-track{gap:10px}.discovery-track>a{flex-basis:42%;border-radius:12px}.discovery-label{font-size:11px;padding:20px 9px 8px}
  .rail-arrow{width:32px;height:32px}.rail-arrow svg{width:18px;height:18px}.rail-prev{left:-10px}.rail-next{right:-10px}
  .clip-feed,.archive-grid,.amv-favorites-grid{gap:18px 14px}.clip-card{border-radius:18px}.clip-body,.compact .clip-body{padding:16px}.clip-card h2,.compact h2{font-size:17px;margin:8px 0 13px}.clip-meta{gap:7px 12px;font-size:12px}
  .clip-categories{font-size:11px}.play-mark{width:38px;height:38px;left:10px;bottom:10px}.pagination{margin-top:32px}
  .single-clip{padding-top:16px}.video-shell{border-radius:18px}.single-clip .amv-video{max-height:75vh}
  .single-head{margin:20px 0 22px}.single-head h1{font-size:28px}.single-head .clip-meta{font-size:13px;gap:8px 16px}
  .clip-details{padding:20px;margin-bottom:26px}.detail-grid{grid-template-columns:minmax(0,1fr);gap:10px}.detail-grid>div{padding:12px 14px}
  .next-thumb{flex-basis:132px}
  .plain-page{margin-top:28px}.plain-page>h1{font-size:30px}.site-dialog{padding:22px;width:calc(100vw - 24px);border-radius:20px}
  .dialog-top{margin-bottom:22px}.dialog-top h2{font-size:20px}.category-tree{columns:1}.amv-stat-total{font-size:11px}
  .site-footer{margin-top:48px}.footer-inner{padding:28px 16px;gap:18px 24px}.footer-nav{gap:16px 24px;font-size:13px}
  #amv-back-to-top{display:none}
  #site-particles{display:none}
}
@media(max-width:560px){
  .clip-feed,.archive-grid,.amv-favorites-grid{grid-template-columns:minmax(0,1fr);gap:20px}.clip-body,.compact .clip-body{padding:18px 20px 20px}.clip-card h2,.compact h2{font-size:19px}.clip-meta{font-size:12px}
  .section-caption{max-width:140px}.amv-favorites-heading{font-size:13px}.amv-favorite-status{width:100%}
}
@media(max-width:370px){.header-inner{padding:0 12px;gap:6px}.site-logo img{width:84px}.header-actions{gap:6px}.round-button{width:40px;height:40px}.site-main{padding:0 12px}.hero-title{font-size:24px}.amv-favorite-button{font-size:13px;padding:8px 12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}#site-particles{display:none}}

/* Share / report buttons on the player (same look as theater and CC) */
.player-icon-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:#0b0b0cb3;color:#f4efe6;cursor:pointer;transition:color .2s,box-shadow .25s,background .2s;backdrop-filter:blur(6px)}
.player-icon-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.player-icon-button:hover,.player-icon-button:focus-visible{color:var(--gold-bright);background:#0b0b0cd9;box-shadow:0 0 18px #efb63f66}
/* Report on a comment: quiet, at the end of the row */
.amv-reply.amv-report{margin-left:auto;border-color:transparent;background:none;padding:0 8px;opacity:.7}
.amv-reply.amv-report:hover,.amv-reply.amv-report:focus-visible{opacity:1;color:#ff8a8a;border-color:transparent;box-shadow:none}
.amv-comment-card:not(:hover):not(:focus-within) .amv-report{opacity:0}
@media(hover:none){.amv-comment-card .amv-report{opacity:.7}}
/* Clickable timestamps in comments */
.amv-time{padding:0 5px;border-radius:6px;background:var(--gold-tint);color:var(--gold-bright);font-variant-numeric:tabular-nums;font-weight:700;text-decoration:none;transition:background .2s}
.amv-time:hover,.amv-time:focus-visible{background:#efb63f33}
/* Share dialog */
.share-dialog{width:min(480px,calc(100vw - 32px))}
.share-link{display:flex;gap:8px;margin-top:16px}
.share-link input{flex:1;min-width:0;height:44px;padding:0 14px;border:1px solid var(--line-strong);border-radius:12px;background:var(--bg);color:var(--soft);font:inherit;font-size:14px}
.share-start{display:flex;align-items:center;gap:8px;margin-top:12px;color:var(--soft);font-size:14px;cursor:pointer}
.share-start input{accent-color:var(--gold)}
.share-start span{font-variant-numeric:tabular-nums;color:var(--text);font-weight:700}
.share-targets{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.share-targets .chip-button{text-decoration:none}
.share-targets .chip-button:hover{border-color:var(--gold-line);color:var(--gold-bright)}
/* Report dialog */
.report-dialog{width:min(460px,calc(100vw - 32px))}
.report-what{margin:12px 0 0;color:var(--muted);font-size:14px}
.report-reasons{display:grid;gap:4px;margin:14px 0 0;padding:0;border:0}
.report-reasons label{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:12px;cursor:pointer;transition:background .2s}
.report-reasons label:hover{background:var(--panel-raised)}
.report-reasons input{accent-color:var(--gold)}
.report-note{display:grid;gap:6px;margin-top:14px;font-size:13px;color:var(--muted)}
.report-note textarea{width:100%;padding:10px 12px;border:1px solid var(--line-strong);border-radius:12px;background:var(--bg);color:var(--text);font:inherit;font-size:14px;resize:vertical}
.report-status{min-height:20px;margin:10px 0 0;font-size:14px;color:var(--soft)}
.report-actions{display:flex;justify-content:flex-end;margin-top:8px}
/* Notifications bell and the administrator's badge */
.notify-button{position:relative}
.notify-count,.queue-badge{position:absolute;top:-3px;right:-3px;display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--gold);color:#17130b;font-size:11px;font-weight:800;line-height:1;box-shadow:0 0 0 2px var(--bg)}
.notify-count[hidden]{display:none}
.round-button.account-avatar{position:relative;overflow:visible}
.queue-badge.is-inline{position:static;margin-left:auto;box-shadow:none}
.dialog-links .review-link{gap:10px}
.notify-dialog{width:min(520px,calc(100vw - 32px))}
.notify-list{margin-top:14px}
.notify-items{display:grid;gap:4px;margin:0;padding:0;list-style:none}
.notify-item{display:flex;gap:12px;align-items:flex-start;padding:10px 12px;border-radius:14px;color:var(--text);text-decoration:none;transition:background .2s}
.notify-item:hover,.notify-item:focus-visible{background:var(--panel-raised)}
.notify-item.is-unread{background:#efb63f0f}
.notify-item.is-unread .notify-text::before{content:"";display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:var(--gold);vertical-align:2px}
.notify-pic{flex:none;width:36px;height:36px;border-radius:50%;overflow:hidden;background:var(--panel-raised);border:1px solid var(--line-strong)}
.notify-pic img{display:block;width:100%;height:100%;object-fit:cover}
.notify-body{display:grid;gap:3px;min-width:0}
.notify-text{font-size:14px;line-height:1.35}
.notify-excerpt{color:var(--muted);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.notify-ago{color:var(--muted);font-size:12px}
/* Up next overlay at the end of a clip */
.upnext{position:absolute;inset:0;z-index:4;display:flex;align-items:center;justify-content:center;gap:22px;padding:24px;background:#0b0b0ce6;backdrop-filter:blur(8px);animation:upnext-in .35s ease}
@keyframes upnext-in{from{opacity:0}}
.upnext-poster{width:min(240px,34%);aspect-ratio:16/9;object-fit:cover;border-radius:14px;border:1px solid var(--line-strong)}
.upnext-body{display:grid;gap:8px;max-width:340px}
.upnext-label{margin:0;color:var(--muted);font-size:13px;letter-spacing:.08em;text-transform:uppercase}
.upnext-label b{color:var(--gold-bright);font-variant-numeric:tabular-nums}
.upnext-title{margin:0;font-family:var(--display);font-size:clamp(17px,2.2vw,24px);line-height:1.2}
.upnext-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
@media(max-width:600px){.upnext{flex-direction:column;gap:12px;padding:16px}.upnext-poster{display:none}}
/* Anime-source links */
.detail-grid .source-link{color:var(--text);text-decoration:none;border-bottom:1px solid var(--line-strong);transition:color .2s,border-color .2s}
.detail-grid .source-link:hover,.detail-grid .source-link:focus-visible{color:var(--gold-bright);border-color:var(--gold-line)}
/* Resume pill and on-screen hints for player keys */
/* Top-left, clear of the native controls at the bottom; solid background (a blur over video renders blocky). */
.resume-pill{position:absolute;z-index:3;left:12px;top:12px;display:flex;align-items:center;height:36px;border-radius:999px;background:#0b0b0ce6;box-shadow:inset 0 0 0 2px #efb63f80,0 0 14px #efb63f40;animation:upnext-in .35s ease}
.resume-go{display:inline-flex;align-items:center;gap:7px;height:100%;padding:0 4px 0 13px;border:0;background:none;color:#f4efe6;font:inherit;font-size:12.5px;font-weight:600;cursor:pointer;transition:color .2s}
.resume-go svg{width:13px;height:13px;fill:currentColor;color:var(--gold)}
.resume-x{display:grid;place-items:center;width:32px;height:100%;border:0;background:none;color:var(--muted);cursor:pointer;transition:color .2s}
.resume-x svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.resume-go:hover{color:var(--gold-bright)}.resume-x:hover{color:var(--text)}
.player-osd{position:absolute;z-index:5;left:50%;top:50%;padding:10px 18px;border-radius:14px;background:#0b0b0cc7;color:#fff;font-size:15px;font-weight:700;font-variant-numeric:tabular-nums;transform:translate(-50%,-50%);opacity:0;pointer-events:none}
.player-osd.is-on{animation:osd .9s ease}
@keyframes osd{0%,60%{opacity:1}100%{opacity:0}}
/* Member page: cover, bio, links */
.author-hero.has-cover{position:relative;overflow:hidden;min-height:220px;align-items:flex-end;background:linear-gradient(180deg,#0b0b0c1a 0%,#0b0b0cbf 62%,#0b0b0cf2 100%),var(--author-cover) center/cover no-repeat var(--panel)}
.author-hero.has-cover>*{position:relative}
.author-bio{max-width:62ch;margin:0 0 10px;color:var(--soft);font-size:15px;line-height:1.55;white-space:pre-line}
.author-links{display:flex;flex-wrap:wrap;gap:6px 14px;margin:0 0 10px}
.author-link{color:var(--gold);font-size:13px;font-weight:700;text-decoration:none}
.author-link:hover,.author-link:focus-visible{color:var(--gold-bright)}
@media(max-width:600px){.author-links{justify-content:center}.author-hero.has-cover{min-height:0}}
.field select{width:100%;min-height:46px;padding:0 15px;border:1px solid var(--line-strong);border-radius:14px;background:var(--bg);color:var(--text);font:inherit;font-size:15px}
.field select:focus{outline:0;border-color:var(--gold)}
.cover-field{display:grid;gap:8px}
.cover-field>span{font-size:14px;color:var(--soft)}
.cover-field input[type=file]{color:var(--muted);font-size:13px}
.cover-preview{width:100%;max-height:140px;object-fit:cover;border-radius:12px;border:1px solid var(--line-strong)}
/* Add to collection */
.collect-dialog{width:min(480px,calc(100vw - 32px))}
.collect-list{display:grid;gap:2px;margin:14px 0 0;padding:0;list-style:none;max-height:46vh;overflow:auto}
.collect-list li{display:flex;align-items:center;gap:8px;border-radius:12px;transition:background .2s}
.collect-list li:hover{background:var(--panel-raised)}
.collect-list label{flex:1;display:flex;align-items:center;gap:10px;min-width:0;padding:10px 12px;cursor:pointer}
.collect-list input{accent-color:var(--gold);width:17px;height:17px}
.collect-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.collect-count{color:var(--muted);font-size:12px;white-space:nowrap}
.collect-open{padding:0 12px;color:var(--muted);font-size:12px;text-decoration:none}.collect-open:hover{color:var(--gold-bright)}
.collect-new{display:flex;gap:8px;margin-top:14px}
.collect-new input{flex:1;min-width:0;height:44px;padding:0 14px;border:1px solid var(--line-strong);border-radius:12px;background:var(--bg);color:var(--text);font:inherit;font-size:14px}
/* Collection page and tiles */
.collection-hero{margin:28px 0 26px}
.collection-hero .eyebrow{margin:0;color:var(--gold);font-size:12px;letter-spacing:.14em;text-transform:uppercase}
.collection-hero h1{margin:6px 0 10px;font-size:clamp(28px,4.4vw,44px);line-height:1.1}
.collection-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;margin:0 0 10px;color:var(--muted);font-size:14px}
.collection-meta a{display:inline-flex;align-items:center;gap:8px;color:var(--soft);font-weight:700;text-decoration:none}
.collection-meta a:hover{color:var(--gold-bright)}
.collection-meta img{width:26px;height:26px;border-radius:50%}
.collection-about{max-width:70ch;margin:0 0 14px;color:var(--soft);line-height:1.55;white-space:pre-line}
.collection-actions{display:flex;flex-wrap:wrap;gap:8px}
.collection-actions .is-danger:hover{border-color:#ff6b6b66;color:#ff8a8a}
.collection-form{max-width:560px;margin-top:16px}
.collection-form-actions{display:flex;gap:8px}
.collection-item{position:relative;min-width:0}
.collection-remove{position:absolute;z-index:2;top:10px;right:10px;display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:50%;background:#0b0b0cc7;color:#f4efe6;cursor:pointer;opacity:0;transition:opacity .2s,color .2s}
.collection-remove svg{width:15px;height:15px}
.collection-item:hover .collection-remove,.collection-remove:focus-visible{opacity:1}
.collection-remove:hover{color:#ff8a8a}
@media(hover:none){.collection-remove{opacity:1}}
.collection-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;margin:0 0 30px;padding:0;list-style:none}
.collection-tile{display:grid;gap:6px;padding:10px;border:1px solid var(--line);border-radius:18px;background:#14141699;color:var(--text);text-decoration:none;transition:border-color .2s,transform .2s}
.collection-tile:hover,.collection-tile:focus-visible{border-color:var(--gold-line);transform:translateY(-2px)}
.collection-cover{display:grid;grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr;gap:3px;aspect-ratio:16/9;overflow:hidden;border-radius:12px;background:var(--panel-raised)}
.collection-cover img{width:100%;height:100%;object-fit:cover}
.collection-cover img:first-child{grid-row:span 2}
.collection-cover img:only-child{grid-column:span 2}
.collection-cover.is-empty{display:block}
.collection-name{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 4px}
.collection-count{color:var(--muted);font-size:12px;padding:0 4px 2px}
/* Embed code in the share dialog */
.share-embed{display:grid;gap:8px;margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
.share-embed label{color:var(--soft);font-size:14px}
.share-embed textarea{width:100%;padding:10px 12px;border:1px solid var(--line-strong);border-radius:12px;background:var(--bg);color:var(--muted);font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;resize:none}
.share-embed .chip-button{justify-self:start}
/* Searched, not found (administrator) */
.missed-searches{display:grid;gap:2px;margin:12px 0 14px;padding:0;list-style:none}
.missed-searches li{display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:12px}
.missed-searches li:hover{background:var(--panel-raised)}
.missed-query{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text);font-weight:600;text-decoration:none}
.missed-query:hover{color:var(--gold-bright)}
.missed-hits{color:var(--gold);font-weight:800;font-variant-numeric:tabular-nums}
.missed-searches time{color:var(--muted);font-size:12px;white-space:nowrap}
/* Watch later: clock button over the card poster (shown on hover, always when saved) */
.card-later{position:absolute;z-index:3;top:10px;right:10px;display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:#0b0b0cc7;color:#f4efe6;cursor:pointer;opacity:0;transition:opacity .2s,color .2s,box-shadow .2s}
.card-later svg,.player-icon-button[data-later] svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.card-later svg{width:17px;height:17px}
.clip-card:hover .card-later,.clip-card:focus-within .card-later,.card-later[aria-pressed=true]{opacity:1}
.card-later:hover,.card-later:focus-visible{color:var(--gold-bright);box-shadow:0 0 14px #efb63f59}
.card-later[aria-pressed=true],.player-icon-button[data-later][aria-pressed=true]{color:#17130b;background:var(--gold)}
@media(hover:none){.card-later{opacity:.85}}
.youtube-player.in-card~.card-later{top:10px}
/* Push switch under the notifications */
.push-row{display:flex;align-items:center;gap:14px;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.push-text{flex:1;color:var(--muted);font-size:13px;line-height:1.4}
/* Author achievements */
.author-badges{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 0;padding:0;list-style:none}
.author-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 11px 4px 8px;border:1px solid #efb63f4d;border-radius:999px;background:#efb63f12;color:#e9c77a;font-size:12px;font-weight:700;cursor:default}
.author-badge svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.author-badge.badge-week,.author-badge.badge-star{border-color:var(--gold);background:#efb63f26;color:var(--gold-bright);box-shadow:0 0 12px #efb63f33}
@media(max-width:600px){.author-badges{justify-content:center}}
/* Creator page: Follow + "This is me" */
.creator-title-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.claim-form{margin:0}
.claim-button{min-height:30px;padding:0 12px;border:1px solid var(--line-strong);border-radius:999px;background:transparent;color:var(--muted);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer;transition:color .2s,border-color .2s}
.claim-button:hover,.claim-button:focus-visible{color:var(--text);border-color:var(--gold-line)}
.claim-pending{color:var(--muted);font-size:12.5px}
.author-aliases{margin:-2px 0 10px;color:var(--muted);font-size:14px}
.author-aliases b{color:var(--soft)}
/* Upload: frame for the poster */
.poster-time{max-width:420px;margin-top:14px}
/* Site overview: top clips */
.overview-top{display:grid;gap:2px;margin:10px 0 0;padding:0 0 0 22px}
.overview-top li{padding:6px 4px;color:var(--muted)}
.overview-top li::marker{color:var(--gold);font-weight:800}
.overview-top a{color:var(--text);font-weight:600;text-decoration:none}
.overview-top a:hover{color:var(--gold-bright)}
.overview-top span{float:right;font-variant-numeric:tabular-nums;font-size:13px}
.site-overview .stat-panel{margin-top:16px}
/* Account: clips and collections stacked on the left, the profile in the right column */
.account-main{display:grid;gap:24px;min-width:0;align-content:start}
/* Play all: the queue bar above the clip title */
.queue-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;padding:9px 10px 9px 16px;border:1px solid var(--gold-line);border-radius:999px;background:#efb63f12;font-size:13px}
.queue-bar a{color:var(--gold-bright);font-weight:700;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.queue-bar button{flex:none;padding:5px 12px;border:1px solid var(--line-strong);border-radius:999px;background:var(--panel);color:var(--soft);font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.queue-bar button:hover{color:var(--text);border-color:var(--gold-line)}
[data-play-all] svg{width:16px;height:16px}
/* Pinned clip on a member page */
.pinned-clip{max-width:760px;margin-bottom:34px}
.pinned-clip .clip-card{border-color:var(--gold-line);box-shadow:0 0 24px #efb63f1f}
/* Random clip (header) */
.round-button.random-button svg{width:19px;height:19px}
/* Phones: the sort switcher fits without scrolling (Rated · Viewed · Voted · Discussed) */
@media(max-width:520px){
  .archive-sort .sort-prefix{display:none}
  .archive-sort a{padding:6px 11px;text-transform:capitalize}
}
/* Touch screens: small controls get a finger-sized target */
@media(pointer:coarse){
  .follow-button{min-height:38px;padding:0 15px 0 12px}
  .follow-button.is-compact{min-height:32px}
  .hero-hide{width:40px;height:40px}
  .amv-comment-link{display:inline-grid;place-items:center;min-width:32px;min-height:32px}
  .amv-rating-signin{display:inline-block;padding:9px 0}
  .claim-button{min-height:38px}
}
/* Ratings & comments drawer: links in a comment shown as labels (YouTube video, Image, Video…) */
.amv-stat-media{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 0}
.amv-stat-media span{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:3px 10px 3px 8px;border:1px solid #efb63f40;border-radius:999px;background:#efb63f0f;color:#e9c77a;font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.amv-stat-media svg{flex:none;width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.amv-stat-media svg path[d^="M8 5.5"]{fill:currentColor;stroke:none}
/* Creator field "?" = unknown */
.creator-unknown{color:var(--muted);font-style:italic;font-weight:500;cursor:help}
/* Cards in a row line up: long titles stop at two lines, the date/stats row sits at the bottom */
.clip-card{display:flex;flex-direction:column}
.clip-card>.clip-body{flex:1;display:flex;flex-direction:column}
.clip-card .clip-meta{margin-top:auto}
.clip-card h2 a{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
/* Hero: long clip names get a smaller size and stop at three lines */
.hero-title{max-width:22ch;text-wrap:balance}
.hero-title.is-long{font-size:clamp(26px,3.3vw,46px);max-width:26ch}
.hero-title.is-very-long{font-size:clamp(22px,2.5vw,36px);max-width:34ch;line-height:1.1}
.hero-title a{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}
@media(max-width:600px){.hero-title.is-long{font-size:24px}.hero-title.is-very-long{font-size:21px}}
/* Achievements: medals */
.medal{display:block;overflow:visible;filter:drop-shadow(0 4px 6px #000a);transition:transform .35s cubic-bezier(.2,.8,.2,1.2),filter .35s}
.medal-ribbon{stroke:none}
.medal-body{stroke:#0006;stroke-width:1}
.medal-rim{fill:none;stroke:#ffffff8c;stroke-width:1.4}
.medal-shine{fill:#fff;opacity:.28;transition:opacity .35s}
.medal-icon{fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.medal-bronze .medal-body{fill:url(#amv-bronze)}.medal-bronze .medal-ribbon{fill:#7d2f22}.medal-bronze .medal-icon{stroke:#3d1f08;color:#3d1f08}
.medal-silver .medal-body{fill:url(#amv-silver)}.medal-silver .medal-ribbon{fill:#2c4a80}.medal-silver .medal-icon{stroke:#25303f;color:#25303f}
.medal-gold .medal-body{fill:url(#amv-gold)}.medal-gold .medal-ribbon{fill:#a1242c}.medal-gold .medal-icon{stroke:#4a2c03;color:#4a2c03}
.medal-gold{filter:drop-shadow(0 4px 6px #000a) drop-shadow(0 0 10px #efb63f59)}
.medal-legend .medal-body{fill:url(#amv-legend)}.medal-legend .medal-ribbon{fill:#3a2690}.medal-legend .medal-icon{stroke:#fff;color:#fff}
.medal-legend{filter:drop-shadow(0 4px 6px #000a) drop-shadow(0 0 12px #a77bff80);animation:legend-glow 4s ease-in-out infinite}
@keyframes legend-glow{50%{filter:drop-shadow(0 4px 6px #000a) drop-shadow(0 0 16px #4fd1ff80)}}
.medal-locked .medal-body{fill:#1a1916;stroke:#3a362f;stroke-width:1.5;stroke-dasharray:4 3}
.medal-locked .medal-ribbon{fill:#242220}.medal-locked .medal-rim{stroke:#ffffff14}.medal-locked .medal-shine{opacity:0}.medal-locked .medal-icon{stroke:#6f6a60;color:#6f6a60}
.medal-locked{filter:none}
.medal-card:hover .medal:not(.medal-locked),.author-medals li:hover .medal{transform:translateY(-4px) rotate(-4deg) scale(1.04)}
.medal-card:hover .medal-shine,.author-medals li:hover .medal-shine{opacity:.6}
/* Achievements section */
.achievements{margin:0 0 34px}
.achievements-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.achievements-head h2{margin:0}
.achievements-count{color:var(--gold);font-weight:800;font-size:13px;font-variant-numeric:tabular-nums}
.achievements-sub{margin:22px 0 0;font-size:15px;color:var(--soft)}
.medal-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:12px;margin:14px 0 0;padding:0;list-style:none}
.medal-card{display:grid;justify-items:center;align-content:start;gap:6px;padding:16px 10px 14px;border:1px solid var(--line);border-radius:18px;background:#14141699;text-align:center;transition:border-color .25s,background .25s}
.medal-card.is-silver{border-color:#c3cbd630}
.medal-card.is-gold{border-color:#efb63f47;background:radial-gradient(120% 80% at 50% 0,#efb63f14,#14141699 70%)}
.medal-card.is-legend{border-color:#a77bff59;background:radial-gradient(120% 80% at 50% 0,#a77bff1f,#4fd1ff0d 45%,#14141699 75%)}
.medal-card:hover{border-color:var(--gold-line)}
.medal-name{margin-top:4px;font-weight:800;font-size:14px;line-height:1.2}
.medal-card.is-legend .medal-name{background:linear-gradient(90deg,#f6d6ff,#4fd1ff);-webkit-background-clip:text;background-clip:text;color:transparent}
.medal-what{color:var(--muted);font-size:12px;line-height:1.35}
.medal-card.is-locked .medal-name{color:var(--soft)}
.medal-progress{display:block;width:78%;height:5px;margin-top:4px;border-radius:99px;background:var(--panel-raised);overflow:hidden}
.medal-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#c47a3d,var(--gold))}
.medal-count{color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}
/* Small medals in the member header */
.author-medals{display:flex;flex-wrap:wrap;align-items:center;gap:2px;margin:12px 0 0;padding:0;list-style:none}
.author-medals li{cursor:default}
.author-medals-more a{display:inline-grid;place-items:center;min-width:32px;height:32px;margin-left:4px;padding:0 8px;border:1px solid var(--gold-line);border-radius:999px;color:var(--gold-bright);font-size:12px;font-weight:800;text-decoration:none}
@media(max-width:600px){.author-medals{justify-content:center}.medal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Moments from comments: a strip under the player */
.moments{display:flex;align-items:center;gap:12px;margin:10px 4px 0}
.moments-label{flex:none;color:var(--muted);font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.moments-track{position:relative;flex:1;height:22px}
.moments-track::before{content:"";position:absolute;left:0;right:0;top:50%;height:3px;margin-top:-1.5px;border-radius:3px;background:var(--line-strong)}
.moment{position:absolute;top:50%;width:14px;height:14px;margin:-7px 0 0 -7px;padding:0;border:2px solid var(--bg);border-radius:50%;background:var(--gold);box-shadow:0 0 8px #efb63f80;cursor:pointer;transition:transform .2s}
.moment:hover,.moment:focus-visible{transform:scale(1.35);z-index:2}
.moment-tip{position:absolute;bottom:22px;left:50%;display:grid;gap:2px;width:max-content;max-width:260px;padding:8px 11px;border:1px solid var(--line-strong);border-radius:12px;background:#141416f2;color:var(--soft);font-size:12px;line-height:1.35;text-align:left;transform:translateX(-50%);opacity:0;pointer-events:none;transition:opacity .2s;box-shadow:0 10px 30px #000a}
.moment-tip b{color:var(--gold-bright);font-variant-numeric:tabular-nums}
.moment-tip span:first-of-type{color:var(--text);font-weight:700}
.moment:hover .moment-tip,.moment:focus-visible .moment-tip{opacity:1}
/* Activity feed */
.activity{margin:30px 0 0}
.activity h2{display:flex;align-items:center;gap:10px;margin:0 0 12px;font-size:16px}
.activity-dot{width:8px;height:8px;border-radius:50%;background:#4fd67a;box-shadow:0 0 0 0 #4fd67a99;animation:live-dot 2s infinite}
@keyframes live-dot{70%{box-shadow:0 0 0 8px #4fd67a00}100%{box-shadow:0 0 0 0 #4fd67a00}}
.activity-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:8px;margin:0;padding:0;list-style:none}
.activity-item{display:flex;gap:10px;align-items:center;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:#14141699;color:var(--soft);text-decoration:none;transition:border-color .2s}
.activity-item:hover{border-color:var(--gold-line)}
.activity-pic{flex:none;width:32px;height:32px;border-radius:50%;overflow:hidden;background:var(--panel-raised)}
.activity-pic img{width:100%;height:100%;object-fit:cover}
.activity-body{display:grid;min-width:0}
.activity-line{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.activity-line b{color:var(--text)}
.activity-what{color:var(--gold-bright);font-weight:600}
.activity-ago{color:var(--muted);font-size:11px}
/* Contest banner */
.contest-banner{display:flex;align-items:center;gap:14px;margin:26px 0 0;padding:12px 18px;border:1px solid var(--gold-line);border-radius:18px;background:linear-gradient(90deg,#efb63f1f,#14141699 60%);color:var(--text);text-decoration:none;transition:box-shadow .25s}
.contest-banner:hover{box-shadow:0 0 22px #efb63f33}
.contest-banner-text{flex:1;display:grid;min-width:0}
.contest-banner-text b{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.contest-banner-text span{color:var(--muted);font-size:13px}
.contest-banner-go{flex:none;color:var(--gold-bright);font-weight:800}
/* Top creators */
.top-how{margin:-14px 0 18px}
.top-last{margin:0 0 18px;color:var(--soft)}.top-last a{color:var(--gold-bright);font-weight:800;text-decoration:none}
.podium{display:grid;grid-template-columns:1fr 1.15fr 1fr;align-items:end;gap:14px;margin:0 0 22px;padding:0;list-style:none}
.podium-place:nth-child(1){order:2}.podium-place:nth-child(2){order:1}.podium-place:nth-child(3){order:3}
.podium-place a{position:relative;display:grid;justify-items:center;gap:6px;padding:22px 14px 18px;border:1px solid var(--line);border-radius:22px;background:#14141699;color:var(--text);text-align:center;text-decoration:none;transition:transform .25s,box-shadow .25s}
.podium-place a:hover{transform:translateY(-3px)}
.podium-place.is-gold a{padding-top:30px;border-color:#efb63f66;background:radial-gradient(120% 90% at 50% 0,#efb63f26,#14141699 70%);box-shadow:0 0 30px #efb63f26}
.podium-place.is-silver a{border-color:#c3cbd640}
.podium-place.is-bronze a{border-color:#c47a3d4d}
.podium-rank{position:absolute;top:-14px;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;font-weight:900;color:#17130b}
.is-gold .podium-rank{background:linear-gradient(135deg,#fff1b8,#efb63f)}.is-silver .podium-rank{background:linear-gradient(135deg,#fff,#aeb7c4)}.is-bronze .podium-rank{background:linear-gradient(135deg,#f3c08e,#c47a3d)}
.leader-avatar{border-radius:50%;object-fit:cover;border:2px solid var(--line-strong)}
.is-gold .leader-avatar{border-color:var(--gold)}
.leader-initial{display:grid;place-items:center;background:var(--gold-tint);color:var(--gold-bright);font-family:var(--display);font-size:22px}
.podium-name{font-family:var(--display);font-size:18px;line-height:1.15;overflow-wrap:anywhere}
.podium-score{color:var(--gold-bright);font-weight:800}
.podium-stats{color:var(--muted);font-size:12px}
.leader-list{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.leader-list a{display:grid;grid-template-columns:32px 40px minmax(0,1fr) auto auto auto;align-items:center;gap:12px;padding:10px 14px;border:1px solid var(--line);border-radius:16px;background:#14141699;color:var(--text);text-decoration:none}
.leader-list a:hover{border-color:var(--gold-line)}
.leader-rank{color:var(--muted);font-weight:800;text-align:center}
.leader-name{display:grid;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.leader-name small,.leader-stat small,.leader-score small{color:var(--muted);font-size:11px;font-weight:600}
.leader-stat,.leader-score{display:grid;justify-items:end;font-variant-numeric:tabular-nums;min-width:62px}
.leader-score{color:var(--gold-bright);font-weight:800}
@media(max-width:700px){.podium{grid-template-columns:1fr;}.podium-place:nth-child(n){order:0}.leader-list a{grid-template-columns:26px 36px minmax(0,1fr) auto}.leader-stat{display:none}}
/* Contests */
.contest-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px;margin:18px 0 26px;padding:0;list-style:none}
.contest-tile{display:grid;gap:6px;padding:18px;border:1px solid var(--line);border-radius:18px;background:#14141699;color:var(--text);text-decoration:none;transition:border-color .2s}
.contest-tile:hover{border-color:var(--gold-line)}
.contest-tile.is-open,.contest-tile.is-voting{border-color:#efb63f59;background:radial-gradient(120% 90% at 0 0,#efb63f1a,#14141699 60%)}
.contest-phase{justify-self:start;padding:3px 10px;border-radius:999px;background:var(--panel-raised);color:var(--soft);font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.is-open .contest-phase{background:#4fd67a26;color:#7be59b}.is-voting .contest-phase{background:#efb63f26;color:var(--gold-bright)}
.contest-title{font-family:var(--display);font-size:20px;line-height:1.2}
.contest-when{color:var(--muted);font-size:13px}
.contest-winner{color:var(--gold-bright);font-size:13px;font-weight:700}
.contest-hero{margin:28px 0 20px}
.contest-hero .eyebrow a{color:var(--gold);text-decoration:none;font-size:12px;letter-spacing:.14em;text-transform:uppercase}
.contest-hero h1{margin:6px 0 10px;font-size:clamp(28px,4.4vw,44px)}
.contest-status{display:flex;flex-wrap:wrap;align-items:center;gap:10px;color:var(--muted);font-size:14px}
.contest-about{max-width:70ch;color:var(--soft)}
.contest-entry{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:0 0 18px;padding:16px;border:1px solid var(--line);border-radius:18px;background:#14141699}
.contest-entry .field{flex:1;min-width:220px;margin:0}
.contest-note{margin:0 0 16px}
.contest-entry-card{position:relative;display:grid;gap:8px}
.contest-entry-card.is-winner .clip-card{border-color:var(--gold);box-shadow:0 0 26px #efb63f40}
.contest-place{color:var(--muted);font-size:13px}.contest-place b{color:var(--gold-bright)}
.contest-vote{justify-self:stretch}
.contest-vote[aria-pressed=true]{background:#4fd67a;border-color:#4fd67a;color:#0b1a10}
.contest-create{margin-top:10px;max-width:640px}
/* Header with Top and Contests in the menu: the sign-in pill never wraps; the search pill gives way first */
.login-pill{white-space:nowrap}
@media(max-width:1180px){.search-pill{width:200px}}
@media(max-width:980px){.search-pill{width:44px;padding:0;justify-content:center}.search-pill input,.search-pill .screen-reader-text+input{width:0;padding:0;opacity:0}.search-pill:focus-within{width:220px;padding:0 14px;justify-content:flex-start}.search-pill:focus-within input{width:auto;opacity:1}}
/* Interface language: RU/EN round button and the first-visit offer */
.lang-button{font:700 12px/1 Manrope,system-ui,sans-serif;letter-spacing:.04em;color:var(--muted,#a7a7ad)}
.lang-button:hover,.lang-button:focus-visible{color:#fff}
@media(max-width:1279px){.lang-button{display:none!important}}
@media(min-width:981px) and (max-width:1180px){.search-pill{width:160px}}
@media(min-width:981px) and (max-width:1100px){html[lang="ru"] .search-pill{width:130px}}
/* Tablet widths: ratings, random and categories move into the menu, whose button shows up here */
@media(min-width:768px) and (max-width:1023px){.header-actions .random-button,.header-actions [data-dialog="stats-dialog"],.header-actions [data-dialog="categories-dialog"]{display:none}.mobile-menu{display:inline-flex}}
.footer-lang{display:inline-flex;align-items:center;gap:6px;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer}
.footer-lang svg{width:16px;height:16px}
.footer-lang:hover,.footer-lang:focus-visible{color:#fff}
.footer-nav{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.lang-offer{position:fixed;z-index:60;left:50%;bottom:max(16px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(420px,calc(100% - 32px));padding:14px 16px;border-radius:16px;background:#141416f2;box-shadow:inset 0 0 0 1px #ffffff1a,0 12px 40px #000a;text-align:center;animation:lang-offer-in .35s ease}
@keyframes lang-offer-in{from{opacity:0;transform:translate(-50%,10px)}}
.lang-offer p{margin:0 0 12px;font-weight:600}
.lang-offer div{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
.lang-offer .button{min-height:38px;padding:0 14px;font-size:14px}
html[lang="ru"] .sort-prefix{display:none}