:root {
    color-scheme: dark;
    --bg: #070b12;
    --panel: rgba(12, 18, 29, .86);
    --panel-strong: rgba(16, 24, 38, .96);
    --line: rgba(159, 193, 229, .22);
    --text: #edf4fb;
    --muted: #aebaca;
    --gold: #d8a63d;
    --cyan: #77c8ef;
    --green: #74d39d;
    --danger: #d86d6d;
    --content-max: 1180px;
    --frame-bg: rgba(7, 11, 18, .37);
    --frame-edge: linear-gradient(135deg, rgba(159, 193, 229, .36), rgba(159, 193, 229, .06) 30%, rgba(216, 166, 61, .24) 52%, rgba(119, 200, 239, .08) 72%, rgba(159, 193, 229, .28));
    --title-icon-size: clamp(42px, 5.2vw, 74px);
    --title-icon-gap: clamp(12px, 1.6vw, 22px);
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    letter-spacing: 0;
}
a { color: inherit; }

.site-header, .admin-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 68px;
    padding: 12px clamp(18px, 5vw, 64px);
    background: rgba(7, 11, 18, .82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
}
.brand img { width: 42px; height: 42px; object-fit: contain; }
.site-header nav, .admin-header nav { display: flex; flex-wrap: wrap; gap: 12px; }
.site-header nav a, .admin-header nav a, .link-button {
    color: var(--muted);
    text-decoration: none;
    font: inherit;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.site-header nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 7px 12px;
    border: 1px solid rgba(119, 200, 239, .2);
    border-radius: 8px;
    background: rgba(255,255,255,.045);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.nav-icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255,255,255,.06);
}
.site-header nav a[data-u83-tab="inicio"] .nav-icon,
.aelina-nav-icon {
    object-fit: contain;
}
.nav-icon-shift-down {
    transform: translateY(2px);
}
.site-header nav a:hover {
    color: var(--text);
    border-color: rgba(119, 200, 239, .42);
    background: rgba(119, 200, 239, .1);
}
.admin-header nav a:hover, .link-button:hover { color: var(--cyan); }
.site-header nav a.active, .admin-header nav a.active {
    color: var(--text);
    border-color: rgba(216, 166, 61, .68);
    background: rgba(216, 166, 61, .14);
}
.u83-tab-panel[hidden] { display: none !important; }
[data-aelina-custom-url][hidden] { display: none !important; }

.hero {
    position: relative;
    min-height: 82vh;
    display: flex;
    align-items: flex-start;
    border-top: 1px solid var(--line);
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: url("fondo_inicio_universo83.jpg?v=20260611h") center / cover no-repeat;
    filter: brightness(80%);
}
.hero-inner {
    position: relative;
    width: min(var(--content-max), calc(100% - 36px));
    margin: 0 auto;
    padding: 64px 0 120px;
}
.content-frame,
.section-frame {
    position: relative;
    isolation: isolate;
    border: 0;
    border-radius: 8px;
    background: var(--frame-bg);
    box-shadow: 0 24px 90px rgba(0,0,0,.24), 0 0 42px rgba(119, 200, 239, .07), inset 0 1px 0 rgba(255,255,255,.04);
    backdrop-filter: blur(8px);
}
.content-frame::before,
.section-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 3px;
    background: var(--frame-edge);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.hero-frame {
    padding: clamp(24px, 4vw, 40px);
}
.hero-main {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    gap: clamp(24px, 4vw, 46px);
    align-items: start;
}
.kicker {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
}
.kicker-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.kicker-with-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.hero-copy > .kicker,
.section-head .kicker,
.aelina-copy > .kicker {
    margin: 10px 0 0 calc(var(--title-icon-size) + var(--title-icon-gap));
}
.hero-copy > .kicker + p,
.aelina-copy > .kicker + p {
    margin-top: 22px;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.06; }
h1 { max-width: 720px; font-size: clamp(3.1rem, 8vw, 7.5rem); }
h2 { font-size: clamp(2rem, 5vw, 4.1rem); }
h3 { font-size: 1.55rem; }
h4 { font-size: 1.15rem; }
.title-with-icon {
    display: flex;
    align-items: center;
    gap: var(--title-icon-gap);
}
h1.title-with-icon {
    max-width: 920px;
}
.title-with-icon span {
    min-width: 0;
}
.title-icon {
    flex: 0 0 auto;
    width: var(--title-icon-size);
    height: var(--title-icon-size);
    object-fit: contain;
    filter: drop-shadow(0 12px 34px rgba(216, 166, 61, .22));
}
.hero-title .title-icon {
    width: var(--title-icon-size);
    height: var(--title-icon-size);
}
.hero-title {
    font-size: clamp(2rem, 5vw, 4.1rem);
}
.title-icon-shift-down {
    transform: translateY(5px);
}
.hero-copy > p:not(.kicker) {
    max-width: 680px;
    color: #d7e0eb;
    font-size: 1.18rem;
    line-height: 1.7;
    text-align: justify;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 680px;
    margin-top: 28px;
}
.hero-news {
    display: grid;
    gap: 12px;
    min-width: 0;
}
.mini-posts {
    display: grid;
    gap: 10px;
}
.mini-post {
    padding: 12px 14px;
    border: 1px solid rgba(159, 193, 229, .18);
    border-radius: 8px;
    background: rgba(12, 18, 29, .34);
}
.mini-post.featured {
    border-color: rgba(216, 166, 61, .34);
    background: rgba(28, 25, 22, .38);
}
.mini-post time {
    display: block;
    margin-bottom: 5px;
    color: var(--gold);
    font-size: .76rem;
    font-weight: 800;
}
.mini-post h3 {
    font-size: clamp(1.02rem, 1.5vw, 1.25rem);
    line-height: 1.18;
}
.mini-post p {
    margin: 7px 0 0;
    color: #c7d1df;
    line-height: 1.55;
    text-align: justify;
}
.button, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255,255,255,.06);
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
}
.button.primary, button.primary {
    border-color: rgba(216, 166, 61, .66);
    background: linear-gradient(135deg, #d8a63d, #7bc7ed);
    color: #07101a;
}
.button.ghost { background: rgba(7, 11, 18, .38); }
.youtube-button {
    gap: 9px;
    border-color: rgba(255, 0, 0, .78);
}
.youtube-button::after {
    content: "";
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid #ff0000;
}
.youtube-button:hover {
    border-color: #ff0000;
}

.section {
    padding: 64px clamp(18px, 5vw, 64px) 86px;
    border-top: 1px solid var(--line);
}
.section-frame {
    width: min(var(--content-max), 100%);
    margin-left: auto;
    margin-right: auto;
    padding: clamp(20px, 3.4vw, 34px);
}
.section-series {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.section-series::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url("fondo_human_horizon.png?v=20260611b") center / cover no-repeat;
    filter: brightness(80%);
    pointer-events: none;
}
.section-series > * {
    position: relative;
    z-index: 1;
}
.section-music {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.section-music::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.section-music::before {
    z-index: -1;
    background: url("fondo_musica.jpg?v=20260611a") center / cover no-repeat;
    filter: brightness(80%);
}
.section-music > * {
    position: relative;
    z-index: 1;
}
.section-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 24px;
    max-width: var(--content-max);
    margin: 0 auto 36px;
}
.section-head > div {
    min-width: 0;
    width: 100%;
}
.section-head > img {
    width: min(210px, 32vw);
    max-height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 12px 38px rgba(216, 166, 61, .24));
}
.section-head.simple { align-items: start; }
.section-note {
    width: calc(100% - var(--title-icon-size) - var(--title-icon-gap));
    max-width: none;
    margin: 12px 0 0 calc(var(--title-icon-size) + var(--title-icon-gap));
    color: var(--muted);
    line-height: 1.55;
}
.section-note-kicker {
    color: var(--gold);
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
}
.season-block, .episode-viewer, .media-grid, .empty-state {
    max-width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
}
.season-block { margin-bottom: 48px; }
.season-block > p {
    max-width: 760px;
    color: var(--muted);
    line-height: 1.65;
}
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}
.episode-viewer {
    display: grid;
    grid-template-columns: minmax(136px, 180px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.episode-sidebar {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(12, 18, 29, .72);
}
.episode-season-select {
    display: grid;
    gap: 7px;
    color: var(--gold);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}
.episode-season-select select {
    width: 100%;
    min-height: 38px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #111827;
    color: var(--text);
    font: inherit;
    text-transform: none;
}
.episode-list {
    display: grid;
    gap: 8px;
}
.episode-list[hidden],
.episode-detail[hidden] {
    display: none;
}
.episode-tab {
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255,255,255,.04);
    color: var(--muted);
    font: inherit;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}
.episode-tab:hover,
.episode-tab.active {
    border-color: rgba(216, 166, 61, .72);
    background: rgba(216, 166, 61, .14);
    color: var(--text);
}
.episode-detail-panel {
    min-width: 0;
}
.episode-detail {
    width: 100%;
}
.media-grid.compact { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.media-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 22px 70px rgba(0,0,0,.25);
}
.video-consent {
    position: relative;
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    padding: 16px;
    background:
        radial-gradient(circle at center, rgba(119, 200, 239, .18), transparent 58%),
        linear-gradient(135deg, rgba(216, 166, 61, .22), rgba(23, 57, 82, .38));
}
.video-consent iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.video-external::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(7, 11, 18, .14);
    pointer-events: none;
}
.video-external.has-cover {
    background: #070b12;
}
.song-cover,
.media-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-external.has-cover::before {
    z-index: 1;
    background: rgba(7, 11, 18, .18);
}
.youtube-external-link {
    position: relative;
    z-index: 2;
}
.video-external.has-cover .youtube-external-link {
    transform: translateY(clamp(43px, 5.5vw, 77px));
}
.media-body { padding: 18px; }
.media-body span {
    display: block;
    margin-bottom: 8px;
    color: var(--cyan);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}
.media-body p, .empty-state p, .aelina-copy p {
    color: var(--muted);
    line-height: 1.65;
}
.aelina-copy .kicker {
    color: var(--gold);
}
.feature-list {
    display: grid;
    gap: 10px;
    margin: 22px 0 26px;
    padding: 0;
    list-style: none;
}
.feature-list li {
    position: relative;
    padding-left: 22px;
    color: var(--text);
    line-height: 1.45;
}
.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 16px rgba(216, 166, 61, .45);
}
.empty-state {
    padding: 30px;
    border: 1px dashed rgba(119, 200, 239, .36);
    border-radius: 8px;
    background: rgba(12, 18, 29, .62);
}
.aelina-band {
    position: relative;
    width: 100%;
    max-width: none;
    min-height: 560px;
    overflow: hidden;
    isolation: isolate;
}
.aelina-band::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.aelina-band::before {
    z-index: 0;
    background: url("fondo_aelina_ia.png?v=20260611a") center / cover no-repeat;
    filter: brightness(80%);
}
.aelina-head,
.aelina-copy,
.aelina-frame {
    position: relative;
    z-index: 1;
}
.aelina-frame {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 380px);
    column-gap: 38px;
    row-gap: 10px;
    align-items: start;
}
.aelina-head {
    grid-column: 1 / -1;
}
.aelina-frame > img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    filter: drop-shadow(0 24px 55px rgba(119, 200, 239, .26));
}
.aelina-interface-shot {
    align-self: center;
    justify-self: center;
    width: min(100%, 430px);
}
.status-pill {
    display: inline-flex;
    padding: 10px 14px;
    border: 1px solid rgba(116, 211, 157, .4);
    border-radius: 999px;
    color: var(--green);
    font-weight: 800;
}
.version-meta {
    display: inline-flex;
    align-items: center;
    margin-left: 12px;
    color: var(--green);
    font-weight: 800;
}
.site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 28px 18px 90px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}
.site-footer a,
.site-footer .link-button,
.site-footer span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    line-height: 1.3;
}
.site-footer .link-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
}
.site-footer .link-button:hover {
    color: var(--cyan);
    background: transparent;
}

.cookie-banner {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    max-width: 1060px;
    margin: 0 auto;
    padding: 16px;
    border: 1px solid rgba(216, 166, 61, .36);
    border-radius: 8px;
    background: rgba(9, 14, 23, .96);
    box-shadow: 0 20px 80px rgba(0,0,0,.48);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 6px 0 0; color: var(--muted); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions button {
    min-width: 132px;
}
.cookie-actions button.primary {
    border-color: rgba(216, 166, 61, .58);
    background: rgba(255,255,255,.06);
    color: var(--text);
}

.legal-main {
    position: relative;
    min-height: 70vh;
    padding: 86px clamp(18px, 5vw, 64px);
}
.legal-close {
    position: absolute;
    top: 34px;
    right: max(18px, calc((100vw - 900px) / 2));
    z-index: 3;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(12, 18, 29, .9);
    color: var(--text);
    font-size: 26px;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 14px 40px rgba(0,0,0,.28);
}
.legal-close:hover {
    border-color: rgba(216, 166, 61, .72);
    color: var(--gold);
}
.legal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto 16px;
}
.legal-tabs a {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    text-decoration: none;
    background: rgba(12, 18, 29, .72);
}
.legal-tabs a.active {
    color: var(--text);
    border-color: rgba(216, 166, 61, .58);
}
.legal-main article {
    max-width: 900px;
    margin: 0 auto;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}
.legal-main h1 {
    max-width: none;
    margin: 0 0 18px;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.15;
}
.legal-main h2 {
    margin: 28px 0 10px;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.2;
}
.legal-main p { color: var(--muted); line-height: 1.7; }
.download-captcha-form {
    display: grid;
    gap: 14px;
    max-width: 420px;
    margin-top: 18px;
}
.download-captcha-form label {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-weight: 700;
}
.download-captcha-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(7, 11, 18, .86);
    color: var(--text);
    font: inherit;
}
.download-captcha-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.download-again-link {
    color: var(--muted);
    font-size: .95rem;
    text-decoration: underline;
    text-decoration-color: rgba(184, 199, 217, .42);
    text-underline-offset: 3px;
}
.download-again-link:hover {
    color: var(--text);
}
.download-warning-label {
    color: var(--danger);
    font-weight: 800;
}
.legal-data {
    display: grid;
    grid-template-columns: minmax(150px, .34fr) minmax(0, 1fr);
    gap: 8px 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(4, 8, 14, .42);
}
.legal-data dt { color: var(--cyan); font-weight: 800; }
.legal-data dd { margin: 0; color: var(--text); }
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.legal-table th, .legal-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
.legal-table th {
    color: var(--cyan);
    background: rgba(4, 8, 14, .58);
}
.legal-table td { color: var(--muted); }

.admin-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    background:
        linear-gradient(rgba(7, 11, 18, .84), rgba(7, 11, 18, .94)),
        url("fondo_aelina_ia.png?v=20260611a") center / cover no-repeat;
}
.admin-page {
    background: #20263A;
    color: #f3f3f3;
    font-size: 14px;
}
.admin-page h1,
.admin-page h2,
.admin-page h3,
.admin-page h4 {
    max-width: none;
    margin: 0 0 12px;
    line-height: 1.18;
}
.admin-page h1 { font-size: 1.08rem; }
.admin-page h2 { font-size: 1.02rem; }
.admin-page h3 { font-size: .98rem; }
.admin-page h4 { font-size: 1rem; }
.admin-page .admin-header {
    position: static;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: auto;
    margin: 24px 24px 0;
    padding: 0;
    background: transparent;
    border-bottom: 0;
    backdrop-filter: none;
}
.panel-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.panel-brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}
.panel-brand h1 {
    margin: 0;
    color: #e8eef7;
    font-size: 2rem;
}
.top-quick {
    justify-self: center;
    text-align: center;
}
.top-quick > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 13px;
    border: 1px solid #4c98de;
    border-radius: 4px;
    background: #2f7fd1;
    color: #f5fbff;
    font-weight: 700;
}
.top-quick-version {
    margin-top: 4px;
    color: #cfcfcf;
    font-size: 12px;
}
.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 24px 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #30384c;
}
.admin-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid #3c465d;
    border-radius: 4px;
    background: #222837;
    color: #dce5f3;
    font-weight: 700;
    text-decoration: none;
}
.admin-tabs a:hover,
.admin-tabs a.active {
    background: #2e3650;
    color: #f3f7ff;
    border-color: #6f83aa;
    box-shadow: inset 0 -2px 0 #7ba8d8;
}
.admin-tab-icon,
.admin-tabs a[data-u83-tab="musica"]::before {
    flex: 0 0 auto;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255,255,255,.06);
}
.admin-tab-icon-contain {
    object-fit: contain;
}
.admin-tabs a[data-u83-tab="musica"]::before {
    content: "";
    display: inline-block;
    background: rgba(255,255,255,.06) url("musica-menu-icon.svg?v=20260611a") center / cover no-repeat;
}
.top-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 8px;
}
.button-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid #3c465d;
    border-radius: 4px;
    background: #242a3a;
    color: #dde6f5;
    font-weight: 700;
    text-decoration: none;
}
.button-link:hover {
    background: #30384d;
    border-color: #6f83aa;
    color: #f3f7ff;
}
.icon-button {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    line-height: 1;
}
.top-action-icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255,255,255,.06);
}
.top-action-icon-contain {
    object-fit: contain;
}
.top-actions button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.admin-page button,
.admin-page .button {
    padding: 9px 13px;
    border: 1px solid #4b5d78;
    border-radius: 4px;
    background: #2a3147;
    color: #f3f3f3;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.admin-page button:hover,
.admin-page .button:hover {
    background: #30384d;
    border-color: #5a6987;
}
.admin-page .button.primary,
.admin-page button.primary {
    border-color: #4c98de;
    background: #2f7fd1;
    color: #f5fbff;
}
.admin-page .button.primary:hover,
.admin-page button.primary:hover {
    background: #3d8ede;
    border-color: #78b6ee;
}
.login-box, .admin-form, .admin-section {
    border: 1px solid #30384c;
    border-radius: 6px;
    background: #1b202c;
}
.login-box {
    width: min(430px, 100%);
    padding: 24px;
}
.login-box img { width: 74px; }
.login-box h1 { font-size: 2rem; }
.admin-header form { margin: 0; }
.admin-header button {
    min-height: 38px;
    padding: 9px 13px;
    border-radius: 4px;
    background: #242a3a;
    color: #dde6f5;
    border-color: #3c465d;
}
.admin-main {
    margin: 0 24px 80px;
}
.admin-section {
    margin: 18px 0;
    padding: 16px;
}
.stats-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}
.stats-title-row h2 {
    margin: 0;
    font-size: 1.5rem;
    line-height: normal;
}
.stats-quick-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
    font-size: 16px;
}
.stats-quick-filter span {
    color: #dbe6f5;
    font-size: inherit;
    font-weight: 700;
}
.stats-quick-filter select {
    width: auto;
    min-width: 170px;
}
.stats-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 12px;
    margin: 0;
}
.metric {
    padding: 14px;
    border: 0;
    border-radius: 4px;
    background: #151a24;
}
.metric span {
    display: block;
    color: #cfcfcf;
    font-size: 16px;
}
.metric strong {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-size: 24px;
}
.stats-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 14px;
    align-items: start;
    margin: 14px 0;
}
.stats-main-chart-column {
    min-width: 0;
}
.stats-breakdown-column {
    display: grid;
    gap: 12px;
}
.stats-breakdown {
    padding: 14px;
    border: 1px solid #30384c;
    border-radius: 6px;
    background: #151a24;
}
.stats-breakdown h2 {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.2;
}
.stat-split-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 31px;
    padding: 7px 0 9px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.stat-split-row:last-child { border-bottom: 0; }
.stat-split-row span,
.stat-split-row strong {
    position: relative;
    z-index: 1;
}
.stat-split-row span {
    overflow: hidden;
    color: #dbe6f5;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.stat-split-row strong {
    color: #fff;
    font-size: 13px;
}
.stat-split-row em {
    position: absolute;
    left: 0;
    bottom: 3px;
    height: 3px;
    border-radius: 999px;
    background: #d8a63d;
    opacity: .9;
}
.stats-chart {
    display: flex;
    align-items: stretch;
    gap: 8px;
    min-height: 214px;
    margin: 14px 0;
    padding: 14px;
    overflow-x: auto;
    border: 1px solid #30384c;
    border-radius: 6px;
    background: #151a24;
}
.stats-day {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 8px;
    min-width: 34px;
    color: #cfcfcf;
    text-align: center;
}
.stats-bars {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 4px;
    height: 160px;
}
.stats-bars span {
    display: block;
    width: 10px;
    min-height: 2px;
    border-radius: 3px 3px 0 0;
}
.bar-visits { background: #7ba8d8; }
.bar-downloads { background: #44a07e; }
.stats-chart {
    display: none;
}
.chart-card {
    padding: 14px;
    border: 1px solid #2f3748;
    border-radius: 6px;
    background: #151a24;
}
.stats-chart-card {
    margin: 0;
}
.stats-chart-card h2 {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.2;
}
.chart-svg {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    background: #10141d;
}
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
    color: #cfcfcf;
    font-size: 13px;
}
.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: -1px;
}
.stats-table-tools-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0 10px;
}
.stats-clean-history-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
}
.date-selects {
    display: flex;
    gap: 6px;
}
.date-part span {
    display: none;
}
.date-part select {
    width: auto;
    min-width: 70px;
    padding: 7px 8px;
}
.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.stats-table th,
.stats-table td {
    padding: 8px;
    border-bottom: 1px solid #30384c;
    text-align: left;
}
.stats-table th {
    color: #dbe6f5;
    font-weight: 700;
}
.admin-columns {
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(320px, 1.2fr);
    gap: 12px;
    align-items: start;
}
.admin-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 12px;
}
.settings-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 16px;
}
.settings-subtabs button {
    min-height: 36px;
    padding: 8px 14px;
    border: 1px solid #30384c;
    border-radius: 6px;
    background: #151a24;
    color: #cfcfcf;
}
.settings-subtabs button:hover,
.settings-subtabs button.active {
    border-color: #7ba8d8;
    background: #202a3c;
    color: #fff;
}
.settings-subpanel[hidden] {
    display: none;
}
.content-manager {
    display: grid;
    grid-template-columns: minmax(260px, .42fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}
.manager-list,
.manager-editor {
    padding: 14px;
    border: 1px solid #30384c;
    border-radius: 6px;
    background: #151a24;
}
.manager-list h3,
.manager-editor h3 {
    margin: 10px 0 8px;
    color: #eef4ff;
    font-size: 18px;
}
.manager-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.manager-items {
    display: grid;
    gap: 7px;
    margin-bottom: 14px;
}
.manager-items.compact {
    gap: 6px;
}
.manager-item {
    display: grid;
    gap: 4px;
    padding: 9px 10px;
    border: 1px solid #30384c;
    border-radius: 4px;
    background: #1b202c;
    color: #dce5f3;
    text-decoration: none;
}
.manager-item:hover,
.manager-item.active {
    border-color: #7ba8d8;
    background: #202a3c;
    color: #fff;
}
.manager-item strong {
    font-size: 14px;
    line-height: 1.25;
}
.manager-item small,
.empty-mini {
    color: #aeb9c9;
    font-size: 12px;
    line-height: 1.35;
}
.empty-mini {
    margin: 0 0 14px;
}
.admin-form.editor-form {
    margin: 0;
    padding: 0;
}
.delete-form.inline-delete {
    margin: 12px 0 0;
}
.admin-form {
    display: grid;
    gap: 12px;
    margin: 14px 0;
    padding: 14px;
}
.admin-form.wide { padding: 14px; }
.admin-form.mini { background: #151a24; }
.admin-cover-preview {
    display: grid;
    gap: 8px;
}
.admin-cover-preview span,
.admin-file-empty {
    color: #b9c4d6;
    font-size: .86rem;
}
.admin-cover-preview img {
    width: min(100%, 320px);
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid #30384c;
    border-radius: 6px;
}
.new-item { border-color: #6f83aa; }
.delete-form {
    margin: -6px 0 18px;
}
.delete-form button,
.admin-page button.danger {
    min-height: 34px;
    padding: 7px 12px;
    border-color: #a34b4b;
    background: #7d343b;
    color: #fff5f5;
}
.delete-form button:hover,
.admin-page button.danger:hover {
    background: #914048;
    border-color: #c15c5c;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.compact-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.admin-page label,
.admin-login label {
    display: grid;
    gap: 7px;
    color: #d7e0eb;
    font-weight: 700;
}
.admin-page label.check,
.admin-login label.check {
    display: flex;
    align-items: center;
    gap: 9px;
}
.admin-page input,
.admin-page textarea,
.admin-page select,
.admin-login input,
.admin-login textarea,
.admin-login select {
    width: 100%;
    min-height: 38px;
    padding: 8px;
    border: 1px solid #4a5368;
    border-radius: 4px;
    background: #141722;
    color: #fff;
    font: inherit;
}
.admin-page .stats-quick-filter select {
    width: auto;
    min-width: 170px;
}
.admin-page textarea,
.admin-login textarea { min-height: 96px; resize: vertical; }
.admin-page .small {
    color: #cfcfcf;
    font-size: 13px;
    word-break: break-all;
}
.admin-page .alert {
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #30384c;
    background: #151a24;
}
.admin-page .alert.ok { background: #173b22; border-color: #3f8b55; color: #f3f3f3; }
.admin-page .alert.error { background: #4a1d1d; border-color: #a34b4b; color: #f3f3f3; }

@media (max-width: 760px) {
    :root {
        --title-icon-size: 46px;
        --title-icon-gap: 12px;
    }
    .site-header, .admin-header { position: static; align-items: flex-start; flex-direction: column; }
    .admin-page .admin-header {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        margin: 14px 14px 0;
    }
    .admin-tabs {
        justify-self: auto;
        width: 100%;
    }
    .admin-tabs a {
        flex: 1 1 auto;
    }
    .top-actions {
        justify-self: auto;
        flex-wrap: wrap;
    }
    .admin-main {
        margin: 18px 14px 80px;
    }
    .stats-metrics,
    .stats-main-grid {
        grid-template-columns: 1fr;
    }
    .stats-title-row {
        align-items: flex-start;
        flex-direction: column;
    }
    .stats-quick-filter {
        justify-content: flex-start;
        width: 100%;
    }
    .stats-table-tools-row {
        align-items: flex-start;
        flex-direction: column;
    }
    .stats-clean-history-form {
        justify-content: flex-start;
        width: 100%;
    }
    .hero { min-height: 76vh; }
    .hero-inner { padding-top: 42px; }
    .section { padding-top: 42px; padding-bottom: 58px; }
    .section-head, .hero-main, .aelina-frame, .episode-viewer, .admin-columns, .content-manager { grid-template-columns: 1fr; display: grid; }
    .title-with-icon { gap: 12px; }
    h1.title-with-icon { font-size: clamp(2.55rem, 13vw, 4.2rem); }
    h1.hero-title { font-size: clamp(2rem, 11vw, 3.25rem); }
    .hero-title .title-icon,
    .title-icon {
        width: 46px;
        height: 46px;
    }
    .episode-list {
        grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    }
    .section-head > img { width: 160px; }
    .cookie-banner { align-items: stretch; flex-direction: column; }
    .cookie-actions button { flex: 1 1 auto; }
}
