﻿:root {
    color-scheme: dark;
    --bg: #05080d;
    --surface: #0b121c;
    --surface-2: #101b28;
    --line: #1d2c3d;
    --line-bright: #2c4863;
    --text: #edf6ff;
    --muted: #8499aa;
    --blue: #4aa5ff;
    --blue-bright: #8dccff;
    --blue-ink: #031526;
    --danger: #ff8e99;
    --radius: 14px;
    --shadow: 0 24px 70px rgba(0, 0, 0, .35);
    font-family: Inter, Aptos, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--text); background: radial-gradient(circle at 78% -12%, rgba(36, 116, 201, .17), transparent 38rem), var(--bg); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue-bright); }
button, input, textarea, select { font: inherit; }
.topbar { min-height: 70px; padding: 0 22px; position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 255px minmax(260px, 650px) 1fr; align-items: center; gap: 24px; border-bottom: 1px solid rgba(35, 56, 77, .8); background: rgba(5, 8, 13, .9); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand:hover { color: var(--text); }
.brand-icon { width: 39px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(74,165,255,.62); border-radius: 10px; color: var(--blue); background: rgba(74,165,255,.1); font-size: .75rem; }
.brand > span:last-child { display: grid; line-height: 1; letter-spacing: .075em; }
.brand strong { font-size: .83rem; }
.brand small { margin-top: 5px; color: var(--muted); font-size: .57rem; letter-spacing: .11em; }
.search-shell { height: 42px; padding: 0 12px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 11px; background: rgba(8, 15, 23, .72); }
.search-shell > span { color: var(--muted); font-size: 1.2rem; }
.search-shell input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--muted); background: transparent; }
.search-shell small, .planned small { padding: 2px 6px; border: 1px solid #2b3b49; border-radius: 999px; color: #718797; font-size: .52rem; font-weight: 800; }
.account-nav { justify-self: end; display: flex; align-items: center; gap: 15px; color: #bed0df; font-size: .8rem; font-weight: 700; }
.account-nav form { margin: 0; }
.account-nav button { padding: 0; border: 0; color: #bed0df; background: none; cursor: pointer; }
.upload-shortcut, .join-button { padding: 8px 12px; border: 1px solid rgba(74,165,255,.5); border-radius: 9px; color: var(--blue-bright); background: rgba(74,165,255,.08); }
.account-chip { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--blue-ink); background: var(--blue); }
.app-shell { width: min(1600px, 100%); margin: 0 auto; display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.sidebar { min-height: calc(100vh - 70px); padding: 22px 14px; position: sticky; top: 70px; align-self: start; border-right: 1px solid var(--line); }
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav > a, .planned { min-height: 39px; padding: 8px 10px; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 8px; border-radius: 9px; color: #bdcedb; font-size: .81rem; font-weight: 650; }
.sidebar nav > a:hover, .sidebar nav > a.active { color: white; background: rgba(74,165,255,.11); }
.sidebar nav > a.active { box-shadow: inset 2px 0 var(--blue); }
.planned { color: #647887; cursor: default; }
.sidebar hr { width: 100%; margin: 8px 0; border: 0; border-top: 1px solid var(--line); }
.milestone-card { margin: 23px 6px 0; padding: 12px; display: grid; border: 1px solid rgba(74,165,255,.2); border-radius: 10px; color: var(--muted); background: rgba(74,165,255,.05); font-size: .67rem; }
.milestone-card strong { color: var(--blue); font-size: .61rem; letter-spacing: .12em; text-transform: uppercase; }
.main-content { min-width: 0; padding: 34px clamp(18px, 3vw, 44px) 70px; }
.message-stack { width: min(390px, calc(100% - 40px)); position: fixed; z-index: 50; top: 84px; right: 22px; }
.message { margin-bottom: 8px; padding: 12px 15px; border: 1px solid var(--line-bright); border-radius: 9px; background: var(--surface-2); box-shadow: var(--shadow); font-size: .8rem; }
.page-heading { margin-bottom: 23px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.page-heading.compact { max-width: 940px; }
.page-heading h1 { margin: 0 0 5px; font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1; letter-spacing: -.045em; }
.page-heading p:last-child { margin: 0; color: var(--muted); }
.eyebrow { margin: 0 0 7px; color: var(--blue); font-size: .68rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.primary-button, .secondary-button { min-height: 40px; padding: 10px 16px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--blue); border-radius: 9px; color: var(--blue-ink); background: var(--blue); font-weight: 800; cursor: pointer; }
.primary-button:hover { color: var(--blue-ink); background: var(--blue-bright); border-color: var(--blue-bright); }
.primary-button:disabled { opacity: .55; cursor: wait; }
.secondary-button { color: var(--text); border-color: var(--line-bright); background: transparent; }
.category-chips { margin-bottom: 26px; display: flex; gap: 8px; overflow-x: auto; }
.category-chips a { padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; color: #b8c9d5; background: rgba(255,255,255,.02); font-size: .74rem; font-weight: 750; white-space: nowrap; }
.category-chips a:hover, .category-chips a.active { color: var(--blue-ink); border-color: var(--blue); background: var(--blue); }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 19px; }
.video-card { min-width: 0; }
.thumbnail { aspect-ratio: 16/9; display: block; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #000; }
.thumbnail img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .2s ease; }
.thumbnail:hover img { transform: scale(1.02); }
.duration { position: absolute; right: 7px; bottom: 7px; padding: 2px 6px; border-radius: 5px; color: white; background: rgba(0,0,0,.84); font-size: .65rem; font-weight: 800; }
.video-card-details { padding: 12px 4px 0; display: grid; grid-template-columns: 38px 1fr; gap: 10px; }
.channel-avatar { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(74,165,255,.34); border-radius: 50%; color: var(--blue-bright); background: rgba(74,165,255,.11); font-weight: 850; }
.channel-avatar.large { width: 46px; height: 46px; }
.video-card h2 { margin: 0 0 5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .92rem; line-height: 1.3; }
.video-card p { margin: 0; color: var(--muted); font-size: .7rem; }
.category-label { margin-top: 7px; padding: 3px 7px; display: inline-flex; border: 1px solid rgba(74,165,255,.25); border-radius: 999px; color: #8dcbff; background: rgba(74,165,255,.06); font-size: .6rem; font-weight: 750; }
.empty-state { min-height: 430px; padding: 65px 30px; display: grid; place-items: center; align-content: center; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(14,25,38,.92), rgba(7,13,21,.95)); text-align: center; box-shadow: var(--shadow); }
.empty-icon { width: 76px; height: 58px; margin-bottom: 18px; display: grid; place-items: center; border: 1px solid rgba(74,165,255,.4); border-radius: 17px; color: var(--blue); background: rgba(74,165,255,.1); }
.empty-state h2 { margin: 0 0 7px; }
.empty-state p { max-width: 560px; margin: 0 0 22px; color: var(--muted); }
.upload-form { max-width: 940px; padding: clamp(22px, 4vw, 38px); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(14,25,38,.94), rgba(7,13,21,.96)); box-shadow: var(--shadow); }
.dropzone { min-height: 245px; margin-bottom: 25px; padding: 28px; display: flex; align-items: center; justify-content: center; flex-direction: column; border: 1px dashed #385c78; border-radius: 14px; outline: none; color: var(--muted); background: rgba(3,10,17,.5); text-align: center; cursor: pointer; }
.dropzone:hover, .dropzone:focus, .dropzone.dragging { border-color: var(--blue); background: rgba(74,165,255,.07); }
.dropzone.invalid { border-color: var(--danger); }
.dropzone > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-icon { width: 58px; height: 58px; margin-bottom: 14px; display: grid; place-items: center; border-radius: 50%; color: var(--blue-ink); background: var(--blue); font-size: 1.5rem; }
.dropzone strong { color: var(--text); font-size: 1.03rem; }
.dropzone small { margin-top: 8px; color: #6f8596; font-size: .68rem; }
.file-summary { max-width: 100%; margin-top: 14px; padding: 8px 11px; overflow: hidden; border: 1px solid rgba(74,165,255,.28); border-radius: 8px; color: #baddff; background: rgba(74,165,255,.08); text-overflow: ellipsis; white-space: nowrap; font-size: .74rem; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(210px, .5fr); gap: 18px; }
.field { margin-bottom: 19px; }
.field label, .auth-card label { margin-bottom: 6px; display: block; font-size: .81rem; font-weight: 750; }
.field input, .field textarea, .field select, .auth-card input { width: 100%; padding: 11px 12px; border: 1px solid var(--line-bright); border-radius: 8px; outline: none; color: var(--text); background: #050b12; }
.field input:focus, .field textarea:focus, .field select:focus, .auth-card input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(74,165,255,.1); }
.field textarea { resize: vertical; }
.field > small { display: block; margin-top: 5px; color: var(--muted); font-size: .68rem; }
.field-error, .form-errors { margin: 6px 0 12px; color: var(--danger); font-size: .75rem; }
.field-error ul, .form-errors ul { margin: 0; padding-left: 18px; }
.upload-progress { margin-top: 22px; padding: 15px; border: 1px solid rgba(74,165,255,.26); border-radius: 9px; background: rgba(74,165,255,.06); }
.upload-progress > div { display: flex; justify-content: space-between; }
.upload-progress progress { width: 100%; height: 8px; margin: 9px 0 4px; accent-color: var(--blue); }
.upload-progress p { margin: 0; color: var(--muted); font-size: .7rem; }
.form-actions { margin-top: 27px; display: flex; justify-content: flex-end; gap: 10px; }
.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; }
.watch-main { min-width: 0; }
.player-shell { aspect-ratio: 16/9; overflow: hidden; border: 1px solid #1d3447; border-radius: 13px; background: #000; box-shadow: var(--shadow); }
.player-shell video { width: 100%; height: 100%; display: block; }
.speed-control { margin-top: 8px; display: flex; justify-content: flex-end; align-items: center; gap: 8px; color: var(--muted); font-size: .68rem; }
.speed-control select { padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--surface); }
.watch-title { margin-top: 17px; }
.watch-title h1 { margin: 8px 0 5px; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.15; letter-spacing: -.03em; }
.watch-title p { margin: 0; color: var(--muted); font-size: .74rem; }
.watch-actions { margin: 15px 0; padding: 8px 0; display: flex; gap: 7px; border-block: 1px solid var(--line); }
.watch-actions button, .channel-card button { min-height: 35px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: #c7d9e7; background: rgba(255,255,255,.025); font-size: .71rem; font-weight: 750; cursor: pointer; }
.watch-actions button:disabled, .channel-card button:disabled { color: #637887; cursor: default; }
.watch-actions small, .channel-card button small { margin-left: 4px; color: #677e8e; font-size: .5rem; }
.channel-card, .description-card, .coming-section > div { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.channel-card { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 12px; }
.channel-card > div { display: grid; }
.channel-card > div small { color: var(--muted); }
.description-card { margin-top: 13px; }
.description-card > div { display: flex; gap: 14px; font-size: .74rem; }
.description-card > div span { color: var(--muted); }
.description-card p { margin: 13px 0 0; color: #c5d5e1; font-size: .86rem; }
.tags { margin-top: 13px; display: flex; flex-wrap: wrap; gap: 7px; color: var(--blue); font-size: .7rem; }
.coming-section { margin-top: 28px; }
.coming-section h2, .related h2 { font-size: 1.1rem; }
.coming-section p { margin: 5px 0 0; color: var(--muted); font-size: .8rem; }
.related { position: sticky; top: 92px; }
.related .video-card { margin-bottom: 16px; display: grid; grid-template-columns: 145px 1fr; gap: 9px; }
.related .video-card-details { padding: 0; grid-template-columns: 1fr; }
.related .channel-avatar, .related .category-label { display: none; }
.related .video-card h2 { font-size: .78rem; }
.related-empty { padding: 25px 14px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); text-align: center; font-size: .75rem; }
.processing-state { min-height: min(560px, 58vh); padding: 40px; display: flex; align-items: center; justify-content: center; flex-direction: column; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); text-align: center; }
.processing-icon { margin-bottom: 14px; color: var(--blue); font-size: 3rem; animation: pulse 1.8s ease-in-out infinite; }
.processing-state h1 { margin: 0 0 7px; }
.processing-state > p:not(.eyebrow) { max-width: 540px; color: var(--muted); }
.processing-track { width: min(470px, 90%); height: 7px; margin: 12px 0; overflow: hidden; border-radius: 999px; background: #172633; }
.processing-track span { width: 2%; height: 100%; display: block; background: linear-gradient(90deg, #287bc7, var(--blue)); transition: width .3s; }
@keyframes pulse { 50% { opacity: .4; transform: scale(.92); } }
.auth-card { width: min(480px, 100%); margin: 45px auto; padding: 34px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); }
.auth-card.wide { width: min(580px, 100%); }
.auth-card h1 { margin: 0 0 7px; }
.auth-card > p:not(.eyebrow) { color: var(--muted); }
.auth-card form p { margin: 16px 0; }
.auth-card .helptext { display: block; margin-top: 5px; color: var(--muted); font-size: .68rem; }
.auth-card ul { color: var(--muted); font-size: .72rem; }
.auth-card footer { margin-top: 20px; color: var(--muted); font-size: .78rem; }
.auth-card footer a { color: var(--blue); }
@media (max-width: 1120px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .watch-layout { grid-template-columns: minmax(0, 1fr) 270px; } .related .video-card { grid-template-columns: 112px 1fr; } }
@media (max-width: 900px) {
    .topbar { grid-template-columns: 1fr auto; }
    .search-shell { grid-row: 2; grid-column: 1 / -1; width: 100%; margin-bottom: 12px; }
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { min-height: 0; padding: 10px 12px; position: static; border-right: 0; border-bottom: 1px solid var(--line); }
    .sidebar nav { display: flex; overflow-x: auto; }
    .sidebar nav > a, .planned { min-width: max-content; display: flex; }
    .sidebar hr, .milestone-card, .planned:nth-of-type(n+4) { display: none; }
    .watch-layout { grid-template-columns: 1fr; }
    .related { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .related > h2, .related-empty { grid-column: 1 / -1; }
    .related .video-card { margin: 0; display: block; }
    .related .video-card-details { padding-top: 8px; }
}
@media (max-width: 640px) {
    .topbar { min-height: 62px; padding: 10px 13px; gap: 10px; }
    .brand > span:last-child { display: none; }
    .account-nav { gap: 9px; }
    .account-nav form, .upload-shortcut { display: none; }
    .main-content { padding: 25px 12px 50px; }
    .page-heading { align-items: start; flex-direction: column; }
    .video-grid { grid-template-columns: 1fr; gap: 25px; }
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .upload-form { padding: 18px 14px; }
    .dropzone { min-height: 205px; padding: 18px; }
    .watch-actions { overflow-x: auto; }
    .watch-actions button { min-width: max-content; }
    .channel-card { grid-template-columns: 42px 1fr; }
    .channel-card > button { grid-column: 2; width: max-content; }
    .related { grid-template-columns: 1fr; }
    .processing-state { min-height: 380px; padding: 25px 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* =========================================================
   NEXUS SAGITTARIUS VIDEO PLATFORM UI
   ========================================================= */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background: #080b10;
}

.topbar {
    min-height: 64px;
    grid-template-columns: 230px minmax(300px, 680px) 1fr;
    padding: 0 20px;
    background: rgba(8,11,16,.97);
    border-bottom: 1px solid #1b2633;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    color: #e8f3ff;
    background: transparent;
    font-size: 1.25rem;
    cursor: pointer;
}

.menu-button:hover {
    background: #18212b;
}

.brand-mark {
    width: 38px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #031526;
    background: #4aa5ff;
    font-size: .75rem;
}

.brand-copy strong {
    display: block;
    letter-spacing: .05em;
}

.brand-copy small {
    display: block;
    margin-top: 1px;
    color: #74899b;
    font-size: .55rem;
    letter-spacing: .16em;
}

.search-shell {
    height: 40px;
    padding: 0;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid #2a3744;
    background: #080b10;
}

.search-shell .search-icon {
    display: none;
}

.search-shell input {
    height: 100%;
    padding: 0 17px;
    color: #eaf5ff;
}

.search-shell button {
    width: 58px;
    height: 100%;
    border: 0;
    border-left: 1px solid #2a3744;
    color: #c8d8e6;
    background: #151c24;
}

.create-button {
    min-height: 36px;
    padding: 7px 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 18px;
    background: #17212b;
}

.logout-button {
    font-size: .72rem;
}

.sidebar {
    top: 64px;
    min-height: calc(100vh - 64px);
    padding: 13px 11px;
    background: #080b10;
}

.sidebar-heading {
    padding: 8px 11px 5px;
    color: #75899a;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.sidebar nav > a,
.planned {
    min-height: 42px;
    border-radius: 10px;
}

.sidebar nav > a.active {
    background: #18232e;
    box-shadow: none;
}

.nexus-sidebar-card {
    margin: 24px 8px;
    padding: 14px 10px;
    display: grid;
    border-top: 1px solid #1d2935;
    color: #6f8495;
    font-size: .61rem;
    letter-spacing: .04em;
}

.nexus-sidebar-card strong {
    margin-bottom: 5px;
    color: #4aa5ff;
}

.main-content {
    padding: 22px 25px 60px;
}

.category-chips {
    margin: 0 0 22px;
    padding-bottom: 2px;
}

.category-chips a {
    padding: 7px 13px;
    border: 0;
    border-radius: 8px;
    color: #e4edf5;
    background: #20272e;
}

.category-chips a:hover {
    color: white;
    background: #303b46;
}

.category-chips a.active {
    color: #07111b;
    background: #eaf5ff;
}

.video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 17px;
}

.thumbnail {
    border: 0;
    border-radius: 11px;
}

.video-card-details {
    position: relative;
    grid-template-columns: 38px minmax(0,1fr) 24px;
    gap: 11px;
}

.video-card-copy {
    min-width: 0;
}

.video-card h2 {
    margin-bottom: 6px;
    color: #f4f8fb;
    font-size: .94rem;
}

.video-card p {
    color: #8797a5;
    font-size: .73rem;
}

.channel-name:hover {
    color: #cbd9e4;
}

.video-more {
    width: 26px;
    height: 34px;
    padding: 0;
    border: 0;
    color: #d6e2eb;
    background: transparent;
    font-size: 1.3rem;
}

.empty-state {
    min-height: 60vh;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.empty-logo {
    width: 92px;
    height: 66px;
    margin-bottom: 18px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #031526;
    background: #4aa5ff;
    font-size: 1.4rem;
}

.empty-state h1 {
    margin: 0 0 8px;
    letter-spacing: .08em;
}

.watch-layout {
    grid-template-columns: minmax(0,1fr) 390px;
    gap: 24px;
}

.player-shell {
    border: 0;
    border-radius: 12px;
    background: #000;
}

.watch-title h1 {
    margin: 15px 0 11px;
    font-size: 1.35rem;
}

.watch-control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 13px;
}

.channel-inline {
    display: flex;
    align-items: center;
    gap: 11px;
}

.channel-inline > div {
    display: grid;
}

.channel-inline small {
    color: #8193a1;
}

.channel-inline button {
    margin-left: 8px;
    padding: 9px 15px;
    border: 0;
    border-radius: 20px;
    color: #09121a;
    background: #eaf5ff;
    font-weight: 800;
}

.watch-actions {
    margin: 0;
    padding: 0;
    border: 0;
}

.watch-actions button {
    min-height: 38px;
    padding: 8px 15px;
    background: #202830;
}

.description-card {
    margin-top: 4px;
    padding: 14px;
    border: 0;
    border-radius: 11px;
    background: #181f26;
}

.video-stat-line {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.comments-panel {
    margin-top: 27px;
}

.comments-panel h2 {
    font-size: 1.15rem;
}

.comment-placeholder {
    padding: 15px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #202b35;
}

.comment-placeholder p {
    margin: 3px 0 0;
    color: #8193a1;
}

.related {
    top: 82px;
}

.related > h2 {
    margin-top: 0;
}

.related .video-card {
    grid-template-columns: 168px minmax(0,1fr);
}

.related .thumbnail {
    border-radius: 8px;
}

.related .video-card-details {
    grid-template-columns: minmax(0,1fr) 20px;
}

.related .video-more {
    display: block;
}

@media (min-width: 1450px) {
    .video-grid {
        grid-template-columns: repeat(4, minmax(0,1fr));
    }
}

@media (max-width: 1150px) {
    .watch-layout {
        grid-template-columns: minmax(0,1fr) 320px;
    }

    .related .video-card {
        grid-template-columns: 130px minmax(0,1fr);
    }
}

@media (max-width: 900px) {
    .topbar {
        grid-template-columns: 1fr auto;
    }

    .topbar-left {
        min-width: 0;
    }

    .search-shell {
        grid-column: 1 / -1;
    }

    .sidebar {
        top: auto;
    }

    .nexus-sidebar-card {
        display: none;
    }

    .watch-layout {
        grid-template-columns: 1fr;
    }

    .watch-control-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .related {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 640px) {
    .menu-button {
        display: none;
    }

    .brand-copy {
        display: block !important;
    }

    .brand-copy small {
        display: none;
    }

    .account-chip {
        display: none;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 18px 10px 45px;
    }

    .watch-actions {
        width: 100%;
        overflow-x: auto;
    }

    .related {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   SAGITTARIUS-OFFICIAL-IDENTITY
   ========================================================== */

.sagittarius-official-logo {
    display: block;
    width: 42px;
    height: 42px;
    min-width: 42px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    margin-right: 10px;
    filter:
        drop-shadow(0 0 6px rgba(55,165,255,.70))
        drop-shadow(0 0 15px rgba(35,100,255,.30));
}

.sagittarius-ai-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.sagittarius-welcome-logo {
    display: block;
    width: clamp(145px,18vw,220px);
    height: clamp(145px,18vw,220px);
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    filter:
        drop-shadow(0 0 12px rgba(55,165,255,.70))
        drop-shadow(0 0 32px rgba(35,95,255,.30));
}

.sagittarius-welcome-title {
    margin-top: 14px;
    font-size: clamp(1rem,2vw,1.35rem);
    font-weight: 800;
    letter-spacing: .20em;
    color: #8ed1ff;
    text-shadow: 0 0 12px rgba(55,165,255,.50);
}

@media (max-width:700px) {
    .sagittarius-official-logo {
        width: 36px;
        height: 36px;
        min-width: 36px;
        margin-right: 7px;
    }

    .sagittarius-welcome-logo {
        width: 135px;
        height: 135px;
    }
}


/* ==========================================================
   SAGITTARIUS-HEADER-LOGO-FINAL
   Official compact Sagittarius AI identity
   ========================================================== */

.sagittarius-official-logo {
    display: inline-block !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;

    object-fit: cover !important;
    object-position: center !important;

    border-radius: 50% !important;

    margin: 0 9px 0 0 !important;
    padding: 0 !important;

    position: static !important;

    flex: 0 0 38px !important;

    background: transparent !important;

    filter:
        drop-shadow(0 0 4px rgba(55,165,255,.75))
        drop-shadow(0 0 9px rgba(35,100,255,.30)) !important;
}

/* The old white play marker is no longer needed when the
   official Sagittarius emblem is present. */

.brand-mark,
.brand-icon {
    display: none !important;
}

/* Never allow the welcome logo classes to become a
   full-page image if stale markup is cached. */

.sagittarius-ai-welcome,
.sagittarius-welcome-logo,
.sagittarius-welcome-title {
    display: none !important;
}

@media (max-width: 700px) {
    .sagittarius-official-logo {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        flex-basis: 32px !important;
        margin-right: 7px !important;
    }
}


/* ==========================================================
   SAGITTARIUS OFFICIAL EMBLEM - APPROVED PLACEMENT
   ========================================================== */

.brand {
    display: flex !important;
    align-items: center !important;
    gap: 13px !important;
}

.sagittarius-header-emblem {
    display: block !important;
    width: 68px !important;
    height: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    flex: 0 0 68px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 50% !important;
    margin: 0 !important;
    filter:
        drop-shadow(0 0 7px rgba(55,165,255,.75))
        drop-shadow(0 0 16px rgba(35,100,255,.35)) !important;
}

.brand-copy {
    display: block !important;
}

.brand-copy strong {
    display: block !important;
    font-size: .92rem !important;
    line-height: 1.05 !important;
    letter-spacing: .075em !important;
}

.brand-copy small {
    display: block !important;
    margin-top: 4px !important;
    font-size: .58rem !important;
    letter-spacing: .16em !important;
}

.brand-mark,
.brand-icon {
    display: none !important;
}

.sagittarius-welcome-logo {
    display: block !important;
    width: clamp(170px,18vw,230px) !important;
    height: clamp(170px,18vw,230px) !important;
    min-width: 170px !important;
    min-height: 170px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 50% !important;
    margin: 0 auto 22px !important;
    filter:
        drop-shadow(0 0 14px rgba(55,165,255,.78))
        drop-shadow(0 0 38px rgba(35,95,255,.38)) !important;
}

.sagittarius-ai-welcome {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.sagittarius-welcome-title {
    display: block !important;
}

@media (max-width:700px) {

    .sagittarius-header-emblem {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
        flex-basis: 48px !important;
    }

    .sagittarius-welcome-logo {
        width: 150px !important;
        height: 150px !important;
        min-width: 150px !important;
        min-height: 150px !important;
    }
}

/* ==========================================================
   END SAGITTARIUS OFFICIAL EMBLEM
   ========================================================== */


/* SAGITTARIUS HEADER EMBLEM - 80PX FINAL */
.sagittarius-header-emblem {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
    flex: 0 0 80px !important;
}

.topbar {
    min-height: 92px !important;
}

@media (max-width:700px) {
    .sagittarius-header-emblem {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        max-width: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
        flex: 0 0 60px !important;
    }

    .topbar {
        min-height: 72px !important;
    }
}
/* END SAGITTARIUS HEADER EMBLEM - 80PX FINAL */

/* SAGITTARIUS HEADER EMBLEM - 100PX FINAL */
.sagittarius-header-emblem {
    width: 100px !important;
    height: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    min-height: 100px !important;
    max-height: 100px !important;
    flex: 0 0 100px !important;
}

.topbar {
    min-height: 112px !important;
}

@media (max-width:700px) {
    .sagittarius-header-emblem {
        width: 72px !important;
        height: 72px !important;
        min-width: 72px !important;
        max-width: 72px !important;
        min-height: 72px !important;
        max-height: 72px !important;
        flex: 0 0 72px !important;
    }

    .topbar {
        min-height: 84px !important;
    }
}
/* END SAGITTARIUS HEADER EMBLEM - 100PX FINAL */

/* SAGITTARIUS - BIGGER EMBLEM WITHOUT MOVING LAYOUT */
.sagittarius-header-emblem {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
    flex: 0 0 80px !important;

    transform: scale(1.50) !important;
    transform-origin: center center !important;

    object-fit: cover !important;
    border-radius: 50% !important;
    margin: 0 !important;
    position: relative !important;
    z-index: 10 !important;
}

/* KEEP HEADER AT ORIGINAL 92PX POSITION */
.topbar {
    min-height: 92px !important;
    height: 92px !important;
}

/* KEEP BRAND POSITION FIXED */
.brand {
    align-items: center !important;
}

/* END BIGGER EMBLEM WITHOUT MOVING LAYOUT */

/* SAGITTARIUS LOGO - LARGE VISUAL / FIXED HEADER */
.topbar {
    min-height: 92px !important;
    height: 92px !important;
}

.sagittarius-header-emblem {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
    flex: 0 0 80px !important;

    transform: scale(1.50) !important;
    transform-origin: center center !important;

    margin: 0 !important;
    object-fit: cover !important;
    border-radius: 50% !important;

    position: relative !important;
    z-index: 20 !important;
}

.brand {
    align-items: center !important;
}

/* END SAGITTARIUS LOGO - LARGE VISUAL / FIXED HEADER */

/* SAGITTARIUS LOGO - 150PX VISUAL / SAME POSITION */
.topbar {
    min-height: 92px !important;
    height: 92px !important;
}

.sagittarius-header-emblem {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
    flex: 0 0 80px !important;

    transform: scale(1.3125) !important;
    transform-origin: center center !important;

    margin: 0 !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    position: relative !important;
    z-index: 20 !important;
}

.brand {
    align-items: center !important;
}

/* END SAGITTARIUS LOGO - 150PX VISUAL / SAME POSITION */



/* SAGITTARIUS LOGO - POSITION TUNING */
.sagittarius-header-emblem {
    transform: translateY(-12px) scale(1.3125) !important;
    transform-origin: center center !important;
}
/* END SAGITTARIUS LOGO - POSITION TUNING */



/* SAGITTARIUS BRAND TEXT - POSITION */
.brand-copy {
    position: relative !important;
    left: 8px !important;
}
/* END SAGITTARIUS BRAND TEXT - POSITION */


/* SAGITTARIUS BRAND SUBTITLE - CENTER */
.brand-copy {
    display: flex !important;
    flex-direction: column !important;
}

.brand-copy strong {
    display: block !important;
}

.brand-copy small {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}
/* END SAGITTARIUS BRAND SUBTITLE - CENTER */


/* SAGITTARIUS MAIN EMBLEM */
.empty-logo.sagittarius-main-emblem {
    width: 150px !important;
    height: 150px !important;
    padding: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    background: transparent !important;
    border: none !important;
    border-radius: 50% !important;
    overflow: visible !important;
}

.empty-logo.sagittarius-main-emblem img {
    display: block !important;
    width: 150px !important;
    height: 150px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}
/* END SAGITTARIUS MAIN EMBLEM */


/* SAGITTARIUS LOGO HOME BUTTON */
.sagittarius-home-button {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    flex: 0 0 42px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;
    margin: 0 4px 0 0 !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 50% !important;

    text-decoration: none !important;
    overflow: visible !important;
}

.sagittarius-home-button img {
    display: block !important;
    width: 42px !important;
    height: 42px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

.sagittarius-home-button:hover {
    transform: scale(1.06);
}
/* END SAGITTARIUS LOGO HOME BUTTON */


/* SAGITTARIUS SHORTS V1 */

.shorts-page {
    min-height: calc(100vh - 110px);
}

.shorts-feed {
    height: calc(100vh - 125px);
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scrollbar-width: thin;
}

.short-card {
    min-height: calc(100vh - 125px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 20px;
}

.short-player {
    position: relative;
    height: min(78vh, 760px);
    aspect-ratio: 9 / 16;
    max-width: calc(100vw - 390px);
    overflow: hidden;
    border-radius: 18px;
    background: #000;
    border: 1px solid rgba(90, 160, 220, .25);
}

.short-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.short-information {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 48px;
    padding: 55px 18px 16px;
    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, .82)
    );
    pointer-events: none;
}

.short-information strong {
    display: block;
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.short-information span {
    color: #9fc8eb;
    font-size: .86rem;
}

.short-information p {
    color: #d4e2ef;
    font-size: .82rem;
    margin: 7px 0 0;
}

.short-actions {
    align-self: flex-end;
    margin-bottom: 45px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.short-action {
    width: 58px;
    min-height: 58px;
    border-radius: 16px;
    border: 1px solid rgba(100, 170, 225, .28);
    background: #111c26;
    color: #d9ebfa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
}

.short-action span {
    font-size: 1.25rem;
}

.short-action small {
    font-size: .62rem;
}

.short-action:disabled {
    opacity: .55;
    cursor: default;
}

.shorts-empty {
    min-height: calc(100vh - 190px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.shorts-empty img {
    width: 145px;
    height: 145px;
    object-fit: cover;
    border-radius: 50%;
}

.shorts-empty h1 {
    margin: 16px 0 4px;
    letter-spacing: .12em;
}

.shorts-empty p {
    color: #86acd0;
    margin-bottom: 20px;
}

@media (max-width: 800px) {

    .short-card {
        padding: 8px;
        gap: 7px;
    }

    .short-player {
        height: calc(100vh - 150px);
        max-width: calc(100vw - 78px);
    }

    .short-actions {
        margin-bottom: 25px;
    }

}

/* END SAGITTARIUS SHORTS V1 */


/* SAGITTARIUS SUBSCRIPTIONS V1 */

.subscriptions-page {
    padding: 24px 28px 50px;
}

.subscriptions-heading {
    margin-bottom: 25px;
}

.subscriptions-heading h1 {
    margin: 0;
    letter-spacing: .08em;
}

.subscriptions-heading p {
    margin: 6px 0 0;
    color: #7fa9cf;
}

.subscribed-channels {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 0 24px;
}

.subscribed-channel {
    min-width: 210px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px;
    border: 1px solid rgba(90,160,220,.22);
    background: #0e1821;
    border-radius: 14px;
}

.subscribed-channel > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.subscribed-channel small {
    color: #789bbb;
}

.subscribe-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 18px;
    border: 0;
    border-radius: 18px;
    background: #f1f6fa;
    color: #07111a;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.subscribe-button.subscribed {
    background: #172633;
    color: #d5e8f8;
    border: 1px solid #31495c;
}

.subscription-form {
    margin: 0;
}

.subscriptions-empty {
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.subscriptions-empty.compact {
    min-height: 300px;
}

.subscriptions-empty img {
    width: 135px;
    height: 135px;
    border-radius: 50%;
    object-fit: cover;
}

.subscriptions-empty h2 {
    margin: 15px 0 5px;
}

.subscriptions-empty p {
    color: #7fa9cf;
    max-width: 500px;
    line-height: 1.5;
}

/* END SAGITTARIUS SUBSCRIPTIONS V1 */


/* SAGITTARIUS LIKED VIDEOS V1 */

.liked-videos-page {
    padding: 24px 28px 50px;
}

.liked-videos-heading {
    margin-bottom: 25px;
}

.liked-videos-heading h1 {
    margin: 0;
    letter-spacing: .08em;
}

.liked-videos-heading p {
    margin: 6px 0 0;
    color: #7fa9cf;
}

.like-form {
    display: inline-flex;
    margin: 0;
}

.like-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid #31495c;
    border-radius: 18px;
    background: #101c26;
    color: #d5e8f8;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.like-button.liked {
    background: #172633;
    color: #ffffff;
    border-color: #4f7897;
}

.liked-videos-empty {
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.liked-videos-empty img {
    width: 135px;
    height: 135px;
    border-radius: 50%;
    object-fit: cover;
}

.liked-videos-empty h2 {
    margin: 15px 0 5px;
}

.liked-videos-empty p {
    color: #7fa9cf;
    max-width: 500px;
    line-height: 1.5;
}

/* END SAGITTARIUS LIKED VIDEOS V1 */


/* ==========================================================
   SAGITTARIUS MY VIDEOS V1
   ========================================================== */

.my-videos-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.my-videos-list {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.my-video-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    background: rgba(255,255,255,.025);
}

.my-video-thumbnail {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 16 / 9;
    background: #050b16;
}

.my-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.my-video-thumbnail .duration {
    position: absolute;
    right: 7px;
    bottom: 7px;
}

.my-video-information {
    min-width: 0;
}

.my-video-information h2 {
    margin: 0 0 6px;
    font-size: 1.08rem;
}

.my-video-information h2 a {
    color: inherit;
    text-decoration: none;
}

.my-video-channel,
.my-video-stats {
    margin: 5px 0;
    opacity: .72;
}

.my-video-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.video-status,
.video-visibility {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .03em;
}

.status-ready,
.visibility-public {
    border-color: rgba(76,175,80,.45);
}

.status-failed,
.my-video-error {
    border-color: rgba(244,67,54,.45);
}

.my-video-error {
    margin-top: 9px;
    padding: 8px 10px;
    border: 1px solid;
    border-radius: 8px;
}

.my-video-actions {
    display: flex;
    align-items: center;
}

@media (max-width: 850px) {
    .my-video-row {
        grid-template-columns: 160px minmax(0, 1fr);
    }

    .my-video-actions {
        grid-column: 2;
    }
}

@media (max-width: 620px) {
    .my-videos-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .my-video-row {
        grid-template-columns: 1fr;
    }

    .my-video-actions {
        grid-column: 1;
    }
}

/* ==========================================================
   NEXUS SIDEBAR V2
   ========================================================== */

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 8px 10px 30px;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-heading {
    padding: 13px 14px 7px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .04em;
}

.sidebar-arrow {
    margin-left: 3px;
    font-size: 18px;
}

.sidebar-nav a,
.sidebar-coming {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 10px;
}

.sidebar-nav a {
    text-decoration: none;
}

.sidebar-nav a span,
.sidebar-coming span {
    width: 24px;
    min-width: 24px;
    text-align: center;
    font-size: 19px;
}

.sidebar-nav a strong,
.sidebar-coming strong {
    font-size: 14px;
    font-weight: 600;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,.07);
}

.sidebar-nav a.active {
    background: rgba(255,255,255,.11);
}

.sidebar-coming {
    opacity: .48;
    cursor: default;
}

.sidebar-divider {
    height: 1px;
    margin: 10px 4px;
    background: rgba(255,255,255,.10);
}

/* END NEXUS SIDEBAR V2 */

/* ==========================================================
   SAGITTARIUS MY PROFILE V1
   ========================================================== */

.sag-profile-page {
    width: min(1100px, calc(100% - 40px));
    margin: 28px auto 70px;
}

.sag-profile-header {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 26px;
}

.sag-profile-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    border-radius: 50%;
    font-size: 38px;
    font-weight: 800;
    background: rgba(40, 125, 255, .16);
    border: 1px solid rgba(75, 150, 255, .40);
}

.sag-profile-kicker {
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    opacity: .65;
}

.sag-profile-identity h1 {
    margin: 0;
    font-size: 32px;
}

.sag-profile-username {
    margin-top: 4px;
    opacity: .65;
}

.sag-profile-success {
    margin-bottom: 20px;
    padding: 13px 16px;
    border-radius: 10px;
    background: rgba(40, 180, 100, .12);
    border: 1px solid rgba(40, 180, 100, .30);
}

.sag-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 20px;
}

.sag-profile-card {
    padding: 24px;
    border-radius: 16px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.09);
}

.sag-profile-card h2 {
    margin: 0 0 20px;
    font-size: 20px;
}

.sag-profile-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sag-profile-form label {
    margin-top: 5px;
    font-size: 13px;
    font-weight: 700;
}

.sag-profile-form input,
.sag-profile-form textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.18);
    color: inherit;
    font: inherit;
}

.sag-profile-form textarea {
    resize: vertical;
}

.sag-profile-save {
    align-self: flex-start;
    margin-top: 8px;
    padding: 11px 18px;
    border: 0;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
}

.sag-profile-info-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.sag-profile-info-row:last-child {
    border-bottom: 0;
}

.sag-profile-info-row span {
    font-size: 12px;
    opacity: .58;
}

.sag-profile-info-row strong {
    overflow-wrap: anywhere;
}

@media (max-width: 800px) {
    .sag-profile-grid {
        grid-template-columns: 1fr;
    }

    .sag-profile-page {
        width: min(100% - 24px, 1100px);
    }

    .sag-profile-avatar {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
        font-size: 30px;
    }

    .sag-profile-identity h1 {
        font-size: 26px;
    }
}

/* END SAGITTARIUS MY PROFILE V1 */

/* ==========================================================
   SAGITTARIUS HISTORY V1
   ========================================================== */

.sag-history-page {
    width: min(1100px, calc(100% - 40px));
    margin: 28px auto 70px;
}

.sag-history-heading {
    margin-bottom: 26px;
}

.sag-history-kicker {
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    opacity: .62;
}

.sag-history-heading h1 {
    margin: 0;
    font-size: 32px;
}

.sag-history-heading p {
    margin: 7px 0 0;
    opacity: .64;
}

.sag-history-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sag-history-item {
    padding: 20px;
    border-radius: 16px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.08);
}

.sag-history-title {
    display: block;
    color: inherit;
    text-decoration: none;
    font-size: 20px;
    font-weight: 800;
}

.sag-history-title:hover {
    text-decoration: underline;
}

.sag-history-channel,
.sag-history-time {
    margin-top: 7px;
    font-size: 13px;
    opacity: .62;
}

.sag-history-empty {
    padding: 42px 28px;
    border-radius: 16px;
    text-align: center;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.08);
}

.sag-history-empty h2 {
    margin-top: 0;
}

.sag-history-empty p {
    opacity: .65;
}

.sag-history-empty a {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
}

@media (max-width: 760px) {
    .sag-history-page {
        width: min(100% - 24px, 1100px);
    }
}

/* END SAGITTARIUS HISTORY V1 */

/* COMMON V1 interactive surfaces */
.common-narrow { max-width: 920px; }
.common-card-link { display: block; color: inherit; text-decoration: none; }
.common-card-link:hover { border-color: rgba(45, 170, 255, .48); }
.common-form { display: grid; gap: 18px; }
.common-field { display: grid; gap: 7px; }
.common-field label { font-size: 13px; font-weight: 800; }
.common-field small { color: var(--muted); }
.common-input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 11px 13px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    background: rgba(0,0,0,.22);
    color: inherit;
    font: inherit;
}
textarea.common-input { resize: vertical; }
select.common-input option { background: #111a23; color: #fff; }
.common-checkbox { width: 18px; height: 18px; accent-color: #269cf0; }
.common-actions, .common-vote-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.common-vote-row { margin-top: 20px; }
.common-vote-row form, .common-actions form, .common-page-head form { margin: 0; }
.common-button.active { border-color: #39a9ff; color: #fff; background: rgba(30,142,230,.2); }
.common-text-button {
    padding: 0;
    border: 0;
    color: #7fc8ff;
    background: transparent;
    font: inherit;
    cursor: pointer;
}
.common-post-detail h1 { margin: 14px 0 8px; overflow-wrap: anywhere; }
.common-post-body { margin-top: 22px; line-height: 1.65; overflow-wrap: anywhere; }
.common-comment-list { display: grid; gap: 14px; margin-top: 20px; }
.common-comment { padding: 16px; border-left: 2px solid rgba(57,169,255,.32); background: rgba(255,255,255,.025); }
.common-comment small { margin-left: 8px; color: var(--muted); }
.common-comment p { overflow-wrap: anywhere; }
.common-reply { margin: 14px 0 0 22px; }
.common-reply-form { display: grid; gap: 8px; margin-top: 12px; }
.errorlist { margin: 4px 0 0; padding-left: 18px; color: #ff9b9b; }

@media (max-width: 640px) {
    .common-shell { width: min(100% - 20px, 1200px); }
    .common-page-head .common-button { margin-top: 8px; }
    .common-reply { margin-left: 10px; }
}

/* CADDY01 visual QA: navigation and Commons surfaces */
.navigation-menu { min-width: 0; }
.navigation-menu > summary { display: none; cursor: pointer; padding: 14px; font-weight: 700; }
.main-content, .common-shell, .common-panel { min-width: 0; }
.common-shell { max-width: 1200px; margin: 0 auto 40px; }
.common-hero, .common-page-head { padding: 28px; margin-bottom: 24px; border: 1px solid #263745; border-radius: 16px; background: linear-gradient(120deg,#122737,#10161e); }
.common-hero h1, .common-page-head h1 { margin: 10px 0; }
.common-kicker { color: #8dcfff; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.common-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 24px; }
.common-stats > div { display: grid; gap: 6px; padding: 16px; background: #ffffff08; border-radius: 10px; }
.common-stats strong { font-size: 26px; }
.common-stats span, .common-meta { color: #a9b8c8; font-size: 13px; }
.common-section, .common-panel { margin-bottom: 24px; }
.common-section-head { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:16px; }
.common-card-grid, .common-game-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.common-feature-card, .common-game-card, .common-feed-card, .common-empty { padding:22px; border:1px solid #263745; border-radius:12px; background:#101820; overflow-wrap:anywhere; }
.common-feed-card { margin-bottom:14px; }
.common-empty-large { grid-column:1 / -1; padding:32px; color:#a9b8c8; }
.common-game-card { display:flex; gap:16px; }
.common-game-mark { flex:0 0 48px; height:48px; display:grid; place-items:center; background:#203e55; border-radius:10px; font-weight:800; }
.common-game-card h3 { margin:0; }
.common-tag, .common-status { display:inline-block; padding:5px 9px; margin:0 6px 8px 0; background:#203547; color:#a9daff; border-radius:6px; font-size:12px; }
.common-button { display:inline-flex; align-items:center; justify-content:center; padding:10px 16px; border:1px solid #365267; border-radius:8px; background:#162837; color:#edf6ff; font:inherit; text-decoration:none; cursor:pointer; }
.common-button.primary { background:#238ada; color:white; }
.common-feature-card h2, .common-feed-card h2 { overflow-wrap:anywhere; }
@media (max-width:900px) {
 .app-shell { display:block; }
 .navigation-menu > summary { display:list-item; margin-left:18px; }
 .navigation-menu { border-bottom:1px solid #263745; }
 .navigation-menu[open] .sidebar-nav { max-height:55vh; overflow-y:auto; }
 .topbar { position:relative; }
 .account-nav { flex-wrap:wrap; justify-content:flex-end; min-width:0; }
}
@media (max-width:640px) {
 .common-card-grid, .common-game-grid { grid-template-columns:minmax(0,1fr); }
 .common-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .common-hero, .common-page-head { padding:20px; }
 .common-shell { width:100%; }
 .brand-copy { min-width:0; }
 .brand-copy strong { font-size:12px; }
 .topbar { gap:10px; grid-template-columns:minmax(0,1fr) auto; }
 .account-nav { max-width:110px; }
}
/* Allow the mobile search row to occupy its own space above navigation. */
@media (max-width:900px) { .topbar { height:auto !important; grid-template-rows:auto auto; padding-top:14px; padding-bottom:14px; } .search-shell { grid-row:2; } .account-nav { grid-column:2; grid-row:1; } }
