:root {
    --bg: #11171b;
    --bg-deep: #0c1114;
    --panel: #182126;
    --panel-soft: #1d282e;
    --panel-hover: #223038;

    --text: #f1ede4;
    --text-soft: #d7d4cb;
    --muted: #a6adab;
    --muted-2: #7f8a89;

    --brass: #c39a62;
    --brass-light: #deb87f;
    --brass-dark: #80613d;
    --copper: #567d84;
    --copper-bright: #6f99a0;
    --flag: #98534d;
    --flag-soft: #6d3d39;

    --line: rgba(195, 154, 98, .16);
    --line-soft: rgba(241, 237, 228, .075);
    --danger: #d37c74;
    --success: #82aa9d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 84% -8%, rgba(86,125,132,.12), transparent 30rem),
        radial-gradient(circle at -6% 30%, rgba(152,83,77,.055), transparent 25rem),
        linear-gradient(180deg, #11171b 0%, #0f1519 58%, #0c1215 100%);
    font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.page-shell { max-width: 1480px; margin-inline: auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 1px solid var(--line);
    background: rgba(17,23,27,.95);
    backdrop-filter: blur(15px);
}

.topbar {
    min-height: 66px;
    display: grid;
    grid-template-columns: auto minmax(260px, 650px) auto;
    align-items: center;
    gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand-emblem {
    position: relative;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(182,142,85,.55);
    border-radius: 50%;
    background: linear-gradient(145deg, #d2ad76, #8f6942);
    box-shadow: inset 0 0 0 4px rgba(17,23,27,.28);
}
.brand-emblem::before,
.brand-emblem::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 2px;
    background: rgba(16,22,22,.72);
}
.brand-emblem::before { transform: rotate(45deg); }
.brand-emblem::after { transform: rotate(-45deg); }
.brand-play {
    position: relative;
    z-index: 2;
    width: 0;
    height: 0;
    margin-left: 3px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid #151b1e;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { color: var(--text); font-size: 1.08rem; font-weight: 800; letter-spacing: .12em; }
.brand-copy small { margin-top: .28rem; color: var(--brass); font-size: .62rem; font-weight: 700; letter-spacing: .10em; }

.search-box {
    height: 40px;
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(182,142,85,.16);
    border-radius: 7px;
    background: #151e23;
}
.search-box:focus-within { border-color: rgba(121,164,156,.52); box-shadow: 0 0 0 3px rgba(100,138,131,.08); }
.search-box input { min-width: 0; flex: 1; padding: 0 .9rem; border: 0; outline: 0; color: var(--text); background: transparent; font-size: .94rem; }
.search-box input::placeholder { color: var(--muted-2); }
.search-box button { width: 46px; border: 0; border-left: 1px solid var(--line-soft); background: #1c292f; }
.search-icon { position: relative; display: inline-block; width: 14px; height: 14px; border: 2px solid #aab7b3; border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; right: -5px; bottom: -2px; width: 6px; height: 2px; transform: rotate(45deg); background: #aab7b3; }

.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: .85rem; }
.signin-link, .button-link { color: #c2c7c4; font-size: .90rem; font-weight: 700; }
.button-link { padding: 0; border: 0; background: transparent; }
.button-link:hover, .signin-link:hover { color: var(--text); }
.welcome-user { color: var(--muted); font-size: .86rem; white-space: nowrap; }
.welcome-user strong { color: var(--text-soft); }

.btn-brass {
    --bs-btn-color: #151a18;
    --bs-btn-bg: var(--brass);
    --bs-btn-border-color: #c19b64;
    --bs-btn-hover-color: #111614;
    --bs-btn-hover-bg: var(--brass-light);
    --bs-btn-hover-border-color: #d0b078;
    --bs-btn-active-color: #111614;
    --bs-btn-active-bg: #a77f49;
    --bs-btn-active-border-color: #b48c53;
    border-radius: 6px;
    font-weight: 800;
}
.mobile-search { display: none; margin-bottom: .65rem; }

.home-shell { padding: 1.15rem 0 0; }
.intro-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        radial-gradient(circle at 93% 20%, rgba(152,83,77,.08), transparent 17rem),
        linear-gradient(115deg, rgba(86,125,132,.10), rgba(24,33,38,.97) 38%, rgba(24,33,38,.97));
}
.intro-copy { min-width: 0; }
.intro-kicker, .mini-kicker { display: block; margin-bottom: .25rem; color: var(--brass); font-size: .68rem; font-weight: 800; letter-spacing: .15em; }
.intro-strip h1 { margin: 0; color: var(--text); font-size: clamp(1.75rem, 3vw, 2.65rem); font-weight: 800; letter-spacing: -.035em; }
.intro-strip p { max-width: 760px; margin: .38rem 0 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.intro-actions { display: flex; flex: 0 0 auto; gap: .55rem; }
.intro-actions .btn { min-width: 100px; font-size: .88rem; font-weight: 800; }
.btn-darkline { color: var(--text-soft); border: 1px solid rgba(233,229,217,.09); border-radius: 6px; background: rgba(255,255,255,.02); }
.btn-darkline:hover { color: var(--text); border-color: rgba(121,164,156,.3); background: rgba(100,138,131,.07); }

.category-bar { display: flex; gap: .45rem; overflow-x: auto; margin: .85rem 0 .95rem; padding-bottom: .1rem; scrollbar-width: none; }
.category-bar::-webkit-scrollbar { display: none; }
.category-bar a { flex: 0 0 auto; padding: .42rem .72rem; border: 1px solid var(--line-soft); border-radius: 6px; color: #aab1af; background: #171f24; font-size: .82rem; font-weight: 700; }
.category-bar a:hover { color: var(--text); border-color: rgba(121,164,156,.3); background: #1c292e; }
.category-bar a.active { color: #101513; border-color: var(--brass); background: var(--brass); }

.featured-row { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .65fr); gap: 1rem; }
.featured-card, .creator-panel { border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, #1a2429, #151e23); }
.featured-card { overflow: hidden; }
.featured-art {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 7.2;
    background:
        radial-gradient(circle at 78% 22%, rgba(201,167,110,.15), transparent 16%),
        linear-gradient(180deg, #244a4b 0%, #173538 56%, #0d1d20 100%);
}
.featured-art::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: -18%; height: 45%; border-radius: 50% 48% 0 0; background: #113033; transform: rotate(-2deg); }
.sun-disc { position: absolute; right: 14%; top: 16%; width: 58px; height: 58px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #dec79d, #a98555 72%, #61503a); opacity: .9; }
.sea-lines { position: absolute; inset: auto -4% 2% -4%; z-index: 2; height: 28%; opacity: .28; background: repeating-linear-gradient(173deg, rgba(121,164,156,.28) 0 2px, transparent 2px 14px); }
.featured-badge { position: absolute; z-index: 7; top: 10px; left: 10px; padding: .35rem .5rem; border: 1px solid rgba(201,167,110,.25); border-radius: 4px; color: #141918; background: var(--brass); font-size: .68rem; font-weight: 800; letter-spacing: .10em; }

.ship-mark { position: absolute; z-index: 4; left: 51%; bottom: 23%; width: 115px; height: 88px; }
.ship-mast { position: absolute; left: 55px; top: 5px; width: 3px; height: 63px; background: #0f1515; }
.ship-sail { position: absolute; background: #111818; clip-path: polygon(0 0, 100% 20%, 0 100%); }
.sail-left { left: 18px; top: 14px; width: 34px; height: 36px; transform: scaleX(-1); }
.sail-right { left: 59px; top: 12px; width: 42px; height: 39px; }
.ship-hull { position: absolute; left: 15px; bottom: 10px; width: 91px; height: 20px; border-radius: 8% 8% 60% 42%; background: #0d1314; transform: skewX(-12deg); }
.duration { position: absolute; z-index: 8; right: 7px; bottom: 7px; padding: .14rem .32rem; border-radius: 3px; color: #f4f1e9; background: rgba(5,9,10,.82); font-size: .72rem; font-weight: 800; }
.play-circle { position: absolute; z-index: 7; top: 50%; left: 50%; width: 54px; height: 54px; transform: translate(-50%, -50%); border: 1px solid rgba(201,167,110,.5); border-radius: 50%; background: rgba(8,14,16,.78); }
.play-circle span { position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 13px solid var(--brass-light); }

.featured-info { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: .65rem; align-items: center; padding: .72rem .8rem; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line-soft); border-radius: 50%; color: var(--text); background: #415057; font-size: .82rem; font-weight: 800; }
.avatar-brass { background: #7b6348; }
.avatar-red { background: #744743; }
.avatar-sea { background: #41676a; }
.avatar-ink { background: #343f44; }
.featured-copy { min-width: 0; }
.featured-copy h2 { margin: 0 0 .15rem; overflow: hidden; color: var(--text); font-size: .98rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.featured-copy p { margin: 0; color: var(--muted-2); font-size: .78rem; }
.more-btn { border: 0; color: #899291; background: transparent; font-size: .85rem; letter-spacing: .05em; }

.creator-panel { display: flex; flex-direction: column; justify-content: space-between; padding: 1rem; background: radial-gradient(circle at 100% 0%, rgba(152,83,77,.075), transparent 12rem), linear-gradient(180deg, #1a2429, #151e23); }
.creator-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.creator-panel h2 { margin: 0; color: var(--text); font-size: 1.35rem; font-weight: 800; }
.creator-panel p { margin: .7rem 0 .9rem; color: var(--muted); font-size: .85rem; line-height: 1.55; }
.coin-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(182,142,85,.30); border-radius: 50%; color: var(--brass-light); background: rgba(182,142,85,.06); }
.creator-steps { display: grid; grid-template-columns: repeat(3,1fr); overflow: hidden; border: 1px solid rgba(182,142,85,.12); border-radius: 6px; }
.creator-steps div { padding: .68rem .6rem; border-right: 1px solid rgba(182,142,85,.09); }
.creator-steps div:last-child { border-right: 0; }
.creator-steps strong, .creator-steps span { display: block; }
.creator-steps strong { color: var(--flag); font-size: .70rem; }
.creator-steps span { margin-top: .15rem; color: var(--text-soft); font-size: .82rem; font-weight: 700; }
.creator-link { margin-top: .9rem; color: var(--brass-light); font-size: .82rem; font-weight: 800; }
.creator-link-button { padding: 0; border: 0; text-align: left; background: transparent; }

.video-feed { padding: 1.4rem 0 2rem; }
.feed-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.feed-heading h2 { margin: 0; color: var(--text); font-size: 1.32rem; font-weight: 800; }
.feed-heading > a { color: var(--brass); font-size: .80rem; font-weight: 700; }
.video-card { height: 100%; }
.video-thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--line-soft); border-radius: 6px; transition: transform .15s ease, border-color .15s ease; }
.video-card:hover .video-thumb { transform: translateY(-2px); border-color: rgba(121,164,156,.28); }
.video-thumb::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 20%, rgba(201,167,110,.10), transparent 22%), linear-gradient(180deg, transparent 42%, rgba(3,8,9,.52) 100%); }
.thumb-1 { background: linear-gradient(135deg, #26363d, #365c61 58%, #111c21); }
.thumb-2 { background: linear-gradient(135deg, #5d4444, #28363c 62%, #75634c); }
.thumb-3 { background: linear-gradient(135deg, #426d70, #15252b 55%, #867052); }
.thumb-4 { background: linear-gradient(135deg, #39484d, #654846 56%, #31565a); }
.thumb-5 { background: linear-gradient(135deg, #725049, #203037 60%, #3a6062); }
.thumb-6 { background: linear-gradient(135deg, #386568, #38454a 56%, #8a704e); }
.thumb-7 { background: linear-gradient(135deg, #826c4f, #26353b 58%, #416a6b); }
.thumb-8 { background: linear-gradient(135deg, #354348, #3a6365 58%, #684947); }
.thumb-symbol { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); color: rgba(211,183,130,.74); font-size: clamp(1.8rem, 4vw, 3rem); text-shadow: 0 5px 18px rgba(0,0,0,.28); }
.mini-play { position: absolute; z-index: 5; left: 8px; bottom: 7px; width: 22px; height: 22px; border: 1px solid rgba(255,255,255,.20); border-radius: 50%; background: rgba(7,12,13,.55); }
.mini-play::after { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid var(--text); }
.video-meta { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: .58rem; align-items: start; padding-top: .55rem; }
.video-meta .avatar { width: 31px; height: 31px; font-size: .76rem; }
.video-copy { min-width: 0; }
.video-copy h3 { display: -webkit-box; margin: 0 0 .14rem; overflow: hidden; color: var(--text-soft); font-size: .88rem; font-weight: 700; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.video-copy p, .video-copy small { display: block; margin: 0; color: var(--muted-2); font-size: .75rem; }
.video-copy small { margin-top: .06rem; }

.site-footer { margin-top: .75rem; padding: 1rem 0; border-top: 1px solid var(--line-soft); background: var(--bg-deep); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--muted-2); font-size: .76rem; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: .9rem; }
.footer-row a:hover { color: var(--brass-light); }


.auth-modal .modal-dialog { max-width: 590px; }
.auth-modal .modal-content {
    padding: 1.4rem;
    border: 1px solid rgba(195,154,98,.20);
    border-radius: 14px;
    background:
        radial-gradient(circle at 100% 0%, rgba(86,125,132,.08), transparent 15rem),
        linear-gradient(180deg, #1b252b, #141c21);
    box-shadow: 0 32px 90px rgba(0,0,0,.38);
}
.auth-modal .btn-close { filter: invert(1) grayscale(1); opacity: .62; }
.auth-modal-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.auth-modal-top h2 { margin: 0; color: var(--text); font-size: 1.75rem; font-weight: 800; letter-spacing: -.025em; }
.auth-intro { margin: .35rem 0 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .4rem;
    margin: 1.15rem 0 1.2rem;
    padding: .35rem;
    border: 1px solid var(--line-soft);
    border-radius: 9px;
    background: #11191d;
}
.auth-tab {
    min-height: 42px;
    padding: .58rem .8rem;
    border: 0;
    border-radius: 7px;
    color: var(--muted);
    background: transparent;
    font-size: .9rem;
    font-weight: 700;
}
.auth-tab.active {
    color: #171b1a;
    background: linear-gradient(180deg, var(--brass-light), var(--brass));
    box-shadow: 0 5px 14px rgba(0,0,0,.16);
}
.auth-form { display: grid; gap: 1rem; }
.form-field label {
    display: block;
    margin: 0;
    color: var(--text-soft);
    font-size: .86rem;
    font-weight: 700;
}
.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .4rem;
}
.label-row > span {
    color: var(--muted-2);
    font-size: .74rem;
    font-weight: 600;
}
.auth-form .form-control {
    min-height: 48px;
    padding: .7rem .85rem;
    border: 1px solid rgba(241,237,228,.10);
    border-radius: 8px;
    color: var(--text);
    background: #111a1f;
    font-size: .95rem;
    box-shadow: none;
}
.auth-form .form-control::placeholder { color: #707a7a; }
.auth-form .form-control:focus {
    border-color: rgba(111,153,160,.62);
    background: #141f24;
    box-shadow: 0 0 0 3px rgba(86,125,132,.09);
}
.auth-form .form-control.is-valid {
    border-color: rgba(130,170,157,.58);
    background-image: none;
}
.auth-form .form-control.is-invalid {
    border-color: rgba(211,124,116,.62);
    background-image: none;
}
.field-status {
    display: block;
    min-height: 1.05rem;
    margin-top: .32rem;
    color: var(--muted-2);
    font-size: .76rem;
    line-height: 1.35;
}
.field-status.is-good { color: var(--success); }
.field-status.is-bad { color: var(--danger); }

.password-control { position: relative; }
.password-control .form-control { padding-right: 4.5rem; }
.password-toggle {
    position: absolute;
    top: 50%;
    right: .55rem;
    transform: translateY(-50%);
    min-width: 48px;
    padding: .25rem .45rem;
    border: 0;
    border-radius: 5px;
    color: var(--brass-light);
    background: transparent;
    font-size: .76rem;
    font-weight: 700;
}
.password-toggle:hover { background: rgba(195,154,98,.08); }

.password-meter {
    height: 5px;
    margin-top: .45rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.055);
}
.password-meter span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--danger);
    transition: width .18s ease, background .18s ease;
}
.password-meter .strength-1 { width: 25%; background: var(--danger); }
.password-meter .strength-2 { width: 50%; background: #c38c63; }
.password-meter .strength-3 { width: 75%; background: var(--brass); }
.password-meter .strength-4 { width: 100%; background: var(--success); }

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.45;
    cursor: pointer;
}
.terms-check input {
    width: 17px;
    height: 17px;
    margin-top: .12rem;
    accent-color: var(--brass);
}
.terms-check a { color: var(--brass-light); }
.terms-check a:hover { text-decoration: underline; }

.auth-security-note {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .68rem .75rem;
    border: 1px solid rgba(86,125,132,.14);
    border-radius: 8px;
    color: #98a5a3;
    background: rgba(86,125,132,.05);
    font-size: .76rem;
    line-height: 1.4;
}
.security-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--copper-bright);
    box-shadow: 0 0 0 4px rgba(111,153,160,.08);
}
.auth-submit {
    min-height: 48px;
    margin-top: .05rem;
    font-size: .92rem;
    font-weight: 800;
}
.auth-submit:disabled { opacity: .62; }
.auth-submit.is-loading { cursor: wait; }

.auth-switch-copy {
    margin: -.15rem 0 0;
    color: var(--muted);
    text-align: center;
    font-size: .8rem;
}
.auth-switch-copy button {
    padding: 0;
    border: 0;
    color: var(--brass-light);
    background: transparent;
    font-weight: 700;
}

.tubirate-toasts {
    z-index: 2000;
    width: min(390px, calc(100vw - 1rem));
}
.tubirate-toast {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    background: #182126;
    box-shadow: 0 18px 45px rgba(0,0,0,.32);
}
.tubirate-toast .toast-header {
    padding: .65rem .8rem;
    border-bottom: 1px solid var(--line-soft);
    color: var(--text);
    background: #1b252b;
    font-size: .82rem;
}
.tubirate-toast .toast-body {
    padding: .78rem .85rem;
    color: var(--text-soft);
    font-size: .84rem;
    line-height: 1.45;
}
.tubirate-toast .btn-close {
    filter: invert(1) grayscale(1);
    opacity: .55;
}
.toast-dot {
    width: 8px;
    height: 8px;
    margin-right: .55rem;
    border-radius: 50%;
    background: var(--copper-bright);
}
.toast-success { border-color: rgba(130,170,157,.25); }
.toast-success .toast-dot { background: var(--success); }
.toast-error { border-color: rgba(211,124,116,.28); }
.toast-error .toast-dot { background: var(--danger); }

@media (max-width: 991.98px) {
    .topbar { grid-template-columns: auto 1fr auto; }
    .topbar > .search-box { display: none; }
    .mobile-search { display: flex; }
    .featured-row { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
    .page-shell { padding-inline: 14px; }
    .brand-copy small { display: none; }
    .brand-emblem { width: 34px; height: 34px; }
    .topbar { min-height: 60px; gap: .75rem; }
    .signin-link { display: none; }
    .welcome-user { display: none; }
    .intro-strip { align-items: flex-start; flex-direction: column; gap: .8rem; }
    .intro-actions { width: 100%; }
    .intro-actions .btn { flex: 1; }
    .featured-art { aspect-ratio: 16 / 8.6; }
    .footer-row { align-items: flex-start; flex-direction: column; }
    .form-row-two { grid-template-columns: 1fr; }
}


/* V0.3 — email verification + channel/profile */
.verification-bar {
    border-bottom: 1px solid rgba(195,154,98,.16);
    background: #171f23;
}
.verification-inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    color: var(--muted);
    font-size: .84rem;
}
.verification-inner strong { color: var(--text-soft); }
.verification-resend {
    padding: .28rem .62rem;
    border: 1px solid rgba(195,154,98,.30);
    border-radius: 6px;
    color: var(--brass-light);
    background: rgba(195,154,98,.055);
    font-size: .78rem;
    font-weight: 700;
}
.verification-resend:hover:not(:disabled) { background: rgba(195,154,98,.10); }
.verification-resend:disabled { opacity: .58; cursor: wait; }
.toast-warning { border-color: rgba(195,154,98,.28); }
.toast-warning .toast-dot { background: var(--brass-light); }

.channel-page { padding: 1.1rem 0 2rem; }
.channel-hero {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: linear-gradient(180deg, var(--panel-soft), var(--panel));
}
.channel-banner {
    position: relative;
    min-height: clamp(180px, 24vw, 310px);
    background-position: center;
    background-size: cover;
    border-bottom: 1px solid var(--line-soft);
}
.channel-banner-default {
    background:
        radial-gradient(circle at 76% 24%, rgba(222,184,127,.17), transparent 10rem),
        linear-gradient(160deg, #315b61 0%, #213f46 42%, #1a2c32 72%, #151f24 100%);
}
.channel-banner-default::after {
    content: '';
    position: absolute;
    inset: auto -5% -30% -5%;
    height: 52%;
    border-radius: 50% 50% 0 0;
    background: rgba(16,45,51,.64);
    transform: rotate(-2deg);
}
.channel-banner-mark {
    position: absolute;
    right: 7%;
    top: 50%;
    width: 112px;
    height: 112px;
    transform: translateY(-50%);
    border: 1px solid rgba(222,184,127,.18);
    border-radius: 50%;
    opacity: .55;
}
.channel-banner-mark::before,
.channel-banner-mark::after {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    width: 74px; height: 1px;
    background: rgba(222,184,127,.34);
    transform-origin: center;
}
.channel-banner-mark::before { transform: translate(-50%,-50%) rotate(45deg); }
.channel-banner-mark::after { transform: translate(-50%,-50%) rotate(-45deg); }
.channel-banner-mark span {
    position: absolute;
    inset: 24px;
    border: 1px solid rgba(222,184,127,.30);
    border-radius: 50%;
}
.channel-identity {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    gap: 1.1rem;
    align-items: start;
    padding: 1rem 1.15rem 1.15rem;
}
.channel-avatar-wrap { margin-top: -48px; position: relative; z-index: 3; }
.channel-avatar {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    border: 4px solid var(--panel);
    border-radius: 50%;
    object-fit: cover;
    background: #253238;
    box-shadow: 0 8px 28px rgba(0,0,0,.28);
}
.channel-avatar-fallback {
    color: var(--text);
    background: linear-gradient(145deg, #6f99a0, #475f65);
    font-size: 1.8rem;
    font-weight: 800;
}
.channel-title-line { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.channel-title-line h1 { margin: 0; color: var(--text); font-size: clamp(1.45rem, 2.8vw, 2rem); font-weight: 800; letter-spacing: -.025em; }
.verified-mark {
    width: 21px; height: 21px;
    display: inline-grid; place-items: center;
    border-radius: 50%;
    color: #121817;
    background: var(--success);
    font-size: .72rem; font-weight: 800;
}
.channel-handle { margin-top: .14rem; color: var(--brass-light); font-size: .86rem; font-weight: 700; }
.channel-bio { max-width: 820px; margin: .6rem 0 .45rem; color: var(--text-soft); font-size: .9rem; line-height: 1.58; }
.channel-bio-empty { color: var(--muted-2); }
.channel-meta { color: var(--muted-2); font-size: .78rem; }
.channel-actions { display: flex; justify-content: flex-end; }
.channel-actions .btn { white-space: nowrap; }
.channel-tabs {
    display: flex; gap: 1.35rem;
    margin-top: .8rem;
    padding: 0 .2rem;
    border-bottom: 1px solid var(--line-soft);
}
.channel-tabs a {
    position: relative;
    padding: .72rem .25rem;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 700;
}
.channel-tabs a.active, .channel-tabs a:hover { color: var(--text); }
.channel-tabs a.active::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: -1px;
    height: 2px; background: var(--brass);
}
.channel-content { padding-top: .9rem; }
.empty-state {
    min-height: 250px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 2rem;
    border: 1px dashed rgba(241,237,228,.10);
    border-radius: 10px;
    color: var(--muted);
    background: rgba(24,33,38,.54);
    text-align: center;
}
.empty-state h1, .empty-state h2 { margin: .65rem 0 .28rem; color: var(--text-soft); font-weight: 800; }
.empty-state h2 { font-size: 1.2rem; }
.empty-state p { margin: 0 0 .9rem; font-size: .86rem; }
.empty-play {
    position: relative;
    width: 52px; height: 52px;
    display: grid; place-items: center;
    border: 1px solid rgba(195,154,98,.30);
    border-radius: 50%;
    background: rgba(195,154,98,.05);
}
.empty-play span { width: 0; height: 0; margin-left: 3px; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid var(--brass-light); }
.channel-not-found { margin-top: 1rem; min-height: 420px; }

.channel-edit-modal .modal-content {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #182126;
    box-shadow: 0 28px 80px rgba(0,0,0,.46);
}
.channel-edit-form { display: grid; gap: 1rem; padding: 0 1.15rem 1.15rem; }
.channel-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.channel-edit-form label { display: block; margin-bottom: .4rem; color: var(--text-soft); font-size: .83rem; font-weight: 700; }
.channel-edit-form .form-control {
    min-height: 46px;
    border: 1px solid rgba(241,237,228,.10);
    border-radius: 8px;
    color: var(--text);
    background: #111a1f;
    font-size: .92rem;
    box-shadow: none;
}
.channel-edit-form .form-control:focus { border-color: rgba(111,153,160,.62); background: #141f24; box-shadow: 0 0 0 3px rgba(86,125,132,.09); }
.channel-edit-form .form-control.is-valid { border-color: rgba(130,170,157,.58); background-image: none; }
.channel-edit-form .form-control.is-invalid { border-color: rgba(211,124,116,.62); background-image: none; }
.channel-bio-input { min-height: 120px !important; resize: vertical; }
.handle-input { display: flex; align-items: stretch; }
.handle-input > span {
    display: grid; place-items: center;
    min-width: 42px;
    border: 1px solid rgba(241,237,228,.10);
    border-right: 0;
    border-radius: 8px 0 0 8px;
    color: var(--brass-light);
    background: #151e23;
    font-weight: 800;
}
.handle-input .form-control { border-radius: 0 8px 8px 0; }
.file-control { padding: .62rem .7rem; }
.file-control::file-selector-button {
    margin: -.62rem .8rem -.62rem -.7rem;
    padding: .72rem .75rem;
    border: 0;
    border-right: 1px solid var(--line-soft);
    color: var(--text-soft);
    background: #1b272c;
}
.channel-save-btn { min-height: 46px; justify-self: end; min-width: 150px; }

@media (max-width: 767.98px) {
    .verification-inner { align-items: flex-start; flex-direction: column; gap: .45rem; padding-top: .55rem; padding-bottom: .55rem; }
    .channel-identity { grid-template-columns: auto minmax(0,1fr); }
    .channel-actions { grid-column: 1 / -1; width: 100%; }
    .channel-actions .btn { width: 100%; }
    .channel-avatar { width: 82px; height: 82px; }
    .channel-avatar-wrap { margin-top: -38px; }
    .channel-edit-grid { grid-template-columns: 1fr; }
    .channel-save-btn { width: 100%; }
}

/* V0.3.1 — unified video homepage + refined authentication */
.home-shell { padding-top: .95rem; }
.home-intro {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: .9rem 1rem;
    border: 1px solid var(--line-soft);
    border-radius: 9px;
    background:
        radial-gradient(circle at 92% 20%, rgba(152,83,77,.065), transparent 15rem),
        linear-gradient(120deg, rgba(86,125,132,.075), rgba(24,33,38,.96) 40%, rgba(24,33,38,.96));
}
.home-intro-copy { min-width: 0; }
.home-intro h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -.025em;
}
.home-intro p {
    margin: .25rem 0 0;
    color: var(--muted);
    font-size: .90rem;
}
.home-intro p strong { color: var(--text-soft); font-weight: 800; }
.home-intro-actions { display: flex; flex: 0 0 auto; gap: .55rem; }
.home-intro-actions .btn { font-size: .84rem; }

.home-video-feed { padding-top: .45rem; }
.feed-heading { align-items: center; margin-bottom: 1rem; }
.feed-heading > div > span { display: block; margin-top: .18rem; color: var(--muted-2); font-size: .80rem; }
.feed-heading h2 { font-size: 1.42rem; }
.feed-heading > a { font-size: .84rem; }
.video-card { min-width: 0; }
.video-thumb { display: block; }
.video-badge {
    position: absolute;
    z-index: 7;
    top: 8px;
    left: 8px;
    padding: .28rem .48rem;
    border: 1px solid rgba(222,184,127,.24);
    border-radius: 5px;
    color: #161b19;
    background: var(--brass-light);
    font-size: .70rem;
    font-weight: 800;
}
.video-copy h3 { font-size: .94rem; line-height: 1.32; }
.video-copy p,
.video-copy small { font-size: .79rem; line-height: 1.35; }
.video-copy h3 a:hover,
.video-copy p a:hover { color: var(--brass-light); }
.video-meta .avatar { width: 34px; height: 34px; font-size: .80rem; }
.more-btn { font-size: 1rem; }
.duration { font-size: .76rem; }
.category-bar a { font-size: .86rem; padding: .46rem .78rem; }
.site-footer,
.footer-row { font-size: .80rem; }

.thumb-9 { background: linear-gradient(135deg, #536a70, #72514d 54%, #2c4248); }
.thumb-10 { background: linear-gradient(135deg, #31565d, #27373d 58%, #866a47); }
.thumb-11 { background: linear-gradient(135deg, #684947, #3a5055 56%, #735f49); }
.thumb-12 { background: linear-gradient(135deg, #49666a, #2c3940 58%, #7e6749); }

/* Wider, calmer auth card. One font, larger readable copy. */
.auth-modal .modal-dialog { max-width: 880px; }
.auth-modal .modal-content {
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(195,154,98,.20);
    border-radius: 16px;
    background: #151e23;
    box-shadow: 0 36px 100px rgba(0,0,0,.44);
}
.auth-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 560px;
}
.auth-side {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    overflow: hidden;
    border-right: 1px solid var(--line);
    background:
        radial-gradient(circle at 15% 92%, rgba(195,154,98,.11), transparent 14rem),
        radial-gradient(circle at 105% 8%, rgba(86,125,132,.22), transparent 18rem),
        linear-gradient(165deg, #1c2a30, #121a1e 68%);
}
.auth-side::after {
    content: "";
    position: absolute;
    width: 310px;
    height: 310px;
    right: -185px;
    bottom: -170px;
    border: 1px solid rgba(222,184,127,.09);
    border-radius: 50%;
    box-shadow:
        0 0 0 38px rgba(222,184,127,.025),
        0 0 0 82px rgba(222,184,127,.018);
}
.auth-side-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: .7rem;
}
.auth-side-brand > div { display: flex; flex-direction: column; }
.auth-side-brand strong { color: var(--text); font-size: 1.15rem; font-weight: 800; letter-spacing: .02em; }
.auth-side-brand small { margin-top: .15rem; color: var(--brass); font-size: .65rem; font-weight: 700; letter-spacing: .08em; }
.auth-side-mark {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(222,184,127,.38);
    border-radius: 50%;
    background: linear-gradient(145deg, #d0aa73, #8c6943);
}
.auth-side-mark::before,
.auth-side-mark::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 2px;
    background: rgba(16,22,22,.72);
}
.auth-side-mark::before { transform: rotate(45deg); }
.auth-side-mark::after { transform: rotate(-45deg); }
.auth-side-mark span {
    position: relative;
    z-index: 2;
    margin-left: 2px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid #151b1e;
}
.auth-side-copy { position: relative; z-index: 1; margin-top: 4rem; }
.auth-side-copy h3 { margin: .35rem 0 .65rem; color: var(--text); font-size: 1.55rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.12; }
.auth-side-copy p { margin: 0; color: var(--muted); font-size: .90rem; line-height: 1.6; }
.channel-url-preview {
    position: relative;
    z-index: 1;
    margin-top: 1.4rem;
    padding: .8rem;
    border: 1px solid rgba(195,154,98,.16);
    border-radius: 9px;
    background: rgba(12,17,20,.38);
}
.channel-url-preview span { display: block; margin-bottom: .3rem; color: var(--muted-2); font-size: .74rem; font-weight: 700; }
.channel-url-preview strong { display: block; overflow: hidden; color: var(--brass-light); font-size: .78rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.auth-side-steps {
    position: relative;
    z-index: 1;
    display: grid;
    gap: .55rem;
    margin-top: auto;
    padding-top: 1.5rem;
}
.auth-side-steps span { color: var(--text-soft); font-size: .80rem; font-weight: 600; }
.auth-side-steps b { display: inline-block; width: 28px; color: var(--flag); font-size: .72rem; }

.auth-main { min-width: 0; padding: 1.45rem 1.55rem 1.55rem; }
.auth-modal-top h2 { font-size: 1.72rem; }
.auth-intro { font-size: .96rem; }
.auth-tabs { margin: 1rem 0 1.05rem; }
.auth-tab { min-height: 44px; font-size: .94rem; }
.auth-form { gap: .82rem; }
.form-row-two { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.form-field label { font-size: .91rem; }
.label-row > span { font-size: .79rem; }
.auth-form .form-control { min-height: 50px; font-size: .98rem; }
.field-status { min-height: 1rem; font-size: .80rem; }
.password-toggle { font-size: .80rem; }
.terms-check { font-size: .86rem; }
.auth-consent-stack { display: grid; gap: .48rem; }
.terms-status { min-height: 0; margin-top: -.1rem; }
.terms-status:empty { display: none; }
.auth-security-note { padding: .62rem .72rem; font-size: .80rem; }
.auth-submit { min-height: 50px; font-size: .96rem; }
.auth-switch-copy { font-size: .84rem; }
.login-email-note {
    padding: .62rem .72rem;
    border: 1px solid rgba(195,154,98,.13);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(195,154,98,.035);
    font-size: .80rem;
}
.inline-channel-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .42rem;
    padding: .48rem .58rem;
    border: 1px solid rgba(86,125,132,.13);
    border-radius: 7px;
    background: rgba(86,125,132,.045);
}
.inline-channel-preview span { color: var(--muted-2); font-size: .75rem; font-weight: 700; }
.inline-channel-preview strong { min-width: 0; overflow: hidden; color: #aebbb8; font-size: .76rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.inline-channel-preview b { color: var(--brass-light); font-weight: 700; }

.verification-panel {
    padding: 1.35rem 0 .4rem;
    text-align: center;
}
.verification-seal {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
    border: 1px solid rgba(130,170,157,.32);
    border-radius: 50%;
    color: var(--success);
    background: rgba(130,170,157,.07);
    font-size: 1.35rem;
    font-weight: 800;
}
.verification-panel h3 { margin: .2rem 0 .55rem; color: var(--text); font-size: 1.45rem; font-weight: 800; }
.verification-panel p { max-width: 460px; margin: 0 auto 1rem; color: var(--muted); font-size: .90rem; line-height: 1.6; }
.verification-panel p strong { color: var(--text-soft); }
.verification-back { margin-top: .8rem; padding: .25rem .5rem; border: 0; color: var(--muted); background: transparent; font-size: .82rem; font-weight: 700; }
.verification-back:hover { color: var(--text); }

.tubirate-toasts { top: 70px !important; }
.tubirate-toast .toast-header { font-size: .88rem; }
.tubirate-toast .toast-body { font-size: .90rem; }

@media (max-width: 991.98px) {
    .auth-modal .modal-dialog { max-width: 720px; }
    .auth-shell { grid-template-columns: 230px minmax(0, 1fr); }
    .auth-side { padding: 1.25rem; }
    .auth-side-copy { margin-top: 3rem; }
}

@media (max-width: 767.98px) {
    .home-intro { align-items: flex-start; flex-direction: column; gap: .7rem; }
    .home-intro-actions { width: 100%; }
    .home-intro-actions .btn { flex: 1; }
    .auth-shell { display: block; min-height: auto; }
    .auth-side { display: none; }
    .auth-main { padding: 1.25rem; }
    .auth-modal .modal-dialog { margin: .65rem; }
    .form-row-two { grid-template-columns: 1fr; }
}


/* V0.3.2 — creator earnings clarity + @handles */
.home-intro {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: 9px;
    background:
        radial-gradient(circle at 88% 25%, rgba(195,154,98,.075), transparent 18rem),
        radial-gradient(circle at 8% 110%, rgba(86,125,132,.11), transparent 20rem),
        linear-gradient(120deg, #1a252a, #151e23 62%, #171f23);
}
.home-intro::after {
    content: "";
    position: absolute;
    top: -58px;
    right: 18%;
    width: 130px;
    height: 130px;
    border: 1px solid rgba(195,154,98,.055);
    border-radius: 50%;
    pointer-events: none;
}
.home-intro-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
    max-width: 920px;
}
.home-intro-label {
    margin-bottom: .28rem;
    color: var(--brass);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .14em;
}
.home-intro h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.72rem, 3vw, 2.55rem);
    font-weight: 800;
    letter-spacing: -.035em;
}
.home-intro p {
    max-width: 850px;
    margin: .42rem 0 0;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.55;
}
.home-earning-line {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-top: .7rem;
    color: #aeb7b4;
    font-size: .80rem;
    line-height: 1.45;
}
.home-earning-line strong { color: var(--brass-light); }
.earning-mark {
    width: 25px;
    height: 25px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(195,154,98,.22);
    border-radius: 50%;
    color: var(--brass-light);
    background: rgba(195,154,98,.055);
    font-size: .72rem;
}
.home-intro-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 0 0 auto;
    gap: .55rem;
}
.home-intro-actions .btn {
    min-width: 104px;
    font-size: .86rem;
    font-weight: 800;
}

.auth-modal .modal-dialog { max-width: 960px; }
.auth-modal .modal-content { padding: 0; overflow: hidden; }
.auth-shell {
    display: grid;
    grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
    min-height: 610px;
}
.auth-side {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.6rem;
    border-right: 1px solid var(--line);
    background:
        radial-gradient(circle at 20% 82%, rgba(86,125,132,.13), transparent 15rem),
        radial-gradient(circle at 96% 10%, rgba(195,154,98,.08), transparent 12rem),
        #141d21;
}
.auth-side-copy { margin-top: auto; }
.channel-url-preview,
.inline-channel-preview {
    background: rgba(12,17,20,.55);
}
.channel-url-preview strong,
.inline-channel-preview strong {
    letter-spacing: -.015em;
}
.auth-main {
    padding: 1.55rem 1.65rem;
    background:
        radial-gradient(circle at 100% 0%, rgba(86,125,132,.055), transparent 14rem),
        linear-gradient(180deg, #1b252b, #151e23);
}
.auth-form .form-control {
    font-size: .96rem;
}
.auth-security-note,
.terms-check,
.field-status {
    font-size: .79rem;
}
.login-email-note {
    padding: .7rem .75rem;
    border: 1px solid rgba(130,170,157,.14);
    border-radius: 8px;
    color: #a8b3b0;
    background: rgba(130,170,157,.045);
    font-size: .80rem;
    line-height: 1.45;
}

@media (max-width: 991.98px) {
    .auth-modal .modal-dialog { max-width: 650px; }
    .auth-shell { grid-template-columns: 1fr; min-height: 0; }
    .auth-side {
        display: block;
        padding: 1.1rem 1.35rem;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .auth-side-copy { margin-top: 1.2rem; }
    .auth-side-copy p,
    .auth-side-steps { display: none; }
    .channel-url-preview { margin-top: .9rem; }
}

@media (max-width: 767.98px) {
    .home-intro {
        align-items: flex-start;
        flex-direction: column;
        gap: .85rem;
    }
    .home-intro-actions { width: 100%; }
    .home-intro-actions .btn { flex: 1; }
    .home-earning-line { align-items: flex-start; }
    .auth-main { padding: 1.2rem; }
}
