:root {
  --bg: #0b0b0d;
  --surface: #141416;
  --surface-2: #1b1b1e;
  --surface-3: #232327;
  --border: #29292e;
  --text: #f6f6f7;
  --muted: #96969e;
  --muted-2: #686870;
  --accent: #ff3b30;
  --accent-dark: #d82820;
  --warm: #ffb15c;
  --green: #59d49b;
  --sidebar: 214px;
  --topbar: 72px;
  --radius: 16px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --display: "Manrope", var(--font);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; -webkit-font-smoothing: antialiased; }
body.sidebar-open { overflow: hidden; }
body::selection { background: var(--accent); color: white; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img, video { display: block; max-width: 100%; }
svg { display: block; }
.shell { width: min(100%, 1600px); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; clip: rect(0,0,0,0); overflow: hidden; white-space: nowrap; border: 0; }

.topbar { position: sticky; z-index: 60; top: 0; height: var(--topbar); background: rgba(11,11,13,.88); border-bottom: 1px solid rgba(255,255,255,.07); backdrop-filter: blur(18px); }
.topbar__inner { height: 100%; display: grid; grid-template-columns: var(--sidebar) minmax(260px, 590px) 1fr; align-items: center; gap: 38px; padding: 0 28px; }
.brand { display: inline-flex; align-items: center; width: max-content; gap: 10px; font-family: var(--display); font-size: 20px; font-weight: 800; letter-spacing: 2.7px; }
.brand__logo { width: 60px; height: 60px; aspect-ratio: 1 / 1; object-fit: contain; }
.brand__mark { display: grid; place-items: center; width: 33px; height: 26px; background: var(--accent); border-radius: 8px; box-shadow: 0 5px 22px rgba(255,59,48,.24); transform: skewX(-6deg); }
.brand__mark svg { width: 23px; height: 23px; fill: white; transform: skewX(6deg); }
.menu-toggle { display: none !important; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; color: var(--text); background: transparent; border: 0; border-radius: 50%; cursor: pointer; transition: background .2s, transform .2s; }
.icon-btn:hover { background: var(--surface-3); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.searchbar { position: relative; height: 42px; }
.searchbar input { width: 100%; height: 100%; padding: 0 56px 0 19px; color: var(--text); background: #17171a; border: 1px solid #2b2b30; border-radius: 11px; outline: none; transition: border .2s, box-shadow .2s, background .2s; }
.searchbar input::placeholder { color: #777780; }
.searchbar input:focus { background: #1a1a1e; border-color: #5d5d66; box-shadow: 0 0 0 3px rgba(255,255,255,.035); }
.searchbar button { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 50px; height: 100%; color: var(--muted); background: transparent; border: 0; cursor: pointer; }
.searchbar button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.search-suggest { display: none; }
.topbar__actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.upload-cta, .login-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 17px; font-weight: 700; border: 1px solid var(--border); border-radius: 10px; transition: background .2s, border .2s, transform .2s; }
.upload-cta { color: white; background: var(--surface-2); }
.upload-cta:hover, .login-link:hover { background: var(--surface-3); border-color: #3a3a40; transform: translateY(-1px); }
.upload-cta svg, .login-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.login-link { color: var(--text); border-color: transparent; }
.notification-btn { position: relative; }
.notification-btn i { position: absolute; top: 9px; right: 9px; width: 6px; height: 6px; background: var(--accent); border: 1px solid var(--bg); border-radius: 50%; }
.avatar { position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; overflow: hidden; background: linear-gradient(135deg, #392733, #272a3b); border-radius: 50%; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--nav { width: 36px; height: 36px; margin-left: 2px; border: 2px solid #333338; }
.avatar--sm { width: 36px; height: 36px; }
.avatar--xl { width: 112px; height: 112px; border: 4px solid rgba(255,255,255,.08); box-shadow: 0 20px 50px rgba(0,0,0,.35); }

.app-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: calc(100vh - var(--topbar)); padding: 0 28px; }
.sidebar { position: sticky; top: var(--topbar); align-self: start; height: calc(100vh - var(--topbar)); padding: 23px 22px 26px 0; overflow-y: auto; scrollbar-width: none; border-right: 1px solid rgba(255,255,255,.06); }
.sidebar::-webkit-scrollbar { display: none; }
.side-nav, .sidebar__section { display: flex; flex-direction: column; gap: 4px; }
.side-nav a, .sidebar__section a { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 14px; color: #aaaab1; font-weight: 600; border-radius: 11px; transition: color .2s, background .2s; }
.side-nav a:hover, .sidebar__section a:hover { color: white; background: #161619; }
.side-nav a.is-active { color: white; background: #1b1b1e; }
.side-nav a.is-active::after { width: 5px; height: 5px; margin-left: auto; content: ""; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px var(--accent); }
.side-nav svg, .sidebar__section svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sidebar__divider { height: 1px; margin: 20px 10px; background: var(--border); }
.sidebar__login { padding: 2px 13px; }
.sidebar__login p { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.sidebar__login a { display: inline-flex; align-items: center; height: 36px; padding: 0 15px; color: white; font-size: 13px; font-weight: 700; background: var(--accent); border-radius: 8px; }
.sidebar__section > span { padding: 0 14px 10px; color: #5f5f67; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.sidebar__footer { padding: 24px 13px 0; color: #5e5e66; font-size: 11px; line-height: 1.9; }
.sidebar__footer p { margin: 0 0 3px; }
.sidebar__footer a { margin-right: 8px; }
.sidebar__footer a:hover { color: var(--muted); }
.sidebar-backdrop { display: none; }
.main-content { min-width: 0; padding: 0 0 80px 34px; }
.mobile-nav { display: none; }

.home-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; max-width: 1250px; padding: 66px 0 39px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; color: #8c8c94; font-size: 11px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; }
.eyebrow span { width: 19px; height: 1px; background: var(--accent); }
.home-heading h1, .search-hero h1, .upload-page__heading h1 { margin: 0; font-family: var(--display); font-size: clamp(38px, 4.2vw, 64px); line-height: 1.05; letter-spacing: -3.6px; }
.home-heading h1 em, .search-hero h1 em, .upload-page__heading h1 em, .auth-visual h1 em { color: var(--accent); font-style: normal; }
.home-heading__copy { width: 290px; margin: 0 0 5px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.chip-row { display: flex; gap: 9px; padding: 0 0 29px; overflow-x: auto; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 9px 16px; color: #aaaab1; font-size: 13px; font-weight: 600; background: #17171a; border: 1px solid #232327; border-radius: 99px; transition: color .2s, background .2s, border .2s; }
.chip:hover { color: white; border-color: #3b3b42; }
.chip.is-active { color: #131315; background: #f5f5f6; border-color: #f5f5f6; }
.demo-notice { display: flex; align-items: center; gap: 13px; margin: 0 0 30px; padding: 14px 17px; color: #d6d6d9; background: linear-gradient(90deg, rgba(255,177,92,.09), rgba(255,177,92,.025)); border: 1px solid rgba(255,177,92,.18); border-radius: 12px; }
.demo-notice__dot { flex: 0 0 auto; width: 8px; height: 8px; background: var(--warm); border-radius: 50%; box-shadow: 0 0 12px rgba(255,177,92,.5); }
.demo-notice div { min-width: 0; }
.demo-notice strong { font-size: 13px; }
.demo-notice p { display: inline; margin-left: 7px; color: #92929a; font-size: 12px; }
.demo-notice code { color: #bbb; }
.demo-notice a { margin-left: auto; color: var(--warm); font-size: 12px; font-weight: 700; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 21px; }
.section-heading h2 { margin: 0; font-family: var(--display); font-size: 19px; letter-spacing: -.5px; }
.section-heading > span { color: var(--muted-2); font-size: 12px; }
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 33px 20px; }
.video-card { min-width: 0; }
.video-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2); border-radius: 13px; isolation: isolate; }
.video-card__media::after { position: absolute; inset: 0; z-index: 1; content: ""; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55)); opacity: .6; transition: opacity .25s; }
.video-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .35s; }
.video-card:hover .video-card__media img { transform: scale(1.035); filter: brightness(.82); }
.video-card:hover .video-card__media::after { opacity: 1; }
.video-card__duration { position: absolute; z-index: 2; right: 8px; bottom: 8px; padding: 3px 6px; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .3px; background: rgba(8,8,9,.82); border-radius: 5px; backdrop-filter: blur(5px); }
.video-card__visibility { position: absolute; z-index: 2; top: 8px; left: 8px; padding: 4px 7px; color: white; font-size: 9px; font-weight: 700; background: rgba(8,8,9,.82); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; backdrop-filter: blur(5px); }
.video-card__play { position: absolute; z-index: 3; top: 50%; left: 50%; display: grid; place-items: center; width: 46px; height: 46px; color: white; background: rgba(255,59,48,.95); border-radius: 50%; opacity: 0; transform: translate(-50%,-44%) scale(.85); transition: opacity .25s, transform .25s; box-shadow: 0 10px 25px rgba(0,0,0,.35); }
.video-card__play svg { width: 25px; height: 25px; fill: currentColor; }
.video-card:hover .video-card__play { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.video-card__body { display: grid; grid-template-columns: 36px minmax(0,1fr) 22px; gap: 11px; padding-top: 13px; }
.video-card__info { min-width: 0; }
.video-card__title { display: -webkit-box; overflow: hidden; color: #eeeef0; font-family: var(--display); font-size: 14px; font-weight: 700; line-height: 1.35; letter-spacing: -.25px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.video-card__title:hover { color: white; }
.video-card__creator { display: flex; align-items: center; gap: 5px; width: max-content; max-width: 100%; margin-top: 7px; overflow: hidden; color: #8e8e96; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.verified { display: inline-grid; place-items: center; width: 13px; height: 13px; color: #111; font-size: 8px; font-style: normal; font-weight: 900; background: #aaaab1; border-radius: 50%; }
.video-card__info p { margin: 3px 0 0; color: #686870; font-size: 11px; }
.video-card__info p span { margin: 0 3px; }
.icon-btn--small { width: 22px; height: 28px; color: #777780; font-size: 20px; }
.feed-loader { display: flex; align-items: center; justify-content: center; gap: 5px; height: 100px; color: var(--muted-2); }
.feed-loader span { width: 5px; height: 5px; background: var(--muted-2); border-radius: 50%; animation: pulse 1.1s ease-in-out infinite; }
.feed-loader span:nth-child(2) { animation-delay: .15s; }.feed-loader span:nth-child(3) { animation-delay: .3s; }
.feed-loader small { margin-left: 7px; }
@keyframes pulse { 0%,100% { opacity:.25; transform:translateY(0) } 50% { opacity:1; transform:translateY(-3px) } }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 430px; padding: 60px 20px; text-align: center; }
.empty-state__icon { display: grid; place-items: center; width: 70px; height: 70px; margin-bottom: 20px; color: var(--accent); font-family: var(--display); font-weight: 800; background: #17171a; border: 1px solid var(--border); border-radius: 23px; }
.empty-state h1, .empty-state h2 { margin: 0 0 9px; font-family: var(--display); }
.empty-state p { margin: 0 0 25px; color: var(--muted); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 42px; padding: 0 19px; font-weight: 700; border: 0; border-radius: 10px; cursor: pointer; transition: background .2s, color .2s, border .2s, transform .2s; }
.button:hover { transform: translateY(-1px); }
.button--primary { color: #fff; background: var(--accent); box-shadow: 0 9px 30px rgba(255,59,48,.15); }
.button--primary:hover { background: #ff4a40; }
.button--ghost { color: #d8d8dc; background: transparent; border: 1px solid #343439; }
.button--ghost:hover { background: #1b1b1e; }
.button--danger { color: #ff8e88; background: rgba(255,59,48,.08); border: 1px solid rgba(255,59,48,.28); }
.button--danger:hover { color: white; background: var(--accent); }
.button--light { color: #111; background: #f3f3f4; }
.button--light:hover { background: white; }
.button--large { height: 50px; padding: 0 24px; border-radius: 12px; }
.button svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; }

.search-hero { position: relative; padding: 68px 0 48px; overflow: hidden; }
.search-hero::after { position: absolute; z-index: -1; top: -120px; left: 52%; width: 400px; height: 260px; content: ""; background: rgba(255,59,48,.1); filter: blur(100px); border-radius: 50%; }
.search-hero h1 { max-width: 720px; }
.search-hero__form { position: relative; display: flex; align-items: center; width: min(720px,100%); height: 58px; margin-top: 32px; padding-left: 20px; background: #17171a; border: 1px solid #303036; border-radius: 14px; }
.search-hero__form:focus-within { border-color: #55555e; box-shadow: 0 0 0 4px rgba(255,255,255,.025); }
.search-hero__form svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 1.8; }
.search-hero__form input { min-width: 0; flex: 1; height: 100%; padding: 0 15px; color: white; background: transparent; border: 0; outline: none; }
.search-hero__form button { height: 40px; margin-right: 8px; padding: 0 20px; color: white; font-weight: 700; background: var(--accent); border: 0; border-radius: 9px; cursor: pointer; }

.profile-hero { position: relative; min-height: 318px; margin-top: 34px; padding: 63px 50px 36px; overflow: hidden; background: linear-gradient(125deg,#19191d 0%,#111113 70%); border: 1px solid #25252a; border-radius: 20px; }
.profile-hero::after { position: absolute; top: -110px; right: -70px; width: 410px; height: 410px; content: ""; opacity: .16; background: repeating-radial-gradient(circle at center, transparent 0 16px, #fff 17px 18px); border-radius: 50%; }
.profile-hero__glow { position: absolute; top: -170px; left: 20%; width: 500px; height: 300px; background: rgba(255,59,48,.15); filter: blur(110px); }
.profile-hero__identity { position: relative; z-index: 1; display: flex; align-items: center; gap: 28px; }
.profile-hero__handle { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.profile-hero h1 { display: flex; align-items: center; gap: 10px; margin: 5px 0 8px; font-family: var(--display); font-size: 34px; letter-spacing: -1.5px; }
.profile-hero h1 .verified { width: 18px; height: 18px; font-size: 11px; background: var(--accent); color: white; }
.profile-hero__identity p { max-width: 520px; margin: 0; color: var(--muted); line-height: 1.55; }
.profile-hero__stats { position: relative; z-index: 1; display: flex; gap: 32px; margin: 31px 0 0 140px; }
.profile-hero__stats div { display: flex; flex-direction: column; }
.profile-hero__stats strong { font-family: var(--display); font-size: 19px; }
.profile-hero__stats span { color: var(--muted-2); font-size: 11px; }
.profile-hero__actions { position: absolute; z-index: 2; right: 43px; bottom: 38px; display: flex; gap: 9px; }
.profile-tabs { display: flex; gap: 34px; margin: 24px 0 31px; border-bottom: 1px solid var(--border); }
.profile-tabs button { position: relative; padding: 0 4px 15px; color: var(--muted); font-weight: 600; background: transparent; border: 0; }
.profile-tabs button.is-active { color: white; }
.profile-tabs button.is-active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; content: ""; background: var(--accent); }
.profile-settings { scroll-margin-top: calc(var(--topbar) + 20px); margin-top: 22px; padding: 28px; background: #151518; border: 1px solid var(--border); border-radius: 17px; animation: profile-settings-in .22s ease both; }
.profile-settings[hidden] { display: none; }
@keyframes profile-settings-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.profile-settings__heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 23px; border-bottom: 1px solid var(--border); }
.profile-settings__heading > div:first-child > span { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.profile-settings__heading h2 { margin: 5px 0 4px; font-family: var(--display); font-size: 24px; letter-spacing: -.7px; }
.profile-settings__heading p { margin: 0; color: var(--muted); font-size: 12px; }
.profile-settings__avatar { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 11px; }
.profile-settings__avatar img { width: 25px; height: 25px; object-fit: cover; border: 1px solid #3b3b41; border-radius: 50%; }
.profile-settings__heading-actions { display: flex; align-items: center; gap: 16px; }
.profile-settings__close { padding: 8px 10px; color: #a5a5ad; font-size: 10px; background: #202024; border: 1px solid #333338; border-radius: 8px; cursor: pointer; }
.profile-settings__close:hover { color: white; border-color: #4c4c53; }
.profile-settings .form-errors { margin-top: 20px; margin-bottom: 0; }
.profile-settings__form { display: flex; flex-direction: column; gap: 21px; padding-top: 23px; }
.profile-settings__fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.profile-settings__bio { grid-column: 1/-1; }
.profile-settings__form > .button { align-self: flex-start; min-width: 170px; }
.profile-avatar-upload { position: relative; display: grid; grid-template-columns: 78px minmax(0,1fr) auto; gap: 16px; align-items: center; padding: 14px; overflow: hidden; background: #111113; border: 1px dashed #3b3b42; border-radius: 12px; cursor: pointer; transition: background .2s,border-color .2s; }
.profile-avatar-upload:hover, .profile-avatar-upload:focus-within { background: #17171a; border-color: #606067; }
.profile-avatar-upload > input { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.profile-avatar-upload__preview { width: 78px; height: 78px; overflow: hidden; background: #09090b; border: 2px solid #34343a; border-radius: 50%; }
.profile-avatar-upload__preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-upload__copy { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.profile-avatar-upload__copy strong { font-size: 13px; }
.profile-avatar-upload__copy small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.profile-avatar-upload__copy i { overflow: hidden; color: #777780; font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.profile-avatar-upload__action { padding: 9px 12px; color: #efeff1; font-size: 10px; font-weight: 700; background: #28282d; border: 1px solid #3b3b42; border-radius: 8px; }
.privacy-toggle { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 12px; align-items: start; padding: 15px 16px; background: #111113; border: 1px solid #2c2c31; border-radius: 11px; cursor: pointer; }
.privacy-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.privacy-toggle__switch { position: relative; width: 38px; height: 22px; margin-top: 1px; background: #34343a; border-radius: 99px; transition: background .2s; }
.privacy-toggle__switch::after { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; content: ""; background: #aaaab1; border-radius: 50%; transition: transform .2s,background .2s; }
.privacy-toggle input:checked + .privacy-toggle__switch { background: var(--accent); }
.privacy-toggle input:checked + .privacy-toggle__switch::after { background: white; transform: translateX(16px); }
.privacy-toggle input:focus-visible + .privacy-toggle__switch { outline: 3px solid rgba(255,59,48,.25); outline-offset: 2px; }
.privacy-toggle > span:last-child { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.privacy-toggle strong { font-size: 12px; }
.privacy-toggle small { color: var(--muted); font-size: 10px; line-height: 1.5; }

.watch-page .main-content { padding-top: 28px; }
.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 28px; max-width: 1400px; }
.player-shell { position: relative; overflow: hidden; aspect-ratio: 16/9; background: #020203; border-radius: 15px; box-shadow: 0 26px 65px rgba(0,0,0,.28); }
.player-shell video { width: 100%; height: 100%; object-fit: contain; }
.demo-player { position: relative; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; background: #111 var(--poster) center/cover; }
.demo-player::before { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.45)); }
.demo-player button { position: relative; z-index: 1; display: grid; place-items: center; width: 74px; height: 74px; color: #fff; background: var(--accent); border: 0; border-radius: 50%; cursor: pointer; box-shadow: 0 18px 40px rgba(0,0,0,.4); transition: transform .2s; }
.demo-player button:hover { transform: scale(1.06); }
.demo-player button svg { width: 37px; height: 37px; fill: currentColor; }
.demo-player__note { position: absolute; z-index: 1; bottom: 15px; left: 16px; padding: 7px 10px; color: #ddd; font-size: 10px; background: rgba(0,0,0,.65); border-radius: 7px; backdrop-filter: blur(8px); }
.watch-info { padding: 23px 2px 0; }
.watch-info__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 9px; }
.watch-info__tags a { color: var(--accent); font-size: 12px; font-weight: 600; }
.watch-info h1 { margin: 0; font-family: var(--display); font-size: clamp(21px,2.2vw,29px); line-height: 1.25; letter-spacing: -.8px; }
.watch-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 17px; }
.watch-meta-row > p { margin: 0; color: var(--muted); font-size: 12px; }
.watch-meta-row > p strong { color: #d4d4d8; }
.watch-meta-row > p span { margin: 0 4px; }
.watch-actions { display: flex; gap: 8px; }
.pill-action { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; color: #d2d2d6; background: #1a1a1d; border: 1px solid #29292e; border-radius: 99px; cursor: pointer; transition: background .2s,color .2s; }
.pill-action:hover, .pill-action.is-active { color: white; background: #26262a; }
.pill-action--danger { color: #ff8e88; border-color: rgba(255,59,48,.24); }
.pill-action--danger:hover { color: white; background: rgba(255,59,48,.15); }
.pill-action.is-active svg { color: var(--accent); fill: var(--accent); }
.pill-action svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.pill-action span { font-size: 12px; font-weight: 600; }
.watch-delete-form { display: flex; }
.creator-row { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.creator-row__profile { display: flex; align-items: center; gap: 12px; }
.creator-row__profile > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.creator-row__profile strong { display: flex; align-items: center; gap: 5px; font-size: 13px; }
.creator-row__profile small { color: var(--muted-2); font-size: 11px; }
.description-box { position: relative; max-height: 84px; margin-top: 16px; padding: 16px 18px; overflow: hidden; color: #b1b1b8; font-size: 13px; line-height: 1.65; background: #151518; border-radius: 12px; transition: max-height .3s; }
.description-box.is-expanded { max-height: 800px; }
.description-box p { margin: 0 80px 0 0; }
.description-box button { position: absolute; right: 15px; bottom: 14px; color: white; font-size: 11px; font-weight: 700; background: #151518; border: 0; cursor: pointer; }
.comments { margin-top: 34px; }
.comments__heading { display: flex; align-items: center; justify-content: space-between; }
.comments__heading h2 { margin: 0; font-family: var(--display); font-size: 18px; }
.comments__heading button { color: var(--muted); font-size: 12px; background: transparent; border: 0; }
.comment-form { display: flex; gap: 12px; margin: 22px 0 30px; }
.comment-form > div { flex: 1; }
.comment-form textarea { width: 100%; min-height: 39px; padding: 9px 0; resize: vertical; color: white; background: transparent; border: 0; border-bottom: 1px solid #34343a; outline: none; }
.comment-form textarea:focus { border-color: #777780; }
.comment-form__actions { display: none; justify-content: flex-end; gap: 8px; padding-top: 8px; }
.comment-form:focus-within .comment-form__actions { display: flex; }
.comment-form__actions button { padding: 7px 14px; font-size: 12px; font-weight: 700; background: #202024; border: 0; border-radius: 7px; cursor: pointer; }
.comment-form__actions button:last-child { background: var(--accent); }
.comment-login { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 29px; padding: 15px 17px; color: #bdbdc2; font-size: 13px; background: #151518; border: 1px solid var(--border); border-radius: 11px; }
.comment-login span { color: var(--accent); }
.comment-list { display: flex; flex-direction: column; gap: 26px; }
.comment { display: flex; gap: 12px; }
.comment > div { flex: 1; }
.comment p { margin: 4px 0 0; color: #c7c7cc; font-size: 13px; line-height: 1.55; }
.comment .comment__author { margin-top: 0; color: white; font-size: 12px; font-weight: 700; }
.comment__author span { margin-left: 6px; color: var(--muted-2); font-weight: 400; }
.comment__actions { display: flex; gap: 10px; margin-top: 7px; }
.comment__actions button { padding: 0; color: var(--muted-2); font-size: 11px; background: transparent; border: 0; }
.watch-next { min-width: 0; }
.watch-next .section-heading { margin-top: 2px; }
.watch-next .video-card { display: grid; grid-template-columns: 145px minmax(0,1fr); gap: 11px; margin-bottom: 14px; }
.watch-next .video-card__media { align-self: start; border-radius: 9px; }
.watch-next .video-card__body { grid-template-columns: minmax(0,1fr) 15px; gap: 4px; padding: 2px 0 0; }
.watch-next .avatar { display: none; }
.watch-next .video-card__title { font-size: 12px; }
.watch-next .video-card__creator { margin-top: 5px; font-size: 10px; }
.watch-next .video-card__info p { font-size: 9px; }
.watch-next .video-card__play { width: 32px; height: 32px; }
.watch-next .video-card__play svg { width: 19px; }

.upload-page { max-width: 1050px; margin: 0 auto; padding: 63px 0; }
.upload-page__heading { position: relative; margin-bottom: 38px; }
.upload-page__heading::after { position: absolute; top: -80px; right: 9%; width: 300px; height: 260px; content: ""; background: rgba(255,59,48,.09); filter: blur(85px); border-radius: 50%; }
.upload-page__heading > p:last-child { margin: 18px 0 0; color: var(--muted); }
.upload-form { display: grid; grid-template-columns: .85fr 1.15fr; gap: 34px; align-items: start; }
.dropzone { position: sticky; top: calc(var(--topbar) + 24px); display: grid; place-items: center; min-height: 440px; overflow: hidden; background: linear-gradient(145deg,#18181b,#111113); border: 1px dashed #414147; border-radius: 17px; transition: border .2s, background .2s; }
.dropzone.is-dragging { background: rgba(255,59,48,.06); border-color: var(--accent); }
.dropzone input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone__idle { display: flex; flex-direction: column; align-items: center; padding: 35px; text-align: center; pointer-events: none; }
.dropzone__icon { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 22px; color: var(--accent); background: rgba(255,59,48,.1); border: 1px solid rgba(255,59,48,.18); border-radius: 20px; }
.dropzone__icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.dropzone h2 { margin: 0 0 7px; font-family: var(--display); font-size: 20px; }
.dropzone p { margin: 0 0 22px; color: var(--muted); font-size: 12px; }
.dropzone__preview { position: absolute; inset: 0; z-index: 3; background: #0b0b0d; }
.dropzone__preview video { width: 100%; height: 78%; object-fit: contain; background: black; }
.dropzone__preview > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 15px; padding: 16px; }
.dropzone__preview strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.dropzone__preview span { color: var(--muted); font-size: 10px; }
.dropzone__preview button { grid-column: 2; grid-row: 1/3; color: var(--accent); font-size: 11px; font-weight: 700; background: transparent; border: 0; cursor: pointer; }
.upload-form__fields, .auth-form { display: flex; flex-direction: column; gap: 19px; }
.field { position: relative; display: flex; flex-direction: column; gap: 8px; }
.field > span:first-child { display: flex; justify-content: space-between; color: #d6d6da; font-size: 12px; font-weight: 600; }
.field > span b { color: var(--accent); }
.field > span em { color: var(--muted-2); font-size: 9px; font-style: normal; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.field > span a { color: var(--accent); font-size: 11px; }
.field > input, .field > textarea, .field > select, .password-field input { width: 100%; color: white; background: #17171a; border: 1px solid #303036; border-radius: 10px; outline: none; transition: border .2s, box-shadow .2s; }
.field > input, .field > select, .password-field input { height: 47px; padding: 0 14px; }
.field > textarea { min-height: 120px; padding: 13px 14px; resize: vertical; line-height: 1.55; }
.field > input:focus, .field > textarea:focus, .field > select:focus, .password-field:focus-within input { border-color: #65656e; box-shadow: 0 0 0 3px rgba(255,255,255,.03); }
.field small { color: #686870; font-size: 10px; }
.field > small:has(i) { position: absolute; right: 11px; top: 45px; }
.field small i { font-style: normal; }
.thumbnail-upload { position: relative; display: grid; grid-template-columns: 145px minmax(0,1fr); gap: 15px; align-items: center; min-height: 105px; padding: 11px; overflow: hidden; background: #17171a; border: 1px dashed #3a3a40; border-radius: 11px; cursor: pointer; transition: border .2s,background .2s; }
.thumbnail-upload:hover, .thumbnail-upload:focus-within { background: #1a1a1e; border-color: #65656e; }
.thumbnail-upload > input { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.thumbnail-upload__preview { display: grid; place-items: center; width: 100%; overflow: hidden; aspect-ratio: 16/9; color: #66666e; background: #0d0d0f; border-radius: 7px; }
.thumbnail-upload__preview img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail-upload__preview > span { display: grid; place-items: center; width: 100%; height: 100%; }
.thumbnail-upload__preview svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.thumbnail-upload__copy { display: flex; min-width: 0; flex-direction: column; gap: 5px; pointer-events: none; }
.thumbnail-upload__copy strong { font-size: 12px; }
.thumbnail-upload__copy small { color: var(--muted); line-height: 1.45; }
.thumbnail-upload__copy i { overflow: hidden; color: #777780; font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.affiliate-fields { display: grid; grid-template-columns: minmax(0,1fr) 135px; gap: 15px; min-width: 0; margin: 0; padding: 17px; background: linear-gradient(135deg,rgba(255,177,92,.055),rgba(255,177,92,.015)); border: 1px solid rgba(255,177,92,.17); border-radius: 11px; }
.affiliate-fields legend { padding: 0 6px; color: #e4e4e7; font-size: 12px; font-weight: 700; }
.affiliate-fields legend em { margin-left: 6px; color: var(--muted-2); font-size: 8px; font-style: normal; letter-spacing: .6px; text-transform: uppercase; }
.affiliate-fields > p { grid-column: 1/-1; margin: -3px 0 1px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.affiliate-fields--profile { grid-template-columns: 1fr; }
.affiliate-fields--profile > .field, .affiliate-fields--profile > .privacy-toggle { grid-column: 1/-1; }
.affiliate-migration-note { display: flex; flex-direction: column; gap: 4px; padding: 14px 15px; color: #d7a768; background: rgba(255,177,92,.055); border: 1px solid rgba(255,177,92,.16); border-radius: 10px; }
.affiliate-migration-note strong { font-size: 11px; }
.affiliate-migration-note span { color: var(--muted); font-size: 9px; line-height: 1.5; }
.affiliate-migration-note code { color: #d7d7db; }
.check-field { display: flex; align-items: flex-start; gap: 10px; color: #8e8e96; font-size: 11px; line-height: 1.5; cursor: pointer; }
.check-field input { width: 15px; height: 15px; margin: 1px 0 0; accent-color: var(--accent); }
.check-field a { color: #d5d5d9; }
.upload-form__fields .button { width: 100%; }
.upload-progress { position: relative; height: 5px; overflow: hidden; background: #232327; border-radius: 99px; }
.upload-progress i { display: block; width: 35%; height: 100%; background: var(--accent); border-radius: inherit; animation: progress 1.4s ease-in-out infinite; }
.upload-progress span { display: block; padding-top: 7px; color: var(--muted); font-size: 10px; }
@keyframes progress { 0% { transform:translateX(-110%) } 100% { transform:translateX(300%) } }
.form-errors { margin: 0 0 22px; padding: 13px 16px; color: #ffaaa5; font-size: 12px; background: rgba(255,59,48,.08); border: 1px solid rgba(255,59,48,.2); border-radius: 10px; }
.form-errors p { margin: 4px 0; }
.video-edit-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 34px; align-items: start; }
.video-edit-preview { position: sticky; top: calc(var(--topbar) + 24px); overflow: hidden; background: #151518; border: 1px solid var(--border); border-radius: 15px; }
.video-edit-preview > a:first-child { display: block; overflow: hidden; aspect-ratio: 16/9; background: #08080a; }
.video-edit-preview > a:first-child img { width: 100%; height: 100%; object-fit: cover; }
.video-edit-preview > div { display: flex; min-width: 0; flex-direction: column; gap: 5px; padding: 17px 18px 5px; }
.video-edit-preview > div span { color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; }
.video-edit-preview > div strong { overflow: hidden; font-family: var(--display); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.video-edit-preview > div small { color: var(--muted); font-size: 10px; }
.video-edit-preview > .button { width: calc(100% - 36px); margin: 14px 18px 18px; }
.video-edit-form { min-width: 0; padding: 24px; background: #151518; border: 1px solid var(--border); border-radius: 15px; }
.video-edit-form__actions { display: flex; gap: 10px; }
.video-edit-form__actions .button:first-child { flex: 1; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; padding: 21px 23px; background: rgba(255,59,48,.035); border: 1px solid rgba(255,59,48,.16); border-radius: 13px; }
.danger-zone strong { font-family: var(--display); font-size: 14px; }
.danger-zone p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.danger-zone form { flex: 0 0 auto; }

.toast { position: fixed; z-index: 100; top: 86px; right: 24px; display: flex; align-items: center; gap: 20px; max-width: 390px; padding: 13px 15px; color: #dcdce0; font-size: 12px; background: #202024; border: 1px solid #333338; border-radius: 11px; box-shadow: 0 18px 50px rgba(0,0,0,.38); animation: toastIn .35s ease; }
.toast::before { width: 7px; height: 7px; content: ""; background: var(--green); border-radius: 50%; }
.toast--error::before { background: var(--accent); }
.toast button { margin-left: auto; color: var(--muted); background: transparent; border: 0; cursor: pointer; }
@keyframes toastIn { from { opacity:0; transform:translateY(-10px) } }

.auth-page { background: #0d0d0f; }
.auth-page .topbar, .auth-page .sidebar, .auth-page .mobile-nav { display: none; }
.auth-page .app-shell { display: block; max-width: none; min-height: 100vh; padding: 0; }
.auth-page .main-content { padding: 0; }
.auth-layout { display: grid; grid-template-columns: minmax(430px,.92fr) minmax(520px,1.08fr); min-height: 100vh; }
.auth-visual { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 100vh; padding: 70px max(55px,8vw); overflow: hidden; background: #121214; border-right: 1px solid #232327; isolation: isolate; }
.auth-visual::before { position: absolute; z-index: -1; inset: 0; content: ""; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to bottom,transparent,black 25%,black 70%,transparent); }
.auth-visual__orb { position: absolute; z-index: -1; top: 13%; left: 7%; width: 480px; height: 480px; background: radial-gradient(circle at 50% 50%,rgba(255,59,48,.19),rgba(255,59,48,0) 68%); }
.auth-visual__label { color: #686870; font-size: 10px; font-weight: 800; letter-spacing: 3px; }
.auth-visual h1 { margin: 20px 0; font-family: var(--display); font-size: clamp(43px,4.5vw,72px); line-height: 1.04; letter-spacing: -4px; }
.auth-visual > p { max-width: 430px; margin: 0; color: #8c8c94; line-height: 1.7; }
.auth-visual__cards { display: flex; align-items: end; gap: 12px; height: 160px; margin-top: 45px; }
.auth-visual__cards span { display: block; width: 27%; aspect-ratio: .75; background: linear-gradient(145deg,#3f252d,#1c1b20); border: 1px solid #393138; border-radius: 13px; transform: rotate(-7deg) translateY(13px); }
.auth-visual__cards span:nth-child(2) { background: linear-gradient(145deg,#302c47,#1b1c25); transform: rotate(2deg) translateY(-5px); }
.auth-visual__cards span:nth-child(3) { background: linear-gradient(145deg,#473b2a,#201d19); transform: rotate(8deg) translateY(16px); }
.auth-quote { display: flex; flex-direction: column; gap: 8px; margin-top: 52px; color: #c6c6cb; }
.auth-quote span { color: var(--muted-2); font-size: 11px; }
.auth-card { display: flex; flex-direction: column; justify-content: center; width: min(510px,calc(100% - 70px)); margin: 0 auto; padding: 45px 0; }
.auth-card__brand { position: absolute; top: 34px; }
.auth-card__heading { margin-bottom: 27px; }
.auth-card__heading > span { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; }
.auth-card__heading h2 { margin: 8px 0 7px; font-family: var(--display); font-size: 30px; letter-spacing: -1.2px; }
.auth-card__heading p { margin: 0; color: var(--muted); font-size: 13px; }
.google-button { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; color: #242426; font-weight: 700; background: #f5f5f6; border-radius: 10px; transition: background .2s,transform .2s; }
.google-button:hover { background: #fff; transform: translateY(-1px); }
.google-button svg { width: 20px; height: 20px; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: #64646c; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.auth-divider::before, .auth-divider::after { flex: 1; height: 1px; content: ""; background: #29292e; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 48px; }
.password-field button { position: absolute; top: 0; right: 0; width: 45px; height: 100%; color: #717179; background: transparent; border: 0; cursor: pointer; }
.auth-form .button { width: 100%; }
.auth-card__switch { margin: 25px 0 0; color: #777780; font-size: 12px; text-align: center; }
.auth-card__switch a { color: white; font-weight: 700; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }

.reveal { animation: reveal .55s both; animation-timeline: view(); animation-range: entry 0% cover 18%; }
@keyframes reveal { from { opacity:.25; transform:translateY(18px) } to { opacity:1; transform:translateY(0) } }

@media (max-width: 1250px) {
  .video-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .watch-layout { grid-template-columns: minmax(0,1fr) 300px; }
  .watch-next .video-card { grid-template-columns: 125px minmax(0,1fr); }
}

@media (max-width: 980px) {
  :root { --sidebar: 76px; }
  .topbar__inner { gap: 23px; }
  .brand > span:last-child { display: none; }
  .sidebar { padding-right: 12px; }
  .side-nav a, .sidebar__section a { justify-content: center; padding: 0; }
  .side-nav a span, .sidebar__section a span, .side-nav a.is-active::after, .sidebar__login, .sidebar__section > span, .sidebar__footer { display: none; }
  .main-content { padding-left: 25px; }
  .watch-layout { grid-template-columns: 1fr; }
  .watch-next { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
  .watch-next .section-heading { grid-column: 1/-1; }
  .watch-next .video-card { grid-template-columns: 145px minmax(0,1fr); }
  .auth-layout { grid-template-columns: .8fr 1.2fr; }
  .auth-visual { padding: 60px 45px; }
  .auth-visual h1 { font-size: 45px; letter-spacing: -3px; }
  .auth-visual__cards { height: 120px; }
}

@media (max-width: 760px) {
  :root { --topbar: 62px; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .topbar__inner { display: flex; gap: 12px; padding: 0 15px; }
  .topbar .brand__logo { width: 44px; height: 44px; }
  .auth-card__brand .brand__logo { width: 56px; height: 56px; }
  .brand, .topbar__actions { flex: 0 0 auto; }
  .brand > span:last-child { display: inline; font-size: 17px; }
  .menu-toggle { display: grid !important; order: -1; width: 34px; }
  .searchbar { min-width: 0; flex: 1; height: 40px; }
  .searchbar input { padding-left: 14px; font-size: 16px; }
  .searchbar input::placeholder { color: transparent; }
  .upload-cta, .notification-btn, .login-link span { display: none; }
  .login-link { width: 36px; padding: 0; }
  .app-shell { display: block; padding: 0 max(15px, env(safe-area-inset-right)) 0 max(15px, env(safe-area-inset-left)); }
  .sidebar { position: fixed; z-index: 80; top: 0; left: 0; width: 260px; height: 100vh; padding: 85px 18px 25px; background: #101012; border-right: 1px solid var(--border); transform: translateX(-105%); transition: transform .28s ease; }
  .sidebar.is-open { transform: none; }
  .side-nav a, .sidebar__section a { justify-content: flex-start; padding: 0 14px; }
  .side-nav a span, .sidebar__section a span, .sidebar__section > span, .sidebar__footer { display: initial; }
  .sidebar__login { display: block; }
  .sidebar-backdrop { position: fixed; z-index: 70; inset: 0; display: block; visibility: hidden; background: rgba(0,0,0,.65); opacity: 0; transition: opacity .25s,visibility .25s; }
  .sidebar-backdrop.is-open { visibility: visible; opacity: 1; }
  .main-content { padding: 0 0 40px; }
  .mobile-nav { position: fixed; z-index: 55; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); height: calc(66px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(15,15,17,.95); border-top: 1px solid #29292e; backdrop-filter: blur(18px); }
  .mobile-nav a { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #74747c; font-size: 9px; }
  .mobile-nav a.is-active { color: white; }
  .mobile-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-nav__upload svg { width: 36px; height: 36px; padding: 8px; color: white; background: var(--accent); border-radius: 12px; transform: translateY(-5px); }
  .mobile-nav__upload span { transform: translateY(-5px); }
  .home-heading { display: block; padding: 40px 0 28px; }
  .home-heading h1, .search-hero h1, .upload-page__heading h1 { font-size: 40px; letter-spacing: -2.7px; }
  .home-heading__copy { width: auto; max-width: 390px; margin-top: 20px; }
  .chip-row { margin-right: -15px; padding-bottom: 24px; }
  .demo-notice p { display: block; margin: 3px 0 0; }
  .demo-notice a { display: none; }
  .section-heading { align-items: flex-end; }
  .section-heading > span { flex: 0 1 auto; text-align: right; }
  .video-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 12px; }
  .video-card__body { grid-template-columns: 31px minmax(0,1fr) 16px; gap: 8px; }
  .video-card .avatar { width: 31px; height: 31px; }
  .video-card__title { font-size: 12px; }
  .search-hero { padding: 44px 0 36px; }
  .profile-hero { padding: 38px 24px; }
  .profile-hero__identity { flex-direction: column; align-items: flex-start; gap: 18px; }
  .avatar--xl { width: 90px; height: 90px; }
  .profile-hero__identity > div:last-child { min-width: 0; }
  .profile-hero h1 { flex-wrap: wrap; overflow-wrap: anywhere; }
  .profile-hero__stats { width: 100%; margin-left: 0; }
  .profile-hero__actions { position: relative; right: auto; bottom: auto; flex-wrap: wrap; margin-top: 26px; }
  .profile-settings { padding: 23px; }
  .profile-settings__fields { grid-template-columns: 1fr; }
  .profile-settings__bio { grid-column: auto; }
  .watch-page .main-content { padding-top: 14px; }
  .watch-meta-row { align-items: flex-start; flex-direction: column; }
  .watch-actions { width: 100%; flex-wrap: wrap; }
  .creator-row { gap: 16px; }
  .creator-row__profile { min-width: 0; }
  .creator-row__profile > span:last-child { min-width: 0; }
  .creator-row__profile strong, .creator-row__profile small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .comment > div { min-width: 0; }
  .comment p, .description-box p { overflow-wrap: anywhere; }
  .watch-next { grid-template-columns: 1fr; }
  .watch-next .video-card { grid-template-columns: 145px minmax(0,1fr); }
  .upload-page { padding: 43px 0; }
  .upload-form { grid-template-columns: 1fr; }
  .dropzone { position: relative; top: auto; min-height: 310px; }
  .video-edit-layout { grid-template-columns: 1fr; }
  .video-edit-preview { position: relative; top: auto; display: grid; grid-template-columns: minmax(180px,.8fr) minmax(0,1.2fr); }
  .video-edit-preview > a:first-child { grid-row: 1/3; }
  .video-edit-preview > .button { align-self: start; width: calc(100% - 36px); margin-top: 9px; }
  .auth-page { padding-bottom: 0; }
  .auth-layout { display: block; }
  .auth-visual { display: none; }
  .auth-card { width: min(100% - 40px,510px); min-height: 100vh; min-height: 100dvh; padding: 100px 0 calc(45px + env(safe-area-inset-bottom)); }
  .auth-card__brand { top: 31px; }
  .field > input, .field > textarea, .field > select, .password-field input { font-size: 16px; }
  .toast { top: 74px; right: 15px; left: 15px; max-width: none; }
}

@media (max-width: 480px) {
  .topbar .brand__logo { width: 40px; height: 40px; }
  .auth-card__brand .brand__logo { width: 52px; height: 52px; }
  .brand > span:last-child { display: none; }
  .topbar__inner { gap: 8px; padding: 0 10px; }
  .searchbar { max-width: none; }
  .app-shell { padding-right: max(12px, env(safe-area-inset-right)); padding-left: max(12px, env(safe-area-inset-left)); }
  .home-heading { padding: 32px 0 23px; }
  .home-heading h1, .search-hero h1, .upload-page__heading h1 { font-size: 32px; letter-spacing: -2px; }
  .home-heading__copy { margin-top: 15px; font-size: 13px; }
  .chip-row { margin-right: -12px; padding-bottom: 20px; }
  .section-heading { gap: 10px; margin-bottom: 17px; }
  .section-heading h2 { font-size: 18px; }
  .section-heading > span { max-width: 46%; font-size: 10px; }
  .demo-notice { align-items: flex-start; padding: 13px 14px; }
  .video-grid { grid-template-columns: 1fr; gap: 31px; }
  .video-card__title { font-size: 14px; }
  .video-card__body { grid-template-columns: 36px minmax(0,1fr) 20px; gap: 10px; }
  .video-card .avatar { width: 36px; height: 36px; }
  .search-hero { padding: 34px 0 30px; }
  .search-hero__form { height: 52px; margin-top: 24px; padding-left: 14px; }
  .search-hero__form button { height: 38px; margin-right: 6px; padding: 0 15px; }
  .profile-hero { min-height: 0; margin-top: 18px; padding: 28px 18px; border-radius: 16px; }
  .profile-hero h1 { font-size: 27px; }
  .profile-hero__stats { justify-content: space-between; gap: 12px; }
  .profile-hero__actions { flex-wrap: wrap; }
  .profile-hero__actions .button { flex: 1; }
  .profile-settings { padding: 19px 16px; border-radius: 14px; }
  .profile-settings__heading { align-items: flex-start; flex-direction: column; }
  .profile-settings__heading-actions { justify-content: space-between; width: 100%; }
  .profile-settings__avatar { min-width: 0; }
  .profile-avatar-upload { grid-template-columns: 64px minmax(0,1fr); gap: 12px; }
  .profile-avatar-upload__preview { width: 64px; height: 64px; }
  .profile-avatar-upload__action { display: none; }
  .profile-settings__form > .button { width: 100%; }
  .player-shell { margin: 0 -12px; border-radius: 0; }
  .watch-info { padding-top: 18px; }
  .watch-info h1 { font-size: 20px; }
  .pill-action { min-width: 0; flex: 1; padding: 0 11px; }
  .creator-row__profile { flex: 1; }
  .creator-row .button { flex: 0 0 auto; padding: 0 15px; }
  .description-box p { margin-right: 0; }
  .description-box button { position: static; padding: 10px 0 0; }
  .comment-form { gap: 9px; }
  .comment-form .avatar { width: 32px; height: 32px; }
  .watch-next .video-card { grid-template-columns: 120px minmax(0,1fr); }
  .upload-page { padding: 34px 0; }
  .upload-page__heading { margin-bottom: 28px; }
  .dropzone { min-height: 260px; }
  .dropzone__idle { padding: 24px 18px; }
  .dropzone__icon { width: 58px; height: 58px; margin-bottom: 17px; }
  .thumbnail-upload { grid-template-columns: 112px minmax(0,1fr); gap: 11px; min-height: 90px; padding: 9px; }
  .affiliate-fields { grid-template-columns: 1fr; }
  .affiliate-fields > p { grid-column: auto; }
  .video-edit-preview { display: block; }
  .video-edit-form { padding: 19px 16px; }
  .video-edit-form__actions { flex-direction: column; }
  .danger-zone { align-items: stretch; flex-direction: column; }
  .danger-zone .button { width: 100%; }
  .field-pair { grid-template-columns: 1fr; }
  .auth-card { width: calc(100% - 32px); padding-top: 92px; }
  .auth-card__heading h2 { font-size: 27px; }
  .google-button, .button--large { min-height: 48px; }
}

@media (max-width: 360px) {
  .topbar__inner { gap: 6px; padding: 0 8px; }
  .topbar .brand__logo { width: 36px; height: 36px; }
  .menu-toggle { width: 32px; }
  .login-link, .avatar--nav { width: 34px; height: 34px; }
  .mobile-nav span { font-size: 8px; }
  .profile-hero__stats strong { font-size: 17px; }
  .watch-next .video-card { grid-template-columns: 105px minmax(0,1fr); }
}

@media (hover: none) {
  .video-card__play { width: 38px; height: 38px; opacity: .9; transform: translate(-50%,-50%) scale(1); }
  .video-card__play svg { width: 21px; height: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Monetization documentation and creator dashboard */
.monetization-doc,.creator-dashboard { width: min(100%,1040px); margin: 0 auto; padding: 54px 0 80px; }
.monetization-doc > header { max-width: 720px; margin-bottom: 32px; }
.monetization-doc > header h1,.creator-dashboard__heading h1 { margin: 8px 0 12px; font: 800 clamp(32px,5vw,54px)/1.08 var(--display); letter-spacing: -2.4px; }
.monetization-doc > header > p:last-child,.creator-dashboard__heading > div > p:last-child { margin: 0; color: var(--muted); line-height: 1.7; }
.monetization-doc__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.monetization-doc__grid section { min-height: 230px; padding: 24px; background: linear-gradient(145deg,#18181b,#121214); border: 1px solid var(--border); border-radius: 16px; }
.monetization-doc__grid section > span { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: 1.5px; }
.monetization-doc__grid h2 { margin: 38px 0 12px; font: 700 19px var(--display); }
.monetization-doc__grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.monetization-doc__grid strong { color: var(--text); }
.monetization-doc__actions { display: flex; gap: 10px; margin-top: 24px; }

.creator-dashboard__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.creator-dashboard__heading h1 { font-size: clamp(30px,4vw,46px); }
.creator-stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; }
.creator-stat-grid article { display: flex; flex-direction: column; min-width: 0; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.creator-stat-grid small,.creator-stat-grid span { color: var(--muted-2); font-size: 10px; }
.creator-stat-grid strong { margin: 5px 0 2px; overflow: hidden; font: 750 clamp(19px,2vw,27px) var(--display); text-overflow: ellipsis; white-space: nowrap; }
.withdraw-eligibility { display: grid; grid-template-columns: minmax(220px,1.2fr) minmax(300px,1fr) auto; align-items: center; gap: 25px; margin: 18px 0 36px; padding: 24px; background: rgba(255,177,92,.05); border: 1px solid rgba(255,177,92,.18); border-radius: 16px; }
.withdraw-eligibility.is-ready { background: rgba(89,212,155,.05); border-color: rgba(89,212,155,.2); }
.withdraw-eligibility > div:first-child > span { color: var(--warm); font-size: 9px; font-weight: 800; letter-spacing: 1.3px; }
.withdraw-eligibility.is-ready > div:first-child > span { color: var(--green); }
.withdraw-eligibility h2 { margin: 6px 0 5px; font: 700 18px var(--display); }
.withdraw-eligibility p { margin: 0; color: var(--muted); font-size: 11px; }
.withdraw-requirements { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.withdraw-requirements p { display: flex; flex-direction: column; padding: 12px; background: rgba(0,0,0,.18); border-radius: 10px; }
.withdraw-requirements strong { color: var(--text); font-size: 14px; }
.withdraw-requirements span { margin-top: 2px; color: var(--muted-2); font-size: 9px; }
.dashboard-history__list { display: grid; gap: 9px; }
.dashboard-history__list article { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 6px 15px; padding: 15px 17px; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; }
.dashboard-history__list article > div { display: flex; flex-direction: column; }
.dashboard-history__list article > div span,.dashboard-history__list article > p { color: var(--muted-2); font-size: 10px; }
.dashboard-history__list article > p { grid-column: 1/-1; margin: 3px 0 0; }
.withdraw-status { padding: 5px 8px; font-size: 9px; font-weight: 700; text-transform: capitalize; border-radius: 20px; }
.withdraw-status--pending { color: var(--warm); background: rgba(255,177,92,.09); }
.withdraw-status--approved { color: var(--green); background: rgba(89,212,155,.09); }
.withdraw-status--rejected { color: #ff817a; background: rgba(255,59,48,.09); }

@media (max-width: 900px) {
  .monetization-doc__grid { grid-template-columns: 1fr; }
  .monetization-doc__grid section { min-height: 0; }
  .monetization-doc__grid h2 { margin-top: 18px; }
  .creator-stat-grid { grid-template-columns: 1fr 1fr; }
  .withdraw-eligibility { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .monetization-doc,.creator-dashboard { padding: 30px 0 52px; }
  .monetization-doc__actions,.creator-dashboard__heading { align-items: stretch; flex-direction: column; }
  .monetization-doc__actions .button,.creator-dashboard__heading .button { width: 100%; }
  .creator-stat-grid { grid-template-columns: 1fr; }
  .withdraw-requirements { grid-template-columns: 1fr; }
  .withdraw-eligibility { padding: 18px; }
}
