:root {
    --bg: #fff8fc;
    --surface: rgba(255, 255, 255, .88);
    --surface-solid: #ffffff;
    --surface-soft: #fff0f7;
    --text: #3c2434;
    --muted: #886f7e;
    --line: #f1dce8;
    --pink: #ef5f9a;
    --pink-strong: #db3f82;
    --pink-soft: #ffd9e9;
    --lilac: #c9a7ff;
    --peach: #ffbea7;
    --success: #2f9a6f;
    --danger: #cf4167;
    --shadow: 0 22px 65px rgba(111, 49, 83, .12);
    --shadow-soft: 0 10px 30px rgba(111, 49, 83, .09);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 17px;
    --radius-sm: 12px;
    --sidebar: 248px;
    --topbar: 76px;
}


* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: var(--bg);
    font-family: Inter, ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.dark {
    --bg: #21151e;
    --surface: rgba(49, 31, 44, .9);
    --surface-solid: #34232f;
    --surface-soft: #43273a;
    --text: #fff1f8;
    --muted: #cbb1c0;
    --line: #5d3a50;
    --pink-soft: #6d3450;
    --shadow: 0 22px 65px rgba(0, 0, 0, .25);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, .2);
}


button, input, textarea, select { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

button { color: inherit; }


.glass-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, .75);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}


.logo-lockup {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 20px;
    font-weight: 850;
    letter-spacing: -.04em;
    white-space: nowrap;
}

.logo-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px 18px 14px 18px;
    color: white;
    background: linear-gradient(145deg, #ff7bb1, #d95798 55%, #b78aef);
    box-shadow: 0 8px 20px rgba(226, 72, 137, .28);
    font-family: Georgia, serif;
    font-size: 22px;
    transform: rotate(-3deg);
}

.logo-icon::after { content: "✦"; position: absolute; margin: -34px 0 0 34px; color: #ffd8ec; font-size: 11px; }


.eyebrow {
    display: block;
    color: var(--pink-strong);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .18em;
}


.primary-button, .secondary-button, .soft-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    border-radius: 16px;
    padding: 0 20px;
    border: 0;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, #f86fa7, #db4487 62%, #a978e8);
    box-shadow: 0 11px 28px rgba(218, 63, 132, .27);
}

.primary-button:hover { transform: translateY(-2px); box-shadow: 0 15px 34px rgba(218, 63, 132, .34); }

.primary-button:active { transform: translateY(0); }

.secondary-button {
    background: var(--surface-solid);
    color: var(--pink-strong);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.secondary-button:hover, .soft-button:hover { transform: translateY(-1px); background: var(--surface-soft); }

.soft-button { min-height: 42px; background: var(--surface-soft); color: var(--pink-strong); }

.full { width: 100%; }


.alert {
    position: relative;
    border-radius: 15px;
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.45;
}

.alert.error { color: #9b294d; background: #ffe4ed; border: 1px solid #ffc4d8; }

.alert.success { color: #246c50; background: #e6fff4; border: 1px solid #bcecd7; }


input, textarea, select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 15px;
    color: var(--text);
    background: var(--surface-solid);
    outline: none;
    transition: border .18s ease, box-shadow .18s ease, background .18s ease;
}

input, select { height: 49px; padding: 0 15px; }

textarea { min-height: 120px; padding: 13px 15px; resize: vertical; line-height: 1.55; }

input:focus, textarea:focus, select:focus { border-color: #ef91b8; box-shadow: 0 0 0 4px rgba(239, 95, 154, .12); }

label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 800; }


.password-wrap { position: relative; }

.password-wrap input { padding-right: 50px; }

.icon-button {
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--muted);
}

.password-wrap .icon-button { position: absolute; right: 8px; top: 7px; width: 36px; height: 36px; border-radius: 11px; }

.password-wrap .icon-button:hover { background: var(--surface-soft); color: var(--pink-strong); }


/* Password gate */
.gate-body {
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 194, 222, .76), transparent 26%),
        radial-gradient(circle at 85% 14%, rgba(211, 190, 255, .67), transparent 28%),
        radial-gradient(circle at 75% 85%, rgba(255, 213, 193, .72), transparent 26%),
        linear-gradient(145deg, #fff9fc, #fff0f7 54%, #f8f0ff);
}

.gate-body::before {
    content: "";
    position: fixed;
    inset: 0;
    opacity: .38;
    pointer-events: none;
    background-image: radial-gradient(#e8a6c5 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.gate-shell { position: relative; z-index: 2; width: min(100%, 480px); }

.gate-card { border-radius: 35px; padding: 38px; text-align: center; }

.gate-logo { margin-bottom: 22px; }

.gate-badge {
    display: inline-flex;
    padding: 7px 12px;
    color: var(--pink-strong);
    background: #fff0f7;
    border: 1px solid #ffd7e7;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gate-card h1 { margin: 18px 0 12px; font-size: clamp(35px, 7vw, 49px); line-height: 1.03; letter-spacing: -.055em; }

.gate-card h1 span { color: var(--pink-strong); font-family: Georgia, serif; font-style: italic; font-weight: 600; }

.gate-card > p { margin: 0 auto 25px; max-width: 350px; color: var(--muted); line-height: 1.6; }

.gate-form { text-align: left; }

.gate-form .primary-button { margin-top: 15px; }

.gate-form + .gate-divider { margin-top: 22px; }

.gate-divider { display: flex; align-items: center; gap: 12px; color: #b49aa8; font-size: 12px; }

.gate-divider::before, .gate-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.admin-entry { display: inline-flex; align-items: center; gap: 9px; margin: 17px 0; color: var(--pink-strong); font-size: 14px; font-weight: 800; }

.admin-entry:hover { text-decoration: underline; text-underline-offset: 4px; }

.gate-card small { display: block; color: #aa909f; font-size: 11px; }

.floating-shape { position: fixed; z-index: 1; color: rgba(223, 79, 143, .36); font-family: Georgia, serif; animation: floaty 7s ease-in-out infinite; }

.shape-one { left: 12%; top: 18%; font-size: 55px; transform: rotate(-15deg); }

.shape-two { right: 15%; top: 22%; font-size: 42px; animation-delay: -2s; }

.shape-three { right: 12%; bottom: 14%; font-size: 66px; animation-delay: -4s; }

@keyframes floaty { 0%,100% { translate: 0 0; rotate: -3deg; }
 50% { translate: 0 -18px; rotate: 5deg; }
 }


/* Public app */
.app-body { background: var(--bg); }

.topbar {
    position: fixed;
    z-index: 40;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar);
    display: grid;
    grid-template-columns: var(--sidebar) minmax(260px, 640px) auto;
    align-items: center;
    gap: 28px;
    padding: 0 28px 0 23px;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(20px);
}

.search-shell {
    justify-self: center;
    width: min(100%, 640px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 13px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface-solid);
    box-shadow: 0 6px 20px rgba(104, 50, 79, .05);
}

.search-shell > span { color: var(--muted); font-size: 23px; transform: rotate(-15deg); }

.search-shell input { flex: 1; height: 100%; border: 0; padding: 0; box-shadow: none; background: transparent; }

.search-shell input:focus { box-shadow: none; }

kbd { min-width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-soft); color: var(--muted); font-size: 12px; }

.top-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }

.round-button, .avatar-button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface-solid);
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(105, 51, 80, .06);
}

.avatar-button { color: #fff; border: 0; background: linear-gradient(145deg, #f67dac, #b88cf0); font-weight: 900; }

.round-button:hover { color: var(--pink-strong); background: var(--surface-soft); }


.page-layout { min-height: 100vh; padding-top: var(--topbar); }

.sidebar {
    position: fixed;
    z-index: 30;
    top: var(--topbar);
    bottom: 0;
    left: 0;
    width: var(--sidebar);
    display: flex;
    flex-direction: column;
    padding: 22px 16px;
    border-right: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    overflow-y: auto;
}

.sidebar nav { display: grid; gap: 5px; }

.nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 45px;
    padding: 0 14px;
    border: 0;
    border-radius: 14px;
    color: var(--muted);
    background: transparent;
    font-size: 14px;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
}

.nav-item > span { width: 22px; text-align: center; font-size: 18px; }

.nav-item:hover, .nav-item.active { color: var(--pink-strong); background: var(--surface-soft); }

.nav-item.active { box-shadow: inset 3px 0 var(--pink); }

.side-label { margin: 25px 13px 10px; color: #ad91a0; font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }

.sidebar-note { margin-top: 25px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, var(--surface-solid), var(--surface-soft)); }

.sidebar-note > span { font-size: 25px; }

.sidebar-note strong { display: block; margin: 8px 0 4px; font-size: 13px; }

.sidebar-note p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.logout-link { margin-top: auto; }


.content { margin-left: var(--sidebar); padding: 26px 32px 60px; }

.announcement {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding: 12px 15px;
    border: 1px solid #ffd4e6;
    border-radius: 16px;
    color: #8b365e;
    background: linear-gradient(90deg, #fff0f7, #fff7fb);
    font-size: 13px;
    font-weight: 700;
}

.announcement > span { font-size: 18px; }

.announcement p { flex: 1; margin: 0; }

.announcement button { border: 0; background: transparent; color: #b06c8b; font-size: 20px; cursor: pointer; }


.hero {
    --hero-image: none;
    position: relative;
    min-height: 390px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 58px;
    border-radius: var(--radius-xl);
    color: #fff;
    background:
        linear-gradient(90deg, rgba(81, 32, 61, .92), rgba(111, 40, 79, .64) 56%, rgba(94, 44, 91, .18)),
        var(--hero-image) center/cover,
        linear-gradient(135deg, #d96d9d, #9a6fca 55%, #f0a18b);
    box-shadow: var(--shadow);
}

.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 77% 30%, rgba(255,255,255,.24), transparent 23%); }

.hero-content { position: relative; z-index: 2; max-width: 590px; }

.hero .eyebrow { color: #ffd8eb; }

.hero h1 { max-width: 660px; margin: 10px 0 13px; font-size: clamp(38px, 5vw, 64px); line-height: 1; letter-spacing: -.055em; }

.hero p { max-width: 550px; margin: 0 0 24px; color: rgba(255,255,255,.84); line-height: 1.65; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }

.hero .secondary-button { color: #fff; background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.28); backdrop-filter: blur(10px); }

.hero-sparkle { position: absolute; right: 9%; top: 17%; font-size: 68px; color: rgba(255,255,255,.36); animation: pulseSpark 3s ease-in-out infinite; }

.hero-orbit { position: absolute; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: rgba(255,255,255,.35); display: grid; place-items: center; }

.orbit-one { width: 180px; height: 180px; right: -45px; bottom: -55px; font-size: 50px; }

.orbit-two { width: 85px; height: 85px; right: 20%; bottom: 18px; font-size: 25px; }

@keyframes pulseSpark { 50% { transform: scale(1.12) rotate(6deg); opacity: .7; }
 }


.empty-hero { min-height: 340px; display: grid; place-items: center; align-content: center; text-align: center; padding: 45px; border: 1px dashed #efb7cf; border-radius: var(--radius-xl); background: linear-gradient(145deg, #fffafd, #fff0f7); }

.empty-illustration { font-size: 68px; filter: drop-shadow(0 10px 18px rgba(215, 70, 132, .18)); }

.empty-hero h1 { margin: 14px 0 8px; font-size: 34px; letter-spacing: -.04em; }

.empty-hero p { max-width: 550px; margin: 0 0 20px; color: var(--muted); line-height: 1.6; }


.video-section { margin-top: 42px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }

.section-heading h2 { margin: 5px 0 0; font-size: 29px; letter-spacing: -.04em; }

.section-heading select { width: auto; min-width: 150px; }

.filter-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 14px; scrollbar-width: none; }

.filter-chips::-webkit-scrollbar { display: none; }

.chip { flex: 0 0 auto; min-height: 35px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface-solid); font-size: 12px; font-weight: 800; cursor: pointer; }

.chip:hover, .chip.active { color: #fff; border-color: transparent; background: linear-gradient(135deg, #f174a6, #d74b88); }

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

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

.thumbnail { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; border-radius: 19px; background: var(--surface-soft); box-shadow: var(--shadow-soft); }

.thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }

.thumbnail:hover img { transform: scale(1.045); }

.generated-thumb { width: 100%; height: 100%; position: relative; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 25% 20%, #ffdcea, transparent 26%), linear-gradient(135deg, #f39fc0, #c4a2ef 58%, #ffcfbd); }

.generated-thumb::before, .generated-thumb::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); }

.generated-thumb::before { width: 160px; height: 160px; right: -40px; bottom: -70px; }

.generated-thumb::after { width: 80px; height: 80px; left: -25px; top: -25px; }

.generated-thumb span { color: rgba(255,255,255,.92); font-family: Georgia, serif; font-size: 64px; font-style: italic; text-shadow: 0 8px 25px rgba(89, 35, 72, .2); }

.generated-thumb i { position: absolute; right: 13%; top: 12%; color: rgba(255,255,255,.75); font-size: 25px; }

.play-bubble { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 50px; height: 50px; translate: -50% -50%; border-radius: 50%; color: #e75091; background: rgba(255,255,255,.91); box-shadow: 0 8px 25px rgba(59, 24, 47, .18); opacity: 0; transform: scale(.82); transition: opacity .2s ease, transform .2s ease; }

.thumbnail:hover .play-bubble, .related-card:hover .play-bubble { opacity: 1; transform: scale(1); }

.duration { position: absolute; right: 9px; bottom: 9px; padding: 4px 7px; border-radius: 7px; color: #fff; background: rgba(40, 22, 34, .78); font-size: 10px; font-weight: 850; }

.video-info { display: grid; grid-template-columns: 39px minmax(0, 1fr) 32px; gap: 11px; padding: 13px 2px 0; }

.mini-avatar { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #f681ae, #b68cf0); font-size: 13px; font-weight: 900; }

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

.video-copy h3 { margin: 0 0 6px; overflow: hidden; color: var(--text); font-size: 15px; line-height: 1.35; letter-spacing: -.015em; text-overflow: ellipsis; white-space: nowrap; }

.video-copy a:hover h3 { color: var(--pink-strong); }

.video-copy p { margin: 2px 0; color: var(--muted); font-size: 11px; }

.verified { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; color: white; background: var(--pink); font-size: 8px; }

.card-like { align-self: start; width: 30px; height: 30px; border: 0; border-radius: 10px; color: #b997a7; background: transparent; cursor: pointer; font-size: 18px; }

.card-like:hover, .like-button.liked { color: #fff; background: var(--pink); }

.no-results { padding: 65px 20px; text-align: center; }

.no-results > span { font-size: 50px; }

.no-results h3 { margin: 10px 0 5px; }

.no-results p { margin: 0; color: var(--muted); }

.site-footer { margin-left: var(--sidebar); padding: 20px 32px 36px; color: #b08e9f; text-align: center; font-size: 11px; }


/* Watch */
.watch-body .topbar { grid-template-columns: auto 1fr auto; }

.back-link { justify-self: center; color: var(--muted); font-size: 13px; font-weight: 750; }

.back-link:hover { color: var(--pink-strong); }

.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; width: min(1500px, calc(100% - 56px)); margin: 0 auto; padding: 105px 0 55px; }

.player-shell { overflow: hidden; aspect-ratio: 16/9; border-radius: 25px; background: #160f14; box-shadow: var(--shadow); }

.player-shell video { width: 100%; height: 100%; object-fit: contain; background: #100b0e; }

.watch-title-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: 20px; }

.watch-title-row h1 { margin: 8px 0 0; font-size: 29px; line-height: 1.2; letter-spacing: -.035em; }

.category-pill { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: var(--pink-strong); background: var(--surface-soft); font-size: 10px; font-weight: 850; }

.channel-strip { display: grid; grid-template-columns: 49px minmax(0,1fr) auto; align-items: center; gap: 13px; margin: 18px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-solid); }

.channel-avatar { display: grid; place-items: center; width: 49px; height: 49px; border-radius: 16px; color: #fff; background: linear-gradient(145deg, #f67eac, #ad86e6); font-weight: 900; }

.channel-strip strong { font-size: 14px; }

.channel-strip p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }

.description-box { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-soft); }

.description-box p { margin: 0; color: var(--text); font-size: 13px; line-height: 1.72; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.tag-row span { color: var(--pink-strong); font-size: 12px; font-weight: 750; }

.related-panel { position: sticky; top: 98px; align-self: start; }

.section-heading.compact { margin-bottom: 14px; }

.section-heading.compact h2 { font-size: 23px; }

.related-card { display: grid; grid-template-columns: 142px minmax(0,1fr); gap: 12px; margin-bottom: 14px; }

.related-thumb { position: relative; overflow: hidden; aspect-ratio: 16/9; border-radius: 14px; background: var(--surface-soft); }

.related-thumb img { width: 100%; height: 100%; object-fit: cover; }

.play-bubble.small { width: 35px; height: 35px; font-size: 11px; }

.related-card h3 { margin: 2px 0 8px; font-size: 13px; line-height: 1.35; }

.related-card p { margin: 3px 0; color: var(--muted); font-size: 10px; }

.related-card:hover h3 { color: var(--pink-strong); }

.mini-empty { padding: 20px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); text-align: center; font-size: 12px; }

.not-found { width: min(100%, 600px); margin: 80px auto; padding: 60px; border-radius: 28px; text-align: center; grid-column: 1/-1; }

.not-found > span { font-size: 55px; }

.not-found h1 { margin: 10px 0 5px; font-size: 35px; }

.not-found p { margin: 0 0 22px; color: var(--muted); }


@media (max-width: 1150px) {
    :root { --sidebar: 210px; }

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

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

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

}


@media (max-width: 880px) {
    :root { --topbar: 70px; }

    .topbar { grid-template-columns: auto 1fr auto; gap: 14px; padding: 0 16px; }

    .topbar .logo-lockup > span:last-child { display: none; }

    .topbar .logo-icon { width: 40px; height: 40px; }

    .sidebar { display: none; }

    .content { margin-left: 0; padding: 20px 18px 50px; }

    .site-footer { margin-left: 0; }

    .hero { min-height: 360px; padding: 38px; }

    .watch-layout { display: block; width: calc(100% - 32px); padding-top: 90px; }

    .related-panel { position: static; margin-top: 34px; }

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

}


@media (max-width: 620px) {
    .gate-body { padding: 13px; overflow-y: auto; }

    .gate-card { padding: 28px 22px; border-radius: 27px; }

    .floating-shape { display: none; }

    .topbar { grid-template-columns: auto minmax(0,1fr) auto; }

    .search-shell { height: 42px; padding: 0 10px; }

    .search-shell kbd { display: none; }

    .top-actions .round-button { display: none; }

    .hero { min-height: 400px; padding: 30px 24px; align-items: end; }

    .hero h1 { font-size: 39px; }

    .hero-actions { display: grid; grid-template-columns: 1fr; }

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

    .section-heading { align-items: start; }

    .section-heading select { min-width: 125px; }

    .watch-body .topbar { grid-template-columns: auto 1fr auto; }

    .watch-body .back-link { font-size: 0; }

    .watch-body .back-link::after { content: "← Geri"; font-size: 12px; }

    .watch-title-row { display: block; }

    .watch-title-row .secondary-button { margin-top: 14px; }

    .channel-strip { grid-template-columns: 45px 1fr; }

    .channel-strip .soft-button { grid-column: 1/-1; }

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

}



/* Ücretsiz indirme ve fotoğraf görünümü */
.card-actions-mini{display:flex;align-items:center;gap:7px;margin-left:auto}
.card-download{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--surface-2,#fff0f6);border:1px solid rgba(232,91,142,.2);font-weight:900;text-decoration:none;color:var(--text,#402133);transition:.2s}
.card-download:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(208,72,124,.18)}
.watch-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.download-button{text-decoration:none}
.main-photo{display:block;width:100%;max-height:76vh;object-fit:contain;background:#130e16;border-radius:inherit}

/* ===== MihroTube v4: hesaplar, kanallar, sohbet ve moderasyon ===== */
*{box-sizing:border-box}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
.app-body{padding-top:var(--topbar);min-height:100vh}
.site-main{width:min(1480px,calc(100% - 48px));margin:0 auto;padding:30px 0 70px}
.narrow-main{width:min(1050px,calc(100% - 32px))}
.topbar{position:fixed;inset:0 0 auto;z-index:80;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center}
.main-nav{display:flex;justify-content:center;gap:6px}
.main-nav a{padding:10px 14px;border-radius:999px;color:var(--muted);font-size:13px;font-weight:800}
.main-nav a:hover,.main-nav a.active{background:var(--surface-soft);color:var(--pink-strong)}
.profile-pill{display:flex;align-items:center;gap:8px;padding:5px 10px 5px 5px;border:1px solid var(--line);border-radius:999px;background:var(--surface-solid);font-size:12px;font-weight:800;max-width:180px}
.profile-pill span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-pill.guest{color:var(--muted)}
.admin-shortcut{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--surface-soft);color:var(--text)}
.tiny-avatar,.mini-avatar,.comment-avatar,.chat-avatar,.admin-avatar,.profile-avatar-large,.channel-avatar-large,.channel-avatar-xl{display:block;object-fit:cover;background:linear-gradient(145deg,#f67eac,#ad86e6);color:#fff;text-align:center;font-weight:900}
.tiny-avatar{width:32px;height:32px;border-radius:50%;line-height:32px}
.mini-avatar{width:42px;height:42px;border-radius:14px;line-height:42px}
.comment-avatar,.chat-avatar{width:44px;height:44px;border-radius:14px;line-height:44px;flex:0 0 auto}
.admin-avatar{width:46px;height:46px;border-radius:15px;line-height:46px}
.profile-avatar-large{width:92px;height:92px;border-radius:28px;line-height:92px;font-size:32px}
.channel-avatar-large{width:84px;height:84px;border-radius:26px;line-height:84px;font-size:28px}
.channel-avatar-xl{width:124px;height:124px;border-radius:36px;line-height:124px;font-size:40px}
.avatar-fallback{display:grid;place-items:center}
.avatar-link{flex:0 0 auto}
.announcement{position:relative;z-index:1;display:flex;justify-content:center;gap:9px;padding:11px 20px;border-bottom:1px solid var(--line);background:linear-gradient(90deg,#ffe6f1,#f7eaff);color:#8e3962;font-size:12px;font-weight:800}
.hero-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(380px,46%);min-height:440px;overflow:hidden;border:1px solid var(--line);border-radius:34px;background:linear-gradient(135deg,var(--surface-solid),#fff0f6);box-shadow:var(--shadow)}
.hero-copy{align-self:center;padding:58px}
.hero-copy h1{font-size:clamp(38px,5vw,72px);line-height:.98;margin:12px 0 18px;letter-spacing:-.055em}
.hero-copy p{max-width:630px;color:var(--muted);line-height:1.7}
.hero-buttons,.button-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.hero-meta{margin-top:18px;color:var(--muted);font-size:12px}
.hero-visual{position:relative;display:block;min-height:100%;overflow:hidden;background:#1e1119}
.hero-visual img,.hero-generated{width:100%;height:100%;object-fit:cover}
.hero-visual:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,246,250,.45),transparent 40%)}
.hero-play{position:absolute;z-index:2;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:76px;height:76px;border-radius:50%;background:rgba(255,255,255,.88);color:#d54f86;box-shadow:0 20px 50px rgba(47,17,33,.25);font-size:25px}
.video-section{margin-top:42px}
.heading-tools{display:flex;gap:10px;align-items:center}
.search-input,.heading-tools select{height:43px;border:1px solid var(--line);border-radius:14px;background:var(--surface-solid);color:var(--text);padding:0 14px}
.search-input{width:min(320px,36vw)}
.thumbnail{display:block;position:relative;overflow:hidden;aspect-ratio:16/9;border-radius:18px;background:var(--surface-soft)}
.thumbnail img{width:100%;height:100%;object-fit:cover}
.video-card{padding:8px;border-radius:24px;transition:.22s}
.video-card:hover{background:var(--surface-solid);box-shadow:0 16px 42px rgba(160,74,113,.13);transform:translateY(-3px)}
.video-info{display:flex;gap:11px;padding:13px 5px 6px;align-items:flex-start}
.video-copy{min-width:0;flex:1}
.video-copy h3{font-size:15px;line-height:1.35;margin:0 0 7px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.video-copy p{margin:3px 0;color:var(--muted);font-size:10.5px}
.card-like{min-width:35px;height:35px;border:1px solid var(--line);border-radius:999px;background:var(--surface-soft);color:var(--pink-strong);font-weight:900}
.card-like small{font-size:9px}
.like-button.liked{background:#f05b94;color:#fff;border-color:#f05b94}
.secret-corner{position:absolute;left:10px;top:10px;padding:5px 8px;border-radius:999px;background:#27132d;color:#ffd7f0;font-size:9px;font-weight:900;letter-spacing:.12em}
.gate-card small{display:block;margin-top:18px;color:var(--muted)}
.gate-form label,.stack-form label,.admin-form label{display:grid;gap:7px;color:var(--text);font-size:12px;font-weight:800}
.stack-form,.admin-form{display:grid;gap:16px}
.stack-form input,.stack-form textarea,.stack-form select,.admin-form input,.admin-form textarea,.admin-form select,.inline-form input{width:100%;border:1px solid var(--line);border-radius:14px;background:var(--surface-solid);color:var(--text);padding:13px 14px;outline:none}
.stack-form input:focus,.stack-form textarea:focus,.admin-form input:focus,.admin-form textarea:focus{border-color:#ec75a3;box-shadow:0 0 0 4px rgba(236,117,163,.13)}
.wide{width:100%;justify-content:center}
.form-error{padding:12px 14px;margin:14px 0;border:1px solid #ef8fae;border-radius:13px;background:#fff0f5;color:#9d2c57;font-size:12px;font-weight:700}
.global-error{width:min(1100px,calc(100% - 30px));margin:15px auto}
.flash{position:relative;z-index:30;width:min(900px,calc(100% - 30px));margin:16px auto 0;padding:13px 16px;border-radius:14px;font-size:12px;font-weight:800}
.flash.success{background:#ecfff7;color:#21765b;border:1px solid #a7e7d1}
.flash.error{background:#fff0f5;color:#9d2c57;border:1px solid #ef8fae}
.flash.info{background:#f5efff;color:#694495;border:1px solid #d8c0f1}
.choice-card{width:min(900px,calc(100% - 28px));margin:auto;padding:38px;border:1px solid var(--line);border-radius:34px;background:var(--surface-solid);box-shadow:var(--shadow)}
.choice-header{text-align:center;max-width:650px;margin:0 auto 28px}
.choice-header h1{font-size:42px;margin:10px 0}
.choice-header p{color:var(--muted);line-height:1.65}
.choice-icon{font-size:48px}
.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.choice-option{display:grid;align-content:start;gap:12px;padding:27px;border:1px solid var(--line);border-radius:24px;background:var(--surface-soft)}
.choice-option h2,.choice-option p{margin:0}
.choice-option p{color:var(--muted);line-height:1.55;min-height:72px}
.choice-emoji{font-size:36px}
.form-page{overflow:auto;padding:40px 15px}
.form-card{width:min(560px,100%);margin:auto;padding:34px;border:1px solid var(--line);border-radius:30px;background:var(--surface-solid);box-shadow:var(--shadow)}
.form-card.in-page{width:100%;margin-top:10px}
.form-card h1{font-size:38px;margin:10px 0}
.form-card>p{color:var(--muted);line-height:1.6}
.input-prefix{display:flex;align-items:center;border:1px solid var(--line);border-radius:14px;background:var(--surface-solid);overflow:hidden}
.input-prefix span{padding-left:14px;color:var(--muted)}
.input-prefix input{border:0!important;box-shadow:none!important}
.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.page-intro{padding:42px 0 20px;max-width:800px}
.page-intro h1{font-size:clamp(40px,6vw,72px);letter-spacing:-.055em;margin:10px 0}
.page-intro p{color:var(--muted);line-height:1.7}
.profile-hero{display:flex;align-items:center;gap:20px;padding:26px;margin-top:15px;border-radius:28px}
.profile-hero h1{margin:3px 0;font-size:36px}
.profile-hero p{margin:0;color:var(--muted)}
.profile-hero>.soft-button{margin-left:auto}
.dashboard-grid,.studio-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:22px}
.panel-card{padding:25px;border:1px solid var(--line);border-radius:24px;background:var(--surface-solid);box-shadow:0 14px 40px rgba(145,70,104,.08)}
.panel-card h2{margin-top:0}
.status-card{padding:18px;border-radius:17px}
.status-card.pending{background:#fff7dc;color:#795b16}
.status-card.blocked{background:#ffe8ef;color:#8f2e50}
.channel-mini-card{display:flex;align-items:center;gap:13px;margin:20px 0}
.channel-mini-card p{margin:5px 0;color:var(--muted)}
.channel-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.channel-card{overflow:hidden;border:1px solid var(--line);border-radius:26px;background:var(--surface-solid);transition:.22s}
.channel-card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}
.channel-card-banner{display:block;width:100%;height:135px;object-fit:cover}
.generated-banner{display:grid;place-items:center;background:linear-gradient(135deg,#ffb4d1,#c9a9ff,#9ce3ef);color:#fff;font-size:40px}
.channel-card-body{text-align:center;padding:0 20px 24px}
.channel-card-body .channel-avatar-large{margin:-42px auto 13px;border:5px solid var(--surface-solid)}
.channel-card-body h2{margin:0;font-size:20px}
.channel-card-body p{margin:6px 0;color:var(--muted)}
.channel-card-body small{color:var(--pink-strong);font-weight:800}
.channel-page{padding-top:20px}
.channel-banner{overflow:hidden;height:280px;border-radius:30px;background:var(--surface-soft)}
.channel-banner img,.channel-banner .generated-banner{width:100%;height:100%;object-fit:cover}
.channel-header-card{display:flex;align-items:center;gap:22px;padding:0 30px 28px}
.channel-header-card .channel-avatar-xl{margin-top:-54px;border:7px solid var(--bg)}
.channel-header-card h1{font-size:38px;margin:8px 0}
.channel-header-card p{color:var(--muted)}
.channel-header-card>.primary-button{margin-left:auto}
.channel-bio{max-width:720px;line-height:1.6;font-size:13px}
.studio-library{margin-top:22px}
.admin-list{display:grid;gap:10px}
.admin-row{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:16px;background:var(--surface-soft)}
.admin-thumb{width:90px;height:52px;overflow:hidden;border-radius:12px;background:linear-gradient(145deg,#f67eac,#ad86e6);display:grid;place-items:center;color:#fff;font-weight:900;flex:0 0 auto}
.admin-thumb img{width:100%;height:100%;object-fit:cover}
.admin-row-main{min-width:0;flex:1}
.admin-row-main strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.admin-row-main p{margin:5px 0 0;color:var(--muted);font-size:11px}
.danger-button,.tiny-button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:11px;padding:9px 12px;font-size:11px;font-weight:850}
.danger-button{background:#ffe2eb;color:#a72c58}
.tiny-button{background:var(--surface-solid);color:var(--text);border:1px solid var(--line)}
.watch-layout{align-items:start}
.player-shell.image-player{aspect-ratio:auto;min-height:420px;max-height:78vh;display:flex;align-items:center;justify-content:center;padding:18px;background:#171018}
.main-photo{width:100%;height:auto;max-width:100%;max-height:calc(78vh - 36px);object-fit:contain!important;object-position:center;display:block;border-radius:16px;background:transparent}
.channel-strip .channel-avatar{object-fit:cover;line-height:49px}
.comments-section{margin-top:30px}
.comment-form{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center;padding:16px;border-radius:20px}
.comment-form textarea{min-height:54px;resize:vertical;border:1px solid var(--line);border-radius:14px;padding:12px;background:var(--surface-soft);color:var(--text)}
.comment-list{display:grid;gap:12px;margin-top:16px}
.comment-card{display:flex;gap:12px;padding:17px;border-bottom:1px solid var(--line)}
.comment-card p{margin:8px 0 0;line-height:1.6;font-size:13px}
.comment-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.comment-meta span,.comment-meta time{color:var(--muted);font-size:10px}
.interaction-lock{display:flex;align-items:center;gap:14px;padding:18px;border-radius:19px}
.interaction-lock>span{font-size:30px}
.interaction-lock p{margin:4px 0;color:var(--muted);font-size:12px}
.interaction-lock .soft-button,.interaction-lock .primary-button{margin-left:auto}
.empty-inline{padding:28px;border:1px dashed var(--line);border-radius:18px;color:var(--muted);text-align:center}
.chat-layout{width:min(1000px,calc(100% - 32px));margin:0 auto;padding:32px 0 70px}
.chat-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:18px}
.chat-heading h1{font-size:52px;margin:7px 0}
.chat-heading p{color:var(--muted)}
.online-orb{padding:9px 12px;border-radius:999px;background:#e9fff5;color:#23755b;font-size:11px;font-weight:850}
.chat-shell{overflow:hidden;border:1px solid var(--line);border-radius:28px;background:var(--surface-solid);box-shadow:var(--shadow)}
.chat-feed{height:min(64vh,680px);overflow-y:auto;padding:22px;scroll-behavior:smooth}
.chat-message{display:flex;gap:11px;margin-bottom:16px}
.chat-bubble{max-width:min(760px,calc(100% - 60px));padding:12px 15px;border-radius:8px 19px 19px 19px;background:var(--surface-soft)}
.chat-bubble p{margin:7px 0 0;line-height:1.55;font-size:13px}
.chat-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.chat-meta span,.chat-meta time{font-size:9.5px;color:var(--muted)}
.voice-note{display:grid;gap:8px;min-width:min(420px,68vw)}
.voice-note span{font-size:11px;font-weight:800;color:var(--pink-strong)}
.voice-note audio{width:100%;height:38px}
.chat-composer{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;padding:14px;border-top:1px solid var(--line);background:var(--surface-soft)}
.chat-composer textarea{resize:none;border:1px solid var(--line);border-radius:15px;background:var(--surface-solid);color:var(--text);padding:12px}
.record-button{width:48px;border:1px solid var(--line);border-radius:15px;background:var(--surface-solid);font-size:19px}
.record-button.recording{background:#ffe1ec;animation:pulse-record 1s infinite}
.record-status{grid-column:1/-1;color:#a92d58;font-size:11px;font-weight:800}
@keyframes pulse-record{50%{box-shadow:0 0 0 8px rgba(235,76,133,.12)}
}
.secret-badge{justify-self:center;padding:8px 12px;border-radius:999px;background:#2e1636;color:#ffd5ef;font-size:10px;font-weight:850}
.secret-hero{padding:70px 0 25px;text-align:center}
.secret-hero h1{font-size:clamp(40px,6vw,75px);margin:10px 0}
.secret-hero p{color:var(--muted)}

@media(max-width:1000px){.hero-card{grid-template-columns:1fr}
.hero-visual{min-height:310px}
.channel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.main-nav{display:none}
.dashboard-grid,.studio-grid{grid-template-columns:1fr}
.watch-layout{display:block}
.related-panel{margin-top:35px}
}

@media(max-width:680px){.site-main{width:calc(100% - 24px);padding-top:18px}
.topbar{padding:0 10px}
.profile-pill span:last-child{display:none}
.profile-pill{padding-right:5px}
.admin-shortcut{display:none}
.choice-card{padding:25px 18px}
.choice-grid,.two-fields,.channel-grid{grid-template-columns:1fr}
.hero-copy{padding:34px 25px}
.hero-card{min-height:auto}
.heading-tools{width:100%;display:grid;grid-template-columns:1fr auto}
.search-input{width:100%}
.section-heading{display:grid;gap:12px}
.channel-header-card{align-items:flex-start;padding:0 12px 24px;flex-wrap:wrap}
.channel-header-card .channel-avatar-xl{width:96px;height:96px;line-height:96px;border-radius:28px}
.channel-header-card>.primary-button{margin-left:0}
.profile-hero{align-items:flex-start;flex-wrap:wrap}
.profile-hero>.soft-button{margin-left:0}
.comment-form{grid-template-columns:40px 1fr}
.comment-form .primary-button{grid-column:2}
.interaction-lock{align-items:flex-start;flex-wrap:wrap}
.interaction-lock .soft-button,.interaction-lock .primary-button{margin-left:0}
.chat-heading{display:block}
.chat-heading h1{font-size:40px}
.chat-composer{grid-template-columns:1fr auto}
.chat-composer .primary-button{grid-column:1/-1}
.voice-note{min-width:0}
.watch-title-row{display:block}
.watch-actions{margin-top:15px}
.player-shell.image-player{min-height:260px;max-height:70vh;padding:8px}
.main-photo{max-height:calc(70vh - 16px)}
.admin-row{align-items:flex-start;flex-wrap:wrap}
.admin-row-main{flex-basis:calc(100% - 110px)}
}


/* ===== v5 düzen onarımları: eski ana sayfa + kontrollü yeni sistemler ===== */
html.dark body,
body.dark {
    --bg: #21151e;
    --surface: rgba(49, 31, 44, .92);
    --surface-solid: #34232f;
    --surface-soft: #43273a;
    --text: #fff1f8;
    --muted: #cbb1c0;
    --line: #5d3a50;
    --pink-soft: #6d3450;
    --shadow: 0 22px 65px rgba(0, 0, 0, .25);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, .2);
}


body.home-body,
body.watch-body { padding-top: 0; }


.home-topbar {
    grid-template-columns: var(--sidebar) minmax(280px, 640px) auto;
}


.inner-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding-inline: 24px;
}


.top-icon-link,
.visible-admin {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-solid);
    color: var(--pink-strong);
    box-shadow: 0 5px 16px rgba(105, 51, 80, .06);
    font-weight: 900;
}


.compact-profile {
    height: 42px;
    max-width: 185px;
    padding: 4px 11px 4px 4px;
}


.tiny-avatar,
.mini-avatar,
.hero-channel-avatar,
.channel-avatar,
.comment-avatar,
.chat-avatar,
.admin-avatar,
.profile-avatar-large,
.channel-avatar-large,
.channel-avatar-xl {
    display: grid !important;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    object-fit: cover !important;
    object-position: center;
    background: linear-gradient(145deg, #f67eac, #ad86e6);
    color: #fff;
    text-align: center;
    font-weight: 900;
}


.tiny-avatar { width: 32px !important; height: 32px !important; max-width: 32px !important; border-radius: 50%; line-height: 32px; }

.mini-avatar { width: 39px !important; height: 39px !important; max-width: 39px !important; border-radius: 13px; line-height: 39px; }

.hero-channel-avatar { width: 34px !important; height: 34px !important; max-width: 34px !important; border-radius: 11px; line-height: 34px; }

.channel-avatar { width: 49px !important; height: 49px !important; max-width: 49px !important; border-radius: 16px; line-height: 49px; }

.comment-avatar,
.chat-avatar { width: 44px !important; height: 44px !important; max-width: 44px !important; border-radius: 14px; line-height: 44px; }

.admin-avatar { width: 46px !important; height: 46px !important; max-width: 46px !important; border-radius: 15px; line-height: 46px; }

.profile-avatar-large { width: 92px !important; height: 92px !important; max-width: 92px !important; border-radius: 28px; line-height: 92px; font-size: 32px; }

.channel-avatar-large { width: 84px !important; height: 84px !important; max-width: 84px !important; border-radius: 26px; line-height: 84px; font-size: 28px; }

.channel-avatar-xl { width: 124px !important; height: 124px !important; max-width: 124px !important; border-radius: 36px; line-height: 124px; font-size: 40px; }


.hero-channel-line {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 17px 0 2px;
    color: rgba(255,255,255,.88);
    font-size: 12px;
    font-weight: 800;
}


.home-empty {
    min-height: 300px;
    max-width: 100%;
}


.home-body .video-card { padding: 0; }

.home-body .video-card:hover { background: transparent; box-shadow: none; }

.home-body .video-info { padding: 13px 4px 0; }

.home-body .announcement { margin-bottom: 22px; border: 1px solid #ffd5e7; border-radius: 16px; }

.home-body .announcement button { margin-left: auto; border: 0; background: transparent; color: inherit; font-size: 20px; }


.choice-page { overflow-y: auto; }

.choice-shell {
    position: relative;
    z-index: 2;
    width: min(980px, 100%);
    margin: auto;
    padding: 24px 0;
}

.choice-card { width: 100%; }

.choice-logo { justify-content: center; margin-bottom: 18px; }

.choice-header h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -.045em; }

.choice-option { min-height: 300px; align-content: space-between; }

.choice-option > div { display: grid; gap: 10px; }

.choice-option h2 { font-size: 26px; }

.choice-buttons { display: grid; gap: 10px; }

.choice-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--pink-strong);
    font-size: 12px;
    font-weight: 800;
}


.site-main { max-width: 1320px; }

.page-intro { padding-top: 32px; }

.channel-grid { align-items: stretch; }

.channel-card { min-width: 0; }

.channel-card-body { position: relative; }

.channel-card-body .channel-avatar-large { position: relative; }

.channel-banner { max-height: 280px; }

.channel-banner img { object-position: center; }


.player-shell.image-player {
    width: 100%;
    min-height: min(620px, 72vh);
    max-height: 78vh;
    aspect-ratio: 16 / 9;
    padding: 18px;
    background: #171018;
}

.player-shell.image-player .main-photo {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 14px;
}


.card-like {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0 9px;
}

.card-like small,
.like-button small { font-size: 10px; }


.flash { margin-bottom: 16px; }

.inner-topbar + .flash { margin-top: 16px; }


@media (max-width: 1180px) {
    .home-topbar { grid-template-columns: var(--sidebar) minmax(240px, 1fr) auto; }

    .compact-profile span:last-child { display: none; }

    .compact-profile { width: 42px; padding: 4px; }

}


@media (max-width: 880px) {
    .home-topbar { grid-template-columns: auto minmax(0, 1fr) auto; }

    .home-topbar .top-icon-link { display: none; }

    .inner-topbar { grid-template-columns: auto 1fr auto; }

    .main-nav { display: none; }

    .visible-admin { display: grid !important; }

    .player-shell.image-player { min-height: 360px; }

}


@media (max-width: 680px) {
    .choice-shell { padding: 10px 0; }

    .choice-card { border-radius: 26px; }

    .choice-option { min-height: 0; }

    .choice-footer { flex-direction: column; align-items: center; }

    .home-topbar .profile-pill { display: none; }

    .top-icon-link,
    .visible-admin { width: 38px; height: 38px; flex-basis: 38px; }

    .player-shell.image-player { min-height: 260px; padding: 8px; }

}



/* ===== MihroTube v6 deployment hardening ===== */
html, body { max-width: 100%; }
body { overflow-x: hidden; }
body.app-body { padding-top: var(--topbar) !important; }
body.home-body, body.watch-body { padding-top: 0 !important; }

.inner-topbar {
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    width: 100% !important;
    height: var(--topbar) !important;
    grid-template-columns: minmax(190px, auto) minmax(0, 1fr) auto !important;
    padding: 0 24px !important;
    gap: 18px !important;
}
.inner-topbar .logo-lockup { min-width: 0; white-space: nowrap; }
.inner-topbar .main-nav { min-width: 0; }
.inner-topbar .top-actions { min-width: 0; }

.profile-pill,
.compact-profile {
    min-width: 0 !important;
    overflow: hidden !important;
}
.profile-pill img,
.compact-profile img,
.top-actions img,
.chat-message img,
.channel-card img,
.channel-header-card img,
.profile-hero img,
.admin-row img {
    max-width: none;
}

.tiny-avatar { width: 32px !important; height: 32px !important; min-width: 32px !important; max-width: 32px !important; }
.mini-avatar { width: 42px !important; height: 42px !important; min-width: 42px !important; max-width: 42px !important; }
.comment-avatar, .chat-avatar { width: 44px !important; height: 44px !important; min-width: 44px !important; max-width: 44px !important; }
.admin-avatar { width: 46px !important; height: 46px !important; min-width: 46px !important; max-width: 46px !important; }
.profile-avatar-large { width: 92px !important; height: 92px !important; min-width: 92px !important; max-width: 92px !important; }
.channel-avatar { width: 49px !important; height: 49px !important; min-width: 49px !important; max-width: 49px !important; }
.channel-avatar-large { width: 84px !important; height: 84px !important; min-width: 84px !important; max-width: 84px !important; }
.channel-avatar-xl { width: 124px !important; height: 124px !important; min-width: 124px !important; max-width: 124px !important; }
.hero-channel-avatar { width: 38px !important; height: 38px !important; min-width: 38px !important; max-width: 38px !important; border-radius: 12px !important; object-fit: cover !important; }

.site-main,
.chat-layout {
    position: relative;
    z-index: 1;
}
.site-main { padding-top: 34px !important; }
.chat-layout { padding-top: 34px !important; }

.chat-heading {
    padding: 4px 4px 0;
}
.chat-shell {
    position: relative;
    isolation: isolate;
}
.chat-message { align-items: flex-start; }
.chat-bubble { min-width: 0; word-break: break-word; }
.chat-composer textarea { width: 100%; min-width: 0; }

.channel-grid { align-items: stretch; }
.channel-card { min-width: 0; }
.channel-card-body { position: relative; }
.channel-card-body h2,
.channel-card-body p { overflow-wrap: anywhere; }
.channel-header-card { position: relative; }
.channel-header-card > div { min-width: 0; }

.profile-hero > div { min-width: 0; }
.profile-hero h1,
.profile-hero p { overflow-wrap: anywhere; }

@media (max-width: 760px) {
    .inner-topbar {
        grid-template-columns: auto minmax(0, 1fr) auto !important;
        padding-inline: 12px !important;
    }
    .inner-topbar .main-nav { display: none !important; }
    .inner-topbar .logo-lockup > span:last-child { display: inline !important; }
    .site-main, .chat-layout { width: calc(100% - 24px) !important; }
    .chat-feed { padding: 14px !important; }
}


/* ===== MihroTube v7.1: telefon düzeni ve mobil gezinme ===== */
.mobile-nav { display: none; }
.chat-keyboard-hint { grid-column: 1 / -1; color: var(--muted); font-size: 10px; padding: 0 3px; }

@media (max-width: 900px) {
    .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .content { padding-inline: 20px; }
    .hero { padding: 44px 36px; }
}

@media (max-width: 820px) {
    :root { --mobile-nav-height: 68px; }
    body.app-body { padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom)) !important; }
    .mobile-nav {
        position: fixed;
        z-index: 120;
        left: 10px;
        right: 10px;
        bottom: calc(8px + env(safe-area-inset-bottom));
        min-height: 58px;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: center;
        padding: 6px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: color-mix(in srgb, var(--surface-solid) 94%, transparent);
        box-shadow: 0 15px 45px rgba(74, 34, 58, .18);
        backdrop-filter: blur(20px);
    }
    .mobile-nav a {
        min-width: 0;
        display: grid;
        justify-items: center;
        gap: 2px;
        padding: 6px 2px;
        border-radius: 14px;
        color: var(--muted);
        font-weight: 850;
    }
    .mobile-nav a span { font-size: 18px; line-height: 1; }
    .mobile-nav a small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
    .mobile-nav a.active { color: var(--pink-strong); background: var(--surface-soft); }

    .home-topbar {
        height: 116px !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-areas: "logo actions" "search search";
        gap: 8px 10px !important;
        padding: 10px 12px !important;
    }
    .home-topbar .logo-lockup { grid-area: logo; min-width: 0; }
    .home-topbar .logo-lockup > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .home-topbar .search-shell { grid-area: search; width: 100%; height: 42px; }
    .home-topbar .top-actions { grid-area: actions; gap: 7px; }
    .home-topbar .top-icon-link { display: none !important; }
    .home-topbar .round-button, .home-topbar .visible-admin { width: 38px; height: 38px; flex-basis: 38px; }
    .page-layout { padding-top: 116px !important; }
    .sidebar { display: none !important; }
    .content { margin-left: 0 !important; padding: 16px 14px 90px !important; }

    .inner-topbar { height: 64px !important; grid-template-columns: minmax(0, 1fr) auto !important; padding: 0 12px !important; gap: 10px !important; }
    .inner-topbar .logo-lockup { min-width: 0; }
    .inner-topbar .logo-lockup > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .inner-topbar .top-actions { gap: 7px; }
    .inner-topbar .round-button, .inner-topbar .visible-admin { width: 38px; height: 38px; flex: 0 0 38px; }
    .inner-topbar .compact-profile { max-width: 42px; width: 42px; padding: 4px; }
    .inner-topbar .compact-profile span:last-child { display: none !important; }
    body.app-body:not(.home-body):not(.watch-body) { padding-top: 64px !important; }

    .site-main, .chat-layout { width: calc(100% - 20px) !important; padding-top: 18px !important; padding-bottom: 88px !important; }
    .page-intro { padding-top: 8px; }
    .page-intro h1 { font-size: clamp(32px, 10vw, 44px); }
    .hero { min-height: 320px; padding: 34px 24px; border-radius: 24px; }
    .hero h1 { font-size: clamp(34px, 10vw, 48px); }
    .hero p { font-size: 13px; }
    .hero-sparkle { right: 6%; top: 10%; font-size: 42px; }
    .video-section { margin-top: 28px; }
    .section-heading h2 { font-size: 25px; }
    .section-heading select { min-width: 125px; }
    .filter-chips { margin-inline: -2px; }

    .channel-banner { height: auto; aspect-ratio: 3 / 1; min-height: 120px; border-radius: 20px; }
    .channel-header-card { gap: 14px; padding: 0 14px 22px; }
    .channel-header-card .channel-avatar-xl { width: 92px !important; height: 92px !important; min-width: 92px !important; max-width: 92px !important; margin-top: -38px; border-width: 5px; }
    .channel-header-card h1 { margin: 6px 0; font-size: 29px; overflow-wrap: anywhere; }
    .channel-header-card .channel-bio { font-size: 12px; line-height: 1.55; }
    .channel-header-card > .primary-button { width: 100%; }
    .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }

    .profile-hero { padding: 18px; border-radius: 22px; }
    .profile-hero h1 { font-size: 29px; }
    .profile-avatar-large { width: 72px !important; height: 72px !important; min-width: 72px !important; max-width: 72px !important; border-radius: 22px; }
    .dashboard-grid, .studio-grid { gap: 14px; margin-top: 14px; }
    .panel-card { padding: 18px; border-radius: 20px; }
    .stack-form input, .stack-form textarea, .stack-form select { font-size: 16px; }

    .chat-heading { margin-bottom: 12px; }
    .chat-heading h1 { margin: 4px 0; font-size: 34px; }
    .chat-heading p { margin: 5px 0; font-size: 12px; }
    .online-orb { display: inline-flex; margin-top: 8px; }
    .chat-shell { border-radius: 22px; }
    .chat-feed { height: max(300px, calc(100dvh - 355px)); padding: 13px !important; }
    .chat-message { gap: 8px; margin-bottom: 12px; }
    .chat-avatar { width: 38px !important; height: 38px !important; min-width: 38px !important; max-width: 38px !important; border-radius: 12px; }
    .chat-bubble { max-width: calc(100% - 46px); padding: 10px 12px; border-radius: 7px 16px 16px 16px; }
    .chat-meta { gap: 5px; }
    .chat-bubble p { font-size: 12px; }
    .chat-composer { grid-template-columns: 48px minmax(0, 1fr); gap: 8px; padding: 10px; }
    .chat-composer textarea { grid-column: 1 / -1; min-height: 64px; font-size: 16px; }
    .chat-composer .record-button { grid-column: 1; grid-row: 2; width: 48px; height: 44px; }
    .chat-composer .primary-button { grid-column: 2; grid-row: 2; width: 100%; min-height: 44px; }
    .chat-keyboard-hint { display: none; }
    .voice-note { width: min(100%, 320px); }

    .watch-layout { width: calc(100% - 16px) !important; padding: 76px 0 88px !important; }
    .player-shell, .player-shell.image-player { border-radius: 18px; min-height: 220px; }
    .watch-title-row h1 { font-size: 25px; }
    .watch-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .watch-actions .primary-button, .watch-actions .secondary-button { width: 100%; padding-inline: 10px; }
    .channel-strip { align-items: flex-start; flex-wrap: wrap; }
    .channel-strip .soft-button { width: 100%; margin-left: 0; }
    .description-box { padding: 16px; }
    .comment-form { grid-template-columns: 38px minmax(0, 1fr); padding: 12px; }
    .comment-form textarea { min-width: 0; font-size: 16px; }
    .comment-form .primary-button { width: 100%; }
    .related-panel { position: static; }

    .choice-page, .gate-body { min-height: 100dvh; }
    .choice-shell, .gate-shell { width: calc(100% - 20px); padding: 10px 0 84px; }
    .choice-card, .gate-card { padding: 24px 18px; border-radius: 24px; }
    .choice-header h1, .gate-card h1 { font-size: 34px; }
}

@media (max-width: 560px) {
    .video-grid, .channel-grid { grid-template-columns: 1fr; }
    .video-info { grid-template-columns: 42px minmax(0, 1fr) auto; }
    .thumbnail { border-radius: 16px; }
    .hero { min-height: 290px; }
    .hero-actions { display: grid; grid-template-columns: 1fr; }
    .hero-actions > * { width: 100%; }
    .announcement { align-items: flex-start; font-size: 12px; }
    .section-heading { align-items: stretch; }
    .section-heading select { width: 100%; }
    .channel-card { border-radius: 20px; }
    .profile-hero > .soft-button { width: 100%; }
    .button-row { width: 100%; }
    .button-row > a, .button-row > button { flex: 1; }
    .interaction-lock .primary-button, .interaction-lock .soft-button { width: 100%; }
    .watch-actions { grid-template-columns: 1fr; }
}
