
:root {
    --bg: #0b0d11;
    --bg-2: #0f1116;
    --surface: #15171c;
    --surface-2: #1c1e24;
    --glass: rgba(255, 255, 255, 0.035);
    --glass-strong: #14161b;
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.2);
    --text: #eef1f7;
    --muted: #99a0ad;
    --muted-2: #686e7a;

    --accent: #3d8bff;
    --accent-2: #5ea3ff;
    --accent-ink: #ffffff;
    --blue: #3d8bff;
    --blue-2: #5ea3ff;

    --radius: 6px;
    --radius-sm: 4px;
    --radius-lg: 10px;

    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 24px;
    --s-6: 32px;
    --s-7: 48px;
    --s-8: 72px;

    --shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.7);
    --grad: var(--accent);
}

body {
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.hero-copy h1,
h1 {
    letter-spacing: -0.025em;
    font-weight: 800;
    line-height: 1.02;
}

.section-kicker {
    color: var(--muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 11px;
}

.section-heading h2,
.hero-copy h1 {
    letter-spacing: -0.018em;
}

.section-heading h2 {
    font-weight: 800;
    font-size: clamp(22px, 2.4vw, 30px);
}

.site-header {
    background: #0e0e10;
    border-bottom: 1px solid var(--border);
    backdrop-filter: none;
}

@media (min-width: 921px) {
    .site-header {
        grid-template-columns: auto auto minmax(180px, 1fr) auto;
        gap: 24px;
        padding: 0 32px;
    }
}

.site-header.is-scrolled,
.site-header.nav-open {
    background: #0e0e10;
    border-bottom-color: var(--border-strong);
    box-shadow: none;
}

.main-nav {
    gap: 26px;
}

.main-nav a {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}

.main-nav a.is-active,
.main-nav a:hover {
    color: var(--text);
}

.main-nav a::after {
    background: var(--accent);
    box-shadow: none;
    height: 2px;
}

.header-search input {
    min-height: 44px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
}

.header-search input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.search-submit {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: none;
}

.button {
    border-radius: var(--radius);
    font-weight: 700;
    letter-spacing: 0.005em;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.08s ease;
}

.button:hover {
    transform: none;
}

.button-primary {
    background: var(--accent);
    color: var(--accent-ink);
    text-shadow: none;
    box-shadow: none;
}

.button-primary::before {
    display: none;
}

.button-primary:hover {
    background: var(--accent-2);
    box-shadow: none;
}

.button-primary:active {
    transform: translateY(1px) scale(1);
}

.button-subtle,
.button-ghost {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text);
}

.button-subtle:hover,
.button-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--text);
}

.button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.button:disabled,
.button[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.hero-save {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: none;
}

.icon-link,
.icon-button,
.favorite-button,
.hero-arrow,
.rail-arrow {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: none;
}

.icon-link:hover,
.icon-button:hover,
.favorite-button:hover,
.hero-arrow:hover,
.rail-arrow:hover {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: none;
}

.hero-meta span:not(.rating-badge),
.chip-row span {
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    font-weight: 600;
}

.media-grid {
    gap: 22px;
}

.media-poster {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: none;
}

.media-card:hover .media-poster {
    transform: none;
    border-color: var(--border-strong);
    box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.7);
}

.media-card:hover .media-poster img {
    transform: scale(1.035);
    filter: none;
}

.poster-gradient {
    background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.72));
}

.media-poster .rating-badge,
.rating-badge {
    border-radius: var(--radius-sm);
    background: rgba(8, 8, 9, 0.72);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 700;
    backdrop-filter: none;
}

.rating-high {
    color: #8fd6a6;
}

.rating-mid {
    color: #e7c25a;
}

.rating-low {
    color: #e98a8a;
}

.media-type-badge {
    border-radius: var(--radius-sm);
    border: none;
    background: rgba(8, 8, 9, 0.62);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 10px;
    font-weight: 700;
    backdrop-filter: none;
}

.media-card-body {
    padding-top: 10px;
}

.media-title {
    font-weight: 700;
    line-height: 1.22;
}

.media-meta {
    margin-top: 3px;
    color: var(--muted);
}

.genre-card {
    border-radius: var(--radius);
}

.quick-categories a {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.premium-form input,
.premium-form textarea,
.search-panel input,
.search-panel select,
.premium-search-panel input[type="search"] {
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
}

.search-panel,
.catalog-results.standalone {
    border-radius: var(--radius-lg);
}

.player-frame {
    border-radius: var(--radius-lg);
}

.player-tabs {
    border-radius: var(--radius-lg);
    padding: 4px;
    background: rgba(255, 255, 255, 0.045);
    border-color: var(--border);
}

.player-tabs button {
    border-radius: var(--radius);
    min-height: 38px;
    font-weight: 700;
}

.player-tabs button.is-active {
    background: var(--accent);
    color: #fff;
    box-shadow: none;
}

@media (max-width: 920px) {
    .player-tabs button {
        flex: 1 0 auto;
    }
}

@media (max-width: 600px) {
    .watch-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: stretch;
    }

    .watch-actions > .button-primary {
        flex: 1 1 100%;
        order: -1;
    }

    .watch-actions > .watch-room-create,
    .watch-actions > .watch-addlist {
        flex: 1 1 45%;
        min-width: 130px;
        display: flex;
    }

    .watch-actions > .watch-room-create > .button,
    .watch-actions > .watch-addlist > .button,
    .watch-actions > .watch-addlist > summary {
        width: 100%;
    }

    .watch-actions .watch-icon-button {
        flex: 0 0 auto;
    }

    .watch-actions > .button:not(.button-primary):not(.watch-icon-button),
    .watch-actions > a.button-ghost {
        flex: 1 1 45%;
        min-width: 130px;
    }
}

.pagination a,
.pagination span {
    border-radius: var(--radius-sm);
}

.mobile-bottom-nav {
    background: #0e0e10;
    backdrop-filter: none;
    border-top: 1px solid var(--border);
}

.mobile-bottom-nav a.is-active,
.mobile-bottom-nav a.is-active .bn-ic {
    color: var(--accent);
}

.site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 18px;
    padding: 38px 24px 42px;
    border-top: 1px solid var(--border);
    background: none;
    color: var(--muted);
}

.site-footer .site-footer-brand {
    justify-content: center;
    font-size: 16px;
    color: var(--text);
}

.site-footer .site-footer-app {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    margin: 0;
}

.footer-create-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    cursor: pointer;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: var(--accent-ink, #fff);
    font-weight: 800;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    transition: filter .15s ease, transform .08s ease, box-shadow .15s ease;
}

.footer-create-btn:hover {
    filter: brightness(1.08);
    box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--accent) 70%, transparent);
    color: var(--accent-ink, #fff);
}

.footer-create-btn:active {
    transform: translateY(1px);
}

.footer-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    cursor: pointer;
    border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent-2);
    font-weight: 800;
    font-size: 14px;
    line-height: 1;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.footer-install-btn:hover {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 22%, transparent);
    color: #fff;
}

.site-footer .site-footer-contacts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 10px;
    width: 100%;
    max-width: 760px;
    font-size: 13px;
    font-weight: 700;
}

.site-footer .site-footer-contacts span {
    flex-basis: 100%;
    margin-top: 2px;
    color: var(--muted-2);
}

@media (max-width: 768px) {
    .site-footer {
        gap: 15px;
        padding: 28px 16px calc(var(--bottom-nav-height, 76px) + 22px + env(safe-area-inset-bottom));
    }

    .site-footer .site-footer-contacts {
        gap: 8px;
    }
}

.pwa-install-action {
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: none;
}

.pwa-install-banner {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: none;
    backdrop-filter: none;
}

@media (max-width: 920px) {
    .hero-controls {
        left: 50%;
        right: auto;
        bottom: 14px;
        transform: translateX(-50%);
    }

    .hero-slide {
        padding-bottom: 92px;
    }
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

:root {
    --premium-grad: linear-gradient(95deg, #7c5cff 0%, #b24be0 52%, #ff6aa9 100%);
}

.player-tabs button.premium-tab {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.045);
}

.premium-tab-text {
    font-weight: 900;
    letter-spacing: 0.16em;
    font-size: 12px;
    line-height: 1;
    background: var(--premium-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.premium-tab-bar {
    width: 26px;
    height: 3px;
    border-radius: 999px;
    background: var(--premium-grad);
    transition: width 0.2s ease;
}

.player-tabs button.premium-tab:hover {
    background: rgba(255, 255, 255, 0.08);
}

.player-tabs button.premium-tab:hover .premium-tab-bar {
    width: 38px;
}

.player-tabs button.premium-tab.is-active {
    background: var(--premium-grad);
    box-shadow: 0 8px 22px -8px rgba(178, 75, 224, 0.6);
}

.player-tabs button.premium-tab.is-active .premium-tab-text {
    background: none;
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.player-tabs button.premium-tab.is-active .premium-tab-bar {
    width: 38px;
    background: rgba(255, 255, 255, 0.9);
}

.player-frame.premium-frame {
    aspect-ratio: auto;
    height: auto;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.premium-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.premium-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1 1 160px;
    min-width: 130px;
}

.premium-field > span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.premium-field select {
    min-height: 42px;
    padding: 0 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position:
        calc(100% - 16px) center,
        calc(100% - 11px) center;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.premium-field select:focus {
    outline: none;
    border-color: #b24be0;
    background-color: rgba(255, 255, 255, 0.06);
}

.premium-field select:disabled {
    opacity: 0.55;
    cursor: default;
}

.premium-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: visible;
    background: #000;
    border: 1px solid var(--border);
}

.premium-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: var(--radius);
}

.premium-vjs {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 2;
    --media-video-border-radius: 0;
}

.premium-vjs > * {
    width: 100%;
    height: 100%;
}

.premium-vjs:not([hidden]) ~ .premium-video {
    display: none;
}

.premium-vjs .media-default-skin,
.premium-vjs .media-default-skin--video,
.premium-vjs video {
    border-radius: 0 !important;
}

:fullscreen {
    --media-video-border-radius: 0 !important;
    border-radius: 0 !important;
}

:-webkit-full-screen {
    --media-video-border-radius: 0 !important;
    border-radius: 0 !important;
}

:fullscreen video,
:fullscreen .media-default-skin,
:fullscreen .media-default-skin--video {
    border-radius: 0 !important;
}

:-webkit-full-screen video,
:-webkit-full-screen .media-default-skin,
:-webkit-full-screen .media-default-skin--video {
    border-radius: 0 !important;
}

.premium-status {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    text-align: center;
    color: var(--text);
    font-weight: 600;
    background: rgba(8, 8, 11, 0.72);
    pointer-events: none;
}

.premium-status.is-error {
    color: #ffb4c4;
}

.main-nav a.nav-premium {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    border: 0;
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 700;
    background: linear-gradient(100deg, rgba(124, 92, 255, 0.24), rgba(178, 75, 224, 0.2) 55%, rgba(255, 106, 169, 0.16));
    transition: background 0.18s ease, color 0.18s ease;
}

.main-nav a.nav-premium::after {
    display: none;
}

.main-nav a.nav-premium:hover {
    color: #fff;
    background: linear-gradient(100deg, rgba(124, 92, 255, 0.38), rgba(178, 75, 224, 0.34) 55%, rgba(255, 106, 169, 0.26));
}

.main-nav a.nav-premium.is-active {
    color: #fff;
    background: var(--premium-grad);
    box-shadow: none;
}

.nav-premium-star {
    color: #ff8fc0;
    font-size: 12px;
    line-height: 1;
}

.main-nav a.nav-premium.is-active .nav-premium-star {
    color: #fff;
}

.main-nav a.nav-ai {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    border: 0;
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 700;
    background: linear-gradient(100deg, rgba(34, 211, 238, 0.22), rgba(56, 189, 248, 0.18) 55%, rgba(45, 212, 191, 0.16));
    transition: background 0.18s ease, color 0.18s ease;
}

.main-nav a.nav-ai::after {
    display: none;
}

.main-nav a.nav-ai:hover {
    color: #fff;
    background: linear-gradient(100deg, rgba(34, 211, 238, 0.38), rgba(56, 189, 248, 0.32) 55%, rgba(45, 212, 191, 0.26));
}

.main-nav a.nav-ai.is-active {
    color: #fff;
    background: linear-gradient(100deg, #22d3ee, #38bdf8 55%, #2dd4bf);
    box-shadow: none;
}

.nav-ai-star {
    color: #67e8f9;
    font-size: 12px;
    line-height: 1;
}

.main-nav a.nav-ai.is-active .nav-ai-star {
    color: #fff;
}

.main-nav a.nav-install {
    display: none;
}

@media (max-width: 920px) {
    .main-nav a.nav-install {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-top: 10px;
        padding-top: 16px;
        border-top: 1px solid var(--border);
        color: var(--text);
        font-weight: 600;
    }

    .main-nav a.nav-install .fa {
        color: var(--red);
        font-size: 18px;
        min-width: 22px;
        text-align: center;
    }

    .main-nav a.nav-install:hover {
        background: rgba(255, 255, 255, 0.06);
    }
}

.player-tabs button.is-premium-provider .player-tab-pi {
    font-size: 11px;
    color: #c6b6ff;
}

.player-tabs button.is-premium-provider.is-active .player-tab-pi {
    color: #fff;
}

.player-tabs button.is-premium-locked {
    color: var(--muted);
}

.premium-locked-frame {
    display: grid;
    place-items: center;
}

.premium-locked {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 24px;
}

.premium-locked-icon {
    font-size: 30px;
    color: #c6b6ff;
}

.premium-locked strong {
    font-size: 20px;
    color: var(--text);
}

.premium-locked span {
    color: var(--muted);
}

.premium-locked-cta {
    margin-top: 6px;
    background: var(--premium-grad);
    border: 0;
    color: #fff;
}

.account-name-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    vertical-align: middle;
    margin-left: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: var(--premium-grad);
}

.account-name-badge .fa {
    font-size: 10px;
}

.account-premium-card,
.account-premium-upsell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.account-premium-card {
    border: 1px solid rgba(160, 110, 240, 0.45);
    background: linear-gradient(100deg, rgba(124, 92, 255, 0.12), rgba(255, 255, 255, 0.02));
}

.account-premium-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: var(--premium-grad);
}

.account-premium-info h2 {
    margin: 10px 0 4px;
}

.account-premium-info p {
    color: var(--muted);
    margin: 0;
}

.account-premium-history {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.account-premium-history li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
}

.account-premium-history strong {
    letter-spacing: 0.04em;
}

.account-premium-history span {
    color: var(--muted);
}

.account-gift-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.account-gift-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
}

.account-gift-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.account-gift-code {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #eaf0fb;
    word-break: break-all;
}

.account-gift-meta {
    font-size: 12.5px;
    color: var(--muted);
}

.account-gift-item .button {
    margin-left: auto;
    flex-shrink: 0;
}

.account-premium-history em {
    margin-left: auto;
    color: var(--muted-2, #686e7a);
    font-style: normal;
    font-size: 13px;
}

.kinonox-story-card.is-premium {
    border: 2px solid rgba(124, 92, 255, 0.85);
    box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.35), 0 24px 60px -22px rgba(124, 92, 255, 0.55);
}

.kinonox-story-card.is-premium .story-brand span:last-child {
    color: #c9b8ff;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.premium-name-badge {
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
    white-space: nowrap;
    vertical-align: middle;
    color: #fff;
    background: var(--premium-grad);
}

.premium-name-badge .fa {
    font-size: 9px;
}

.premium-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.premium-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.premium-download {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #7b3ff2, #b24be0);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 10px 24px -12px rgba(150, 70, 230, 0.95);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.premium-download i {
    font-size: 16px;
    line-height: 1;
}

.premium-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -12px rgba(150, 70, 230, 1);
}

.premium-download:active {
    transform: translateY(0);
}

.premium-download:disabled {
    opacity: 0.5;
    cursor: default;
    box-shadow: none;
    transform: none;
}

.premium-download-note {
    margin: 0;
    flex: 1 1 220px;
    min-width: 0;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--muted);
}

@media (max-width: 620px) {
    .premium-download {
        width: 100%;
        justify-content: center;
    }

    .premium-download-note {
        flex-basis: 100%;
    }
}

.offline-library {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.offline-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.052);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.offline-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, #3ddc84, transparent 58%);
    background: rgba(255, 255, 255, 0.078);
}

.offline-card-media {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid var(--border);
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(61, 139, 255, 0.3), transparent 62%),
        linear-gradient(165deg, #1b2534, #10131b);
    display: flex;
    align-items: center;
    justify-content: center;
}

.offline-card-icon {
    font-size: 30px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1;
}

.offline-card-tag {
    position: absolute;
    top: 6px;
    left: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(61, 220, 132, 0.16);
    border: 1px solid rgba(61, 220, 132, 0.42);
    color: #8af0b3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.offline-card-quality {
    position: absolute;
    left: 6px;
    bottom: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
}

.offline-card-body {
    min-width: 0;
    display: grid;
    align-content: space-between;
    gap: 10px;
}

.offline-card-type {
    align-self: start;
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: #dce3ee;
    font-size: 11.5px;
    font-weight: 800;
}

.offline-card-body h3 {
    margin: 8px 0 0;
    color: #fff;
    font-size: 16px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.offline-card-meta {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
}

.offline-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.offline-card-actions .button {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
}

.offline-card-player:empty {
    display: none;
}

.offline-card .offline-player {
    grid-column: 1 / -1;
    margin: 0;
}

.offline-empty {
    grid-column: 1 / -1;
}

@media (max-width: 620px) {
    .offline-library {
        grid-template-columns: 1fr;
    }

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

.premium-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 48px 24px;
    min-height: 280px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(124, 92, 255, 0.1), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border);
}

.premium-gate-icon {
    font-size: 34px;
    color: #c6b6ff;
}

.premium-gate-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
}

.premium-gate-text {
    max-width: 440px;
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.premium-gate-cta {
    margin-top: 6px;
    background: var(--premium-grad);
    border: 0;
    color: #fff;
}

.premium-gate-refresh {
    margin-top: 6px;
    background: var(--premium-grad);
    border: 0;
    color: #fff;
}

.premium-gate-refresh[disabled] {
    opacity: 0.6;
    cursor: progress;
}

.premium-gate-refresh-status {
    margin-top: 10px;
    font-size: 14px;
    color: var(--muted, #8a93a4);
}

.premium-gate-refresh-status.is-error {
    color: #ff8d8d;
}

.kino-player { outline: none; }
.kino-player .premium-video { object-fit: contain; cursor: pointer; }
.kino-player.kp-playing.kp-idle { cursor: none; }

.kp-center {
    position: absolute; inset: 0; z-index: 3;
    display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.kp-logo {
    pointer-events: auto; cursor: pointer; display: grid; place-items: center;
    background: none; border: 0; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    transition: opacity .26s ease, transform .22s ease;
}
.kp-logo svg { width: 92px; height: 92px; fill: rgba(226, 233, 246, 0.92); filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.55)); }
.kino-player.kp-playing .kp-logo { opacity: 0; transform: scale(.84); pointer-events: none; }

.kp-spin {
    position: absolute; width: 56px; height: 56px; border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2); border-top-color: #fff;
    animation: kp-spin .9s linear infinite; display: none;
}
.kino-player.kp-buffering .kp-spin { display: block; }
.kino-player.kp-buffering .kp-logo { opacity: 0; }
@keyframes kp-spin { to { transform: rotate(360deg); } }

.kp-hint {
    position: absolute; top: 0; bottom: 0; width: 42%; z-index: 4; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    color: #fff; pointer-events: none; opacity: 0; transition: opacity .2s ease;
}
.kp-hint-l { left: 0; }
.kp-hint-r { right: 0; }
.kp-hint svg { width: 30px; height: 30px; fill: #fff; position: relative; z-index: 1; }
.kp-hint.show { opacity: 1; }
.kp-hint.show::before {
    content: ''; position: absolute; top: 50%; left: 50%; width: 92px; height: 92px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.16); transform: translate(-50%, -50%); animation: kp-ripple .6s ease-out;
}
@keyframes kp-ripple { from { opacity: .85; } to { opacity: 0; } }

.kp-rate {
    position: absolute; top: 18px; left: 50%; transform: translateX(-50%) translateY(-6px); z-index: 6;
    display: flex; align-items: center; gap: 7px; padding: 7px 15px; border-radius: 999px;
    color: #fff; font-weight: 800; font-size: 14px;
    background: rgba(16, 18, 24, 0.42);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
    opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
}
.kp-rate svg { width: 18px; height: 18px; }
.kino-player.kp-rate-on .kp-rate { opacity: 1; transform: translateX(-50%); }

.kp-controls {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 14px;
    pointer-events: none; opacity: 0; transform: translateY(10px);
    transition: opacity .3s ease, transform .3s ease;
    font-family: -apple-system, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
}
.kino-player.kp-show .kp-controls,
.kino-player:not(.kp-playing) .kp-controls { opacity: 1; transform: none; pointer-events: auto; }

.kp-bar {
    display: flex; align-items: center; gap: 2px; padding: 6px 12px; border-radius: 26px;
    background: rgba(30, 32, 40, 0.46);
    backdrop-filter: blur(32px) saturate(1.8); -webkit-backdrop-filter: blur(32px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: 0 12px 44px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.kp-btn {
    flex: 0 0 auto; width: 42px; height: 42px; border: 0; background: transparent; color: #fff;
    cursor: pointer; display: grid; place-items: center; border-radius: 12px; opacity: .94;
    transition: background .15s ease, opacity .15s ease;
}
.kp-btn svg { width: 24px; height: 24px; fill: currentColor; }
.kp-btn:hover { background: rgba(255, 255, 255, 0.14); opacity: 1; }
.kp-btn:disabled { opacity: .3; pointer-events: none; }

.kp-cluster { display: contents; }

.kp-q-badge {
    position: absolute; top: -3px; right: -4px; z-index: 2;
    min-width: 16px; height: 14px; padding: 0 3px; border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    background: #2b9dff; color: #fff; font-size: 8.5px; font-weight: 800; letter-spacing: .2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); pointer-events: none;
}
.kp-q-badge:empty { display: none; }

.kp-toast {
    position: absolute; left: 50%; bottom: 84px; transform: translate(-50%, 8px); z-index: 8;
    max-width: 80%; padding: 9px 16px; border-radius: 12px; white-space: nowrap;
    background: rgba(20, 22, 28, 0.7); color: #fff; font-size: 13px; font-weight: 600;
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.kp-toast.show { opacity: 1; transform: translate(-50%, 0); }

.kp-cur, .kp-dur {
    color: #fff; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums;
    padding: 0 4px; white-space: nowrap; flex: 0 0 auto;
}
.kp-cur { margin-left: 6px; }
.kp-dur { color: rgba(255, 255, 255, 0.82); }

.kp-prog {
    position: relative; flex: 1 1 auto; min-width: 60px; height: 18px; margin: 0 10px;
    cursor: pointer; display: flex; align-items: center; touch-action: none;
}
.kp-prog::before {
    content: ''; position: absolute; left: 0; right: 0; height: 4px; border-radius: 4px;
    background: rgba(255, 255, 255, 0.28);
}
.kp-buf, .kp-played { position: absolute; left: 0; height: 4px; border-radius: 4px; width: 0; }
.kp-buf { background: rgba(255, 255, 255, 0.42); }
.kp-played { background: #fff; }
.kp-handle {
    position: absolute; top: 50%; left: 0; width: 13px; height: 13px; border-radius: 50%;
    background: #fff; transform: translate(-50%, -50%) scale(0); transition: transform .15s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.kp-prog:hover .kp-handle { transform: translate(-50%, -50%) scale(1); }

.kp-pop-wrap { position: relative; flex: 0 0 auto; display: flex; align-items: center; }
.kp-speed {
    width: auto; min-width: 42px; padding: 0 10px; height: 42px; border: 0; background: transparent;
    color: #fff; cursor: pointer; border-radius: 12px; font-size: 15px; font-weight: 700;
    font-variant-numeric: tabular-nums; opacity: .94; transition: background .15s ease;
}
.kp-speed:hover { background: rgba(255, 255, 255, 0.14); opacity: 1; }

.kp-menu {
    position: absolute; bottom: calc(100% + 12px); right: 0; z-index: 6; min-width: 134px;
    padding: 8px; border-radius: 18px; background: rgba(30, 32, 40, 0.46);
    backdrop-filter: blur(28px) saturate(1.5); -webkit-backdrop-filter: blur(28px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    opacity: 0; transform: translateY(8px) scale(.97); transform-origin: bottom right;
    pointer-events: none; transition: opacity .18s ease, transform .18s ease;
}
.kp-speed-wrap.open .kp-menu { opacity: 1; transform: none; pointer-events: auto; }
.kp-menu-item {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%;
    padding: 9px 16px; margin: 2px 0; border: 1.5px solid transparent; border-radius: 999px;
    background: transparent; color: rgba(255, 255, 255, 0.9); font-size: 15px; font-weight: 600;
    cursor: pointer; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.kp-menu-item:hover { background: rgba(255, 255, 255, 0.08); }
.kp-menu-item svg { width: 18px; height: 18px; stroke: #fff; opacity: 0; flex: 0 0 auto; }
.kp-menu-item.is-active { border-color: rgba(255, 255, 255, 0.92); color: #fff; }
.kp-menu-item.is-active svg { opacity: 1; }

.kp-vol-pop {
    position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
    z-index: 6; padding: 16px 0; width: 44px; height: 140px; border-radius: 24px;
    display: flex; align-items: center; justify-content: center; background: rgba(30, 32, 40, 0.46);
    backdrop-filter: blur(28px) saturate(1.5); -webkit-backdrop-filter: blur(28px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
}
.kp-vol-pop::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.kp-vol-wrap:hover .kp-vol-pop,
.kp-vol-wrap.open .kp-vol-pop { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.kp-vol-track {
    position: relative; width: 6px; height: 100%; border-radius: 6px;
    background: rgba(255, 255, 255, 0.26); cursor: pointer; touch-action: none;
}
.kp-vol-fill { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 6px; background: #fff; height: 100%; }
.kp-vol-knob {
    position: absolute; left: 50%; bottom: 100%; width: 14px; height: 14px; border-radius: 50%;
    background: #fff; transform: translate(-50%, 50%); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.premium-stage:fullscreen, .premium-stage:-webkit-full-screen {
    aspect-ratio: auto; width: 100vw; height: 100vh; border-radius: 0;
}
.premium-stage:fullscreen .premium-video, .premium-stage:-webkit-full-screen .premium-video { border-radius: 0; }
.premium-stage:fullscreen .kp-controls, .premium-stage:-webkit-full-screen .kp-controls { padding: 22px; }

@media (max-width: 620px) {
    .kp-logo svg { width: 56px; height: 56px; }
    .kp-btn { width: 32px; height: 32px; }
    .kp-btn svg { width: 18px; height: 18px; }
    .kp-cur, .kp-dur { font-size: 11.5px; padding: 0; }
    .kp-controls { padding: 8px; }

    .kp-bar { flex-wrap: wrap; row-gap: 6px; gap: 1px; padding: 6px 9px; border-radius: 20px; }
    .kp-prog { order: -1; flex: 0 0 100%; min-width: 0; margin: 0; height: 16px; }  
    .kp-prog .kp-handle { transform: translate(-50%, -50%) scale(1); }  
    .kp-cur { margin-left: 2px; }
    .kp-dur::before { content: '/'; margin: 0 4px 0 2px; color: rgba(255, 255, 255, 0.6); }  

    .kp-cluster { display: flex; align-items: center; gap: 1px; margin-left: auto; }
    .kp-speed-wrap { display: none; }  
    .kp-dd--gear .kp-dd-btn { width: 32px; height: 32px; }
    .kp-dd--gear .kp-dd-btn svg { width: 19px; height: 19px; }

    .kp-back, .kp-fwd, .kp-pip { display: none; }
}

.kp-sources {
    position: absolute; top: 14px; left: 14px; z-index: 9;
    display: flex; flex-wrap: wrap; gap: 8px;
    opacity: 0; transform: translateY(-6px); pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
}
.kino-player.kp-show .kp-sources,
.kino-player:not(.kp-playing) .kp-sources { opacity: 1; transform: none; pointer-events: auto; }

.kp-dd { position: relative; flex: 0 0 auto; }
.kp-dd-btn {
    display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; cursor: pointer;
    background: rgba(30, 32, 40, 0.46);
    backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
    color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap;
    transition: background .15s ease, border-color .15s ease;
}
.kp-dd-btn:hover { background: rgba(30, 34, 44, 0.42); border-color: rgba(255, 255, 255, 0.24); }
.kp-dd-lbl { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.kp-dd-caret { width: 16px; height: 16px; opacity: .85; transition: transform .2s ease; }
.kp-dd.open .kp-dd-caret { transform: rotate(180deg); }

.kp-dd-menu {
    position: absolute; z-index: 7; min-width: 100%; max-height: 280px; overflow: auto;
    padding: 8px; border-radius: 18px; background: rgba(30, 32, 40, 0.52);
    backdrop-filter: blur(28px) saturate(1.5); -webkit-backdrop-filter: blur(28px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
}
.kp-dd--chip .kp-dd-menu { top: calc(100% + 8px); bottom: auto; left: 0; right: auto; transform: translateY(-8px) scale(.97); transform-origin: top left; }
.kp-dd--gear .kp-dd-menu { top: auto; bottom: calc(100% + 12px); left: auto; right: 0; transform: translateY(8px) scale(.97); transform-origin: bottom right; }
.kp-dd.open .kp-dd-menu { opacity: 1; transform: none; pointer-events: auto; }

.kp-dd--gear { display: flex; align-items: center; }
.kp-dd--gear .kp-dd-btn {
    position: relative;
    width: 42px; height: 42px; padding: 0; justify-content: center; border: 0;
    border-radius: 12px; background: transparent; opacity: .94;
}
.kp-dd--gear .kp-dd-btn:hover { background: rgba(255, 255, 255, 0.14); }
.kp-dd--gear .kp-dd-btn svg { width: 23px; height: 23px; fill: currentColor; }

@media (max-width: 620px) {
    .kp-sources { top: 10px; left: 10px; gap: 6px; }
    .kp-dd-btn { height: 33px; font-size: 12.5px; padding: 0 10px; gap: 6px; }
    .kp-dd-caret { width: 14px; height: 14px; }
    .kp-dd-lbl { max-width: 120px; }
}

.player-card.adblock-blocked .player-tabs,
.player-card.adblock-blocked .player-frame,
.player-card.adblock-blocked .player-fallback {
    display: none !important;
}
.adblock-notice {
    width: min(1120px, 100%);
    aspect-ratio: 16 / 9;
    margin-top: 16px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 24px;
    border: 1px solid rgba(255, 35, 63, 0.32);
    border-radius: 18px;
    background: radial-gradient(circle at 50% 28%, rgba(255, 35, 63, 0.14), rgba(8, 11, 20, 0.97));
}
.adblock-notice-in { max-width: 480px; }
.adblock-ic { font-size: 46px; line-height: 1; margin-bottom: 10px; }
.adblock-notice h3 { margin: 0 0 10px; font-size: clamp(20px, 3.4vw, 28px); color: #fff; }
.adblock-notice p { margin: 0 0 18px; color: #c3cae0; line-height: 1.55; }
@media (max-width: 560px) {
    .adblock-notice { aspect-ratio: auto; min-height: 58vw; padding: 18px; }
}

.lang-switcher { position: relative; display: inline-flex; flex: 0 0 auto; }
.lang-btn {
    display: inline-flex; align-items: center; gap: 5px;
    height: 40px; padding: 0 10px;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    border-radius: 12px; background: rgba(255, 255, 255, 0.05);
    color: var(--text, #fff); cursor: pointer; font-size: 18px; line-height: 1;
}
.lang-btn:hover { border-color: rgba(85, 184, 255, 0.5); }
.lang-btn .lang-caret { font-size: 11px; color: var(--muted, #8b95ad); }
.lang-menu {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 120;
    min-width: 184px; padding: 6px;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
    border-radius: 14px; background: rgba(10, 13, 22, 0.98);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
    display: flex; flex-direction: column; gap: 2px;
}
.lang-menu[hidden] { display: none; }
.lang-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border: 0; border-radius: 10px;
    background: transparent; color: var(--text, #fff);
    font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; width: 100%;
}
.lang-item:hover { background: rgba(255, 255, 255, 0.07); }
.lang-item.is-active { background: rgba(85, 184, 255, 0.16); }
.lang-item .lang-flag { font-size: 18px; }
.lang-flag { line-height: 1; }

.accx {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.accx-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(61, 139, 255, 0.16), rgba(255, 77, 109, 0.06) 60%, rgba(255, 255, 255, 0.03));
}
.accx-hero-info { flex: 1 1 auto; min-width: 0; }
.accx-hero-info h1 {
    margin: 0;
    color: #fff;
    font-size: 26px;
    line-height: 1.15;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.accx-prem-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    color: #1b1400;
    font-size: 12px;
    font-weight: 900;
    background: linear-gradient(135deg, #ffd965, #f0b429);
}
.accx-email {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.accx-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.accx-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: #cfd6e2;
    font-size: 12.5px;
    font-weight: 700;
}
.accx-chip.good { border-color: rgba(61, 220, 132, 0.35); background: rgba(61, 220, 132, 0.12); color: #8af0b3; }
.accx-chip.warn { border-color: rgba(242, 163, 60, 0.42); background: rgba(242, 163, 60, 0.14); color: #ffce8f; }
.accx-hero-actions { display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; }
.accx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 800;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.accx-btn.primary { background: var(--accent); color: #fff; }
.accx-btn.primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.accx-btn.ghost { background: rgba(255, 255, 255, 0.05); border-color: var(--border-strong); color: var(--text); }
.accx-btn.ghost:hover { border-color: var(--text); }

.accx-premium {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.accx-premium:hover { transform: translateY(-2px); }
.accx-premium.is-active { border-color: rgba(242, 201, 76, 0.4); background: linear-gradient(135deg, rgba(242, 201, 76, 0.14), rgba(255, 255, 255, 0.03)); }
.accx-premium.is-upsell { border-color: rgba(61, 139, 255, 0.35); background: linear-gradient(135deg, rgba(61, 139, 255, 0.16), rgba(255, 255, 255, 0.03)); }
.accx-premium-ico {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: 22px;
    color: #1b1400;
    background: linear-gradient(135deg, #ffd965, #f0b429);
}
.accx-premium-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.accx-premium-body strong { color: #fff; font-size: 16px; }
.accx-premium-body small { color: var(--muted); font-size: 13px; }
.accx-premium-go { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; color: var(--accent-2); font-weight: 800; font-size: 14px; }
.accx-premium.is-upsell .accx-premium-go { background: var(--accent); color: #fff; padding: 8px 13px; border-radius: 10px; }

.accx-group { display: grid; gap: 12px; }
.accx-group-title { margin: 8px 2px 0; color: #fff; font-size: 17px; font-weight: 900; }
.accx-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.accx-tile {
    position: relative;
    min-height: 118px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 16px 10px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.accx-tile:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--tc, #3d8bff), transparent 50%);
    background: color-mix(in srgb, var(--tc, #3d8bff), transparent 90%);
}
.accx-tile-ico {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-size: 24px;
    color: var(--tc, #3d8bff);
    background: color-mix(in srgb, var(--tc, #3d8bff), transparent 84%);
}
.accx-tile-label { color: var(--text); font-weight: 800; font-size: 14px; line-height: 1.2; }
.accx-tile-count {
    position: absolute;
    top: 10px;
    right: 10px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--tc, #3d8bff);
    color: #fff;
    font-size: 11.5px;
    font-weight: 900;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.28);
}
.accx-tile-form { display: block; padding: 0; }
.accx-tile-form button {
    width: 100%;
    min-height: 118px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 16px 10px;
    border: 0;
    border-radius: inherit;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.accx-rank {
    display: grid;
    gap: 12px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(160, 107, 255, 0.14), rgba(255, 255, 255, 0.03));
}
.accx-rank-top { display: flex; align-items: center; gap: 14px; }
.accx-rank-trophy {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: 22px;
    color: #ffcf4d;
    background: rgba(255, 207, 77, 0.14);
}
.accx-rank-meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.accx-rank-kicker { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; }
.accx-rank-meta strong { color: #fff; font-size: 19px; }
.accx-rank-score { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; color: #fff; font-size: 22px; font-weight: 900; line-height: 1; }
.accx-rank-score small { color: var(--muted); font-size: 11px; font-weight: 800; margin-top: 3px; }
.accx-rank-bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.accx-rank-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #5ea3ff, #a06bff); }
.accx-rank-next { color: var(--muted); font-size: 13px; }
.accx-rank-mini { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 10px; border-top: 1px solid var(--border); }
.accx-rank-mini span { display: inline-flex; align-items: center; gap: 6px; color: #cfd6e2; font-size: 13px; font-weight: 700; }
.accx-rank-mini i { color: var(--accent-2); }

.accx-section {
    display: grid;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
}
.accx-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.accx-section-head h2 { margin: 0; color: #fff; font-size: 18px; display: inline-flex; align-items: center; gap: 9px; }
.accx-section-head h2 i { color: var(--accent-2); }
.accx-section-head a { color: var(--accent-2); font-weight: 800; font-size: 14px; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }

@media (max-width: 620px) {
    .accx { gap: 14px; }
    .accx-hero { flex-direction: column; text-align: center; padding: 20px 16px; gap: 14px; }
    .accx-hero-info h1 { justify-content: center; font-size: 23px; }
    .accx-email { white-space: normal; }
    .accx-hero-chips { justify-content: center; }
    .accx-hero-actions { flex-direction: row; width: 100%; }
    .accx-btn { flex: 1 1 0; padding: 0 10px; }
    .accx-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .accx-tile { min-height: 110px; }
    .accx-tile-form button { min-height: 110px; }
}

@media (max-width: 768px) {
    .header-search { display: none; }
    .site-header {
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "menu brand actions";
    }
}


.account-page .account-shell {
    display: block;
    max-width: 1080px;
    margin: 0 auto;
}

.account-page .account-content {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.acx-subnav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 24px;
    min-width: 0;
}

.acx-subnav-home {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 16px 0 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-weight: 800;
    font-size: 14px;
}

.acx-subnav-home i {
    font-size: 18px;
    line-height: 1;
}

.acx-subnav-home:hover {
    border-color: var(--border-strong);
    background: var(--surface-2);
}

.acx-subnav-scroll {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px;
    margin: -4px;
    scrollbar-width: none;
}

.acx-subnav-scroll::-webkit-scrollbar {
    display: none;
}

.acx-subnav-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-weight: 800;
    font-size: 14px;
    white-space: nowrap;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.acx-subnav-link i {
    font-size: 16px;
    line-height: 1;
    color: var(--tc, var(--accent));
}

.acx-subnav-link:hover {
    color: var(--text);
    border-color: var(--border-strong);
}

.acx-subnav-link.is-active {
    color: #fff;
    border-color: color-mix(in srgb, var(--tc, var(--accent)), transparent 45%);
    background: color-mix(in srgb, var(--tc, var(--accent)), transparent 84%);
}

.acx-subnav-link.is-active i {
    color: #fff;
}

.account-page .account-page-head {
    padding: 0;
}

.account-page .account-page-head .section-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--accent-2);
}

.account-page .account-page-head h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.1;
}

.account-page .account-page-head p {
    margin-top: 8px;
    max-width: 640px;
}

.account-page .account-page-head.with-action {
    flex-wrap: wrap;
    gap: 12px;
}

.account-page .account-tabs a {
    height: 40px;
    min-height: 40px;
    border-radius: 999px;
}

.account-page .account-tabs a.is-active {
    border-color: color-mix(in srgb, var(--accent), transparent 50%);
    background: color-mix(in srgb, var(--accent), transparent 82%);
    color: #fff;
}

.account-page .account-empty {
    padding: 44px 24px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    background: var(--glass);
    box-shadow: none;
}

@media (max-width: 620px) {
    .acx-subnav {
        gap: 8px;
        margin-bottom: 16px;
    }

    .acx-subnav-home {
        padding: 0 12px;
    }

    .acx-subnav-home span {
        display: none;
    }

    .account-page .account-page-head h1 {
        font-size: 24px;
    }

    .account-page .library-card {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 12px;
    }

    .account-page .library-actions .button {
        flex: 0 0 auto;
        white-space: nowrap;
        overflow-wrap: normal;
        word-break: keep-all;
    }
}
