:root {
    --bg: #0b0b0f;
    --surface: #15151c;
    --surface-soft: #1e1e28;
    --text: #ffffff;
    --muted: #a7a7b3;
    --accent: #ff3d2e;
    --accent-2: #ff8a00;
    --border: rgba(255,255,255,.08);
    --radius: 18px;
    --shadow: 0 18px 60px rgba(0,0,0,.35);
}

:root[data-theme="light"] {
    --bg: #f7f4ef;
    --surface: #ffffff;
    --surface-soft: #f0ebe4;
    --text: #151318;
    --muted: #6f6874;
    --border: rgba(31,24,18,.12);
    --shadow: 0 18px 54px rgba(71,42,20,.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255,61,46,.18), transparent 32rem),
        radial-gradient(circle at top right, rgba(255,138,0,.12), transparent 28rem),
        var(--bg);
    color: var(--text);
}

:root[data-theme="light"] body {
    background:
        radial-gradient(circle at top left, rgba(255,61,46,.16), transparent 32rem),
        radial-gradient(circle at top right, rgba(255,138,0,.16), transparent 28rem),
        var(--bg);
}

body.menu-open {
    overflow: hidden;
}

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

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

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

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11,11,15,.86);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

:root[data-theme="light"] .site-header {
    background: rgba(255,255,255,.84);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: .2px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 30px rgba(255,61,46,.35);
}

.brand-text {
    font-size: 22px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 14px;
}

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

.search-box {
    margin-left: auto;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.search-box input {
    width: 230px;
    border: 0;
    outline: 0;
    padding: 12px 14px;
    background: transparent;
    color: var(--text);
}

.search-box button {
    border: 0;
    border-radius: 999px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 80;
    width: min(420px, calc(100vw - 32px));
    display: none;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(21,21,28,.96);
    box-shadow: var(--shadow);
}

.search-suggestions.is-open {
    display: grid;
}

.search-suggestion-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

.search-suggestion-item:last-child {
    border-bottom: 0;
}

.search-suggestion-item:hover {
    background: rgba(255,61,46,.12);
}

.search-suggestion-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    background: var(--surface-soft);
}

.search-suggestion-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-suggestion-info {
    min-width: 0;
}

.search-suggestion-info strong {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 14px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-suggestion-info small,
.search-suggestion-empty {
    color: var(--muted);
    font-size: 12px;
}

.search-suggestion-empty {
    padding: 14px;
}

.header-login-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(255,61,46,.22);
}

.header-login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(255,61,46,.28);
}

.theme-toggle {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    position: relative;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

.theme-toggle:hover {
    border-color: rgba(255,61,46,.45);
    color: var(--accent);
}

.theme-toggle-icon {
    position: absolute;
    line-height: 1;
    font-size: 18px;
    transition: opacity .18s ease, transform .18s ease;
}

.theme-toggle-icon-light,
:root[data-theme="light"] .theme-toggle-icon-dark {
    opacity: 0;
    transform: scale(.7) rotate(-20deg);
}

.theme-toggle-icon-dark,
:root[data-theme="light"] .theme-toggle-icon-light {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 12px;
    padding: 9px 12px;
    cursor: pointer;
}

.site-main {
    width: min(1180px, calc(100% - 32px));
    min-height: 70vh;
    margin: 0 auto;
    padding: 34px 0 56px;
}

.home-page {
    display: grid;
    gap: 10px;
}

.home-hero {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    display: grid;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: clamp(28px, 5vw, 70px);
    background:
        linear-gradient(90deg, rgba(7,11,19,.96), rgba(7,11,19,.62), rgba(7,11,19,.24)),
        url("../../img/bg-index2.jpg") center right / cover,
        var(--surface);
    box-shadow: var(--shadow);
}

:root[data-theme="light"] .home-hero {
    background:
        linear-gradient(90deg, rgba(20,13,11,.86), rgba(20,13,11,.54), rgba(20,13,11,.18)),
        url("../../img/bg-index2.jpg") center right / cover,
        #211714;
    border-color: rgba(255,255,255,.22);
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 18%, rgba(255,61,46,.22), transparent 28rem),
        linear-gradient(180deg, transparent 55%, rgba(11,11,15,.5));
    pointer-events: none;
}

:root[data-theme="light"] .home-hero::after {
    background:
        radial-gradient(circle at 22% 18%, rgba(255,138,0,.24), transparent 28rem),
        linear-gradient(180deg, transparent 55%, rgba(20,13,11,.42));
}

.home-hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.home-hero h1 {
    max-width: 760px;
    margin: 0 0 14px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: .95;
}

:root[data-theme="light"] .home-hero h1 {
    color: #fffaf5;
    text-shadow: 0 16px 42px rgba(0,0,0,.42);
}

.home-hero p {
    max-width: 640px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

:root[data-theme="light"] .home-hero p {
    color: rgba(255,250,245,.82);
}

.home-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.home-hero-search {
    width: min(100%, 520px);
    min-height: 50px;
    display: flex;
    align-items: center;
    margin-top: 26px;
    background: rgba(21,21,28,.9);
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
}

:root[data-theme="light"] .home-hero-search {
    background: rgba(255,255,255,.9);
    border-color: rgba(255,255,255,.28);
    box-shadow: 0 18px 40px rgba(0,0,0,.2);
}

.home-hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 18px;
    background: transparent;
    color: var(--text);
}

.home-hero-search button {
    align-self: stretch;
    border: 0;
    padding: 0 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.content-section {
    min-width: 0;
}

.genre-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.genre-chip {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    color: var(--muted);
    font-weight: 800;
    transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.genre-chip:hover {
    color: #fff;
    border-color: rgba(255,138,0,.52);
    background: rgba(255,61,46,.14);
    transform: translateY(-2px);
}

.seo-block,
.empty-state {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(21,21,28,.78);
    box-shadow: var(--shadow);
}

:root[data-theme="light"] .seo-block {
    background:
        linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,247,238,.88)),
        var(--surface);
    border-color: rgba(255,61,46,.16);
}

.seo-block {
    margin-top: 36px;
    padding: clamp(22px, 4vw, 34px);
}

.seo-block h2 {
    margin: 0 0 10px;
    font-size: clamp(24px, 3vw, 34px);
}

:root[data-theme="light"] .seo-block h2 {
    color: #211714;
}

.seo-block p {
    max-width: 860px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

:root[data-theme="light"] .seo-block p {
    color: #665d57;
}

.empty-state {
    padding: 28px;
    color: var(--muted);
    text-align: center;
}

.empty-state p {
    margin: 0 0 16px;
}

.catalog-page {
    min-width: 0;
}

.catalog-header {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: clamp(24px, 4vw, 44px);
    background:
        linear-gradient(90deg, rgba(7,11,19,.95), rgba(7,11,19,.68)),
        radial-gradient(circle at 86% 14%, rgba(255,138,0,.16), transparent 24rem),
        var(--surface);
    box-shadow: var(--shadow);
}

.catalog-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--accent-2);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 13px;
}

.breadcrumb a:hover {
    color: var(--text);
}

.catalog-header h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
}

.catalog-description {
    max-width: 720px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.catalog-toolbar {
    margin: 22px 0 20px;
}

.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    color: var(--muted);
    font-weight: 800;
    white-space: nowrap;
}

.filter-chip:hover,
.filter-chip.active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
}

.catalog-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.catalog-seo {
    margin-top: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(20px, 3vw, 30px);
    background: rgba(21,21,28,.72);
    color: var(--muted);
    line-height: 1.75;
}

.catalog-seo p {
    max-width: 860px;
    margin: 0;
}

.releases-page {
    min-width: 0;
}

.releases-header {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: clamp(24px, 4vw, 46px);
    background:
        linear-gradient(90deg, rgba(7,11,19,.96), rgba(7,11,19,.68)),
        radial-gradient(circle at 82% 12%, rgba(255,61,46,.22), transparent 24rem),
        radial-gradient(circle at 18% 0%, rgba(255,138,0,.14), transparent 28rem),
        var(--surface);
    box-shadow: var(--shadow);
}

.releases-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent-2);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.releases-title {
    max-width: 860px;
    margin: 0;
    font-size: clamp(36px, 5vw, 66px);
    line-height: 1;
}

.releases-description {
    max-width: 720px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.releases-toolbar {
    margin: 22px 0 20px;
}

.releases-filters,
.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
}

.filter-group {
    display: grid;
    gap: 7px;
}

.filter-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.filter-select {
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0 14px;
    background: var(--surface);
    color: var(--text);
}

.releases-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.featured-release {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.featured-release-bg,
.featured-release-bg img {
    position: absolute;
    inset: 0;
}

.featured-release-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-release-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 22px;
    padding: clamp(22px, 4vw, 34px);
    background: linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.46));
}

.featured-release-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius);
    background: var(--surface-soft);
    box-shadow: 0 16px 46px rgba(0,0,0,.32);
}

.featured-release-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-release-info {
    align-self: center;
}

.releases-empty {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(21,21,28,.72);
}

.empty-state-title {
    margin: 0 0 8px;
    color: var(--text);
    font-size: clamp(22px, 3vw, 30px);
}

.empty-state-text {
    margin: 0 0 18px;
}

.releases-seo {
    margin-top: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(20px, 3vw, 30px);
    background: rgba(21,21,28,.72);
    color: var(--muted);
    line-height: 1.75;
}

.releases-seo p {
    max-width: 900px;
    margin: 0;
}

.genre-page {
    min-width: 0;
}

.genre-header {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: clamp(24px, 4vw, 46px);
    background:
        linear-gradient(90deg, rgba(7,11,19,.96), rgba(7,11,19,.68)),
        radial-gradient(circle at 82% 12%, rgba(255,138,0,.18), transparent 24rem),
        radial-gradient(circle at 18% 0%, rgba(255,61,46,.16), transparent 28rem),
        var(--surface);
    box-shadow: var(--shadow);
}

.genre-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent-2);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.genre-title {
    max-width: 860px;
    margin: 0;
    font-size: clamp(36px, 5vw, 66px);
    line-height: 1;
}

.genre-description {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.genre-toolbar {
    margin: 22px 0 20px;
}

.genre-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.genre-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    color: var(--muted);
    font-weight: 800;
    white-space: nowrap;
}

.genre-chip:hover,
.genre-chip.active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
}

.genre-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
}

.genre-results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    background: rgba(21,21,28,.72);
}

.genre-results-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: var(--text);
}

.genre-results-count {
    color: var(--muted);
    font-weight: 800;
}

.genre-grid-results {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.genre-empty {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(21,21,28,.72);
}

.related-genres {
    margin-top: 34px;
}

.related-genres .section-heading {
    margin-top: 0;
}

.genre-seo {
    margin-top: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(20px, 3vw, 30px);
    background: rgba(21,21,28,.72);
    color: var(--muted);
    line-height: 1.75;
}

.genre-seo p {
    max-width: 900px;
    margin: 0;
}

.static-page {
    min-width: 0;
}

.static-header {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: clamp(24px, 4vw, 46px);
    background:
        linear-gradient(90deg, rgba(7,11,19,.96), rgba(7,11,19,.68)),
        radial-gradient(circle at 82% 12%, rgba(255,61,46,.2), transparent 24rem),
        radial-gradient(circle at 18% 0%, rgba(255,138,0,.14), transparent 28rem),
        var(--surface);
    box-shadow: var(--shadow);
}

.static-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent-2);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.static-title {
    max-width: 860px;
    margin: 0;
    font-size: clamp(36px, 5vw, 66px);
    line-height: 1;
}

.static-description {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.static-content {
    margin-top: 24px;
    display: grid;
    gap: 20px;
}

.static-content-narrow {
    max-width: 920px;
}

.static-card,
.static-section,
.contact-card,
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(21,21,28,.76);
    box-shadow: var(--shadow);
}

.static-card,
.static-section,
.contact-card {
    padding: clamp(18px, 3vw, 26px);
}

.static-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.static-section-title {
    margin: 0 0 10px;
    color: var(--text);
    font-size: clamp(20px, 2.4vw, 28px);
}

.static-card p,
.static-section p,
.contact-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.static-card p + p,
.static-section p + p {
    margin-top: 12px;
}

.static-card a,
.static-section a,
.contact-card a,
.faq-answer a {
    color: var(--accent-2);
    font-weight: 800;
}

.static-list {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.8;
}

.static-list li + li {
    margin-top: 6px;
}

.contact-card {
    display: grid;
    gap: 10px;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    overflow: hidden;
}

.faq-question {
    width: 100%;
    border: 0;
    padding: 18px 20px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-weight: 900;
    text-align: left;
}

.faq-question::after {
    content: "+";
    float: right;
    color: var(--accent-2);
    font-size: 20px;
    line-height: 1;
}

.faq-answer {
    padding: 0 20px 18px;
    color: var(--muted);
    line-height: 1.75;
}

.faq-answer p {
    margin: 0;
}

.faq-item.is-open .faq-question {
    background: rgba(255,255,255,.04);
}

.faq-item.is-open .faq-question::after {
    content: "-";
}

body.faq-accordion-ready .faq-answer {
    display: none;
}

body.faq-accordion-ready .faq-item.is-open .faq-answer {
    display: block;
}

.account-page {
    min-width: 0;
}

.account-shell {
    min-height: 64vh;
    display: grid;
    place-items: center;
    padding: 18px 0;
}

.account-card,
.account-panel,
.saved-header,
.history-header,
.account-dashboard-header {
    border: 1px solid var(--border);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.02)),
        rgba(21,21,28,.82);
    box-shadow: var(--shadow);
}

.account-card {
    width: min(520px, 100%);
    padding: clamp(22px, 4vw, 34px);
}

.account-card-header {
    margin-bottom: 22px;
}

.account-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent-2);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.account-title {
    margin: 0;
    color: var(--text);
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1;
}

.account-description {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.account-form {
    display: grid;
    gap: 16px;
}

.account-field {
    display: grid;
    gap: 8px;
}

.account-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.account-input,
.account-form input[type="email"],
.account-form input[type="password"],
.account-form input[type="text"],
.account-form input[type="search"] {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0 14px;
    background: rgba(255,255,255,.055);
    color: var(--text);
    outline: 0;
}

.account-input:focus,
.account-form input:focus {
    border-color: rgba(255,138,0,.58);
    box-shadow: 0 0 0 3px rgba(255,61,46,.12);
}

.account-help {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    color: var(--muted);
    font-size: 14px;
}

.account-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 800;
}

.account-checkbox-input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.account-submit {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    cursor: pointer;
    font-weight: 900;
}

.account-link {
    color: var(--accent-2);
    font-weight: 900;
}

.account-google {
    display: flex;
    justify-content: center;
    min-height: 44px;
    align-items: center;
    margin-top: 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255,255,255,.055);
    color: var(--text);
}

.account-divider {
    height: 1px;
    margin: 18px 0;
    background: var(--border);
}

.account-alert {
    display: none;
}

.account-alert.error,
.account-alert.success,
.account-alert.is-visible,
.account-alert:has(*) {
    display: block;
}

.account-alert,
.account-error-list {
    color: var(--muted);
    line-height: 1.6;
}

.account-alert.error,
.account-alert.success,
.account-alert.is-visible,
.account-alert:has(*) {
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255,255,255,.055);
}

.account-alert.error {
    border-color: rgba(255,61,46,.4);
    background: rgba(255,61,46,.12);
    color: #ffb2aa;
}

.account-alert.success {
    border-color: rgba(255,138,0,.38);
    background: rgba(255,138,0,.12);
    color: var(--text);
}

.account-form .error {
    color: #ffb2aa;
    font-size: 13px;
}

.account-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    margin-top: 22px;
}

.account-sidebar {
    position: sticky;
    top: 98px;
}

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

.account-panel,
.saved-header,
.history-header,
.account-dashboard-header {
    padding: clamp(20px, 3vw, 30px);
}

.account-nav {
    display: grid;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    background: rgba(21,21,28,.78);
    box-shadow: var(--shadow);
}

.account-nav-link {
    display: flex;
    align-items: center;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 0 12px;
    color: var(--muted);
    font-weight: 900;
}

.account-nav-link:hover,
.account-nav-link.active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
}

.account-logout {
    margin-top: 6px;
}

.account-dashboard-header {
    display: flex;
    align-items: center;
    gap: 18px;
}

.account-avatar {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 34px;
    font-weight: 900;
    box-shadow: 0 16px 42px rgba(255,61,46,.28);
}

.account-user-info {
    min-width: 0;
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.account-stat {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    background: rgba(255,255,255,.045);
}

.account-stat strong {
    display: block;
    color: var(--text);
    font-size: 22px;
}

.account-stat span {
    color: var(--muted);
    font-size: 13px;
}

.account-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.account-tab,
.account-tab.active {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    border-radius: 999px;
    padding: 0 14px;
    font-weight: 900;
}

.account-tab {
    border: 1px solid var(--border);
    color: var(--muted);
}

.account-tab.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
}

.profile-card,
.profile-form {
    min-width: 0;
}

.saved-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.saved-empty,
.history-empty {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(21,21,28,.72);
}

.saved-actions,
.history-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.remove-saved-button {
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255,255,255,.055);
    color: var(--muted);
    cursor: pointer;
    min-height: 38px;
    padding: 0 12px;
    font-weight: 900;
}

.history-list {
    display: grid;
    gap: 12px;
}

.history-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    background: rgba(21,21,28,.72);
}

.history-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    background: var(--surface-soft);
}

.history-info {
    min-width: 0;
}

.history-title {
    margin: 0 0 6px;
    color: var(--text);
    font-size: 18px;
}

.history-meta {
    color: var(--muted);
    font-size: 14px;
}

.history-progress {
    height: 7px;
    overflow: hidden;
    margin-top: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
}

.history-progress-bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.utility-page {
    min-width: 0;
}

.utility-shell {
    min-height: 66vh;
    display: grid;
    place-items: center;
    padding: 18px 0;
}

.utility-card {
    width: min(900px, 100%);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: clamp(24px, 5vw, 48px);
    background:
        linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
        radial-gradient(circle at 84% 8%, rgba(255,61,46,.18), transparent 22rem),
        rgba(21,21,28,.84);
    box-shadow: var(--shadow);
}

.utility-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--accent-2);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.utility-code {
    margin: 0 0 10px;
    color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    font-size: clamp(54px, 12vw, 126px);
    font-weight: 900;
    line-height: .85;
}

.utility-title {
    max-width: 780px;
    margin: 0;
    color: var(--text);
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1;
}

.utility-description {
    max-width: 720px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.utility-actions,
.utility-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.utility-links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0 12px;
    background: rgba(255,255,255,.05);
    color: var(--muted);
    font-weight: 800;
}

.utility-links a:hover {
    color: #fff;
    border-color: rgba(255,138,0,.52);
}

.utility-link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.utility-link-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 12px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    background: rgba(255,255,255,.045);
}

.utility-link-card strong {
    color: var(--text);
    font-size: 18px;
}

.utility-link-card span:last-child {
    grid-column: 2;
    color: var(--muted);
    font-size: 14px;
}

.utility-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    grid-row: span 2;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-weight: 900;
}

.utility-search {
    display: flex;
    overflow: hidden;
    max-width: 620px;
    margin-top: 24px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255,255,255,.055);
}

.utility-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 16px;
    background: transparent;
    color: var(--text);
}

.utility-search button {
    border: 0;
    padding: 13px 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    cursor: pointer;
    font-weight: 900;
}

.utility-note {
    max-width: 680px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.search-page {
    min-width: 0;
}

.search-header {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: clamp(24px, 4vw, 44px);
    background:
        linear-gradient(90deg, rgba(7,11,19,.95), rgba(7,11,19,.7)),
        radial-gradient(circle at 82% 18%, rgba(255,61,46,.2), transparent 24rem),
        radial-gradient(circle at 20% 0%, rgba(255,138,0,.14), transparent 28rem),
        var(--surface);
    box-shadow: var(--shadow);
}

.search-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent-2);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.search-title {
    max-width: 860px;
    margin: 0;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1;
}

.search-description {
    max-width: 720px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.search-query-highlight {
    color: var(--text);
    font-weight: 900;
}

.search-result-count {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    margin: 18px 0 0;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    color: var(--muted);
    font-weight: 800;
}

.search-form-large {
    width: min(100%, 720px);
    min-height: 56px;
    display: flex;
    align-items: stretch;
    margin-top: 26px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(21,21,28,.92);
    overflow: hidden;
}

.search-input-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
}

.search-input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 0 18px;
    background: transparent;
    color: var(--text);
    font-size: 16px;
}

.search-submit {
    border: 0;
    padding: 0 24px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.search-toolbar {
    margin-top: 22px;
}

.search-results-grid {
    margin-top: 20px;
}

.search-empty-state h2 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: clamp(22px, 3vw, 30px);
}

.watch-page {
    min-width: 0;
}

.watch-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: clamp(20px, 3vw, 32px);
    background:
        linear-gradient(90deg, rgba(7,11,19,.94), rgba(7,11,19,.68)),
        radial-gradient(circle at 84% 0%, rgba(255,61,46,.18), transparent 24rem),
        var(--surface);
    box-shadow: var(--shadow);
}

.watch-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent-2);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.watch-title {
    max-width: 860px;
    margin: 0;
    font-size: clamp(30px, 4.6vw, 54px);
    line-height: 1;
}

.watch-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.watch-meta-item,
.watch-back-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0 12px;
    background: rgba(255,255,255,.06);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.watch-back-link:hover {
    color: #fff;
    border-color: rgba(255,138,0,.52);
}

.watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    align-items: start;
}

.watch-main,
.watch-sidebar {
    min-width: 0;
}

.watch-sidebar {
    position: sticky;
    top: 98px;
    display: grid;
    gap: 18px;
}

.player-shell {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: #000;
    box-shadow: var(--shadow);
}

.playback-panel {
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid var(--border);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(255,61,46,.12), transparent 24rem),
        rgba(255,255,255,.035);
    box-shadow: var(--shadow);
}

.playback-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.playback-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.05;
}

.playback-help {
    margin: 8px 0 0;
    color: var(--muted);
}

.language-selector,
.server-selector {
    margin-top: 22px;
}

.language-label,
.server-selector-title,
.player-area-label {
    display: block;
    margin-bottom: 10px;
    color: var(--accent-2);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.language-tabs {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(0,0,0,.32);
}

.language-tab {
    min-width: 130px;
    padding: 13px 20px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 900;
    text-align: center;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.language-tab:hover {
    color: var(--text);
    background: rgba(255,255,255,.07);
}

.language-tab.active {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 12px 34px rgba(255,61,46,.28);
}

.server-selector-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.server-selector-help {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

body.playback-tabs-ready .server-grid {
    display: none;
}

body.playback-tabs-ready .server-grid.active {
    display: grid;
}

.server-card {
    position: relative;
    display: flex;
    min-height: 76px;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(0,0,0,.38);
    color: var(--text);
    transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.server-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,138,0,.45);
    background: rgba(255,255,255,.065);
}

.server-card.active,
.server-card.is-active {
    border-color: rgba(255,138,0,.85);
    background:
        linear-gradient(135deg, rgba(255,61,46,.32), rgba(255,138,0,.18)),
        rgba(255,255,255,.075);
    box-shadow: 0 14px 36px rgba(255,61,46,.18);
}

.server-card-name {
    overflow: hidden;
    font-size: 18px;
    font-weight: 950;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-card-badge,
.server-card-status {
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.server-card-badge {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
}

.server-card-status {
    color: var(--muted);
    background: rgba(255,255,255,.07);
}

.player-area-label {
    margin-top: 28px;
}

.report-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255,255,255,.075);
    color: var(--text);
    font-weight: 900;
    cursor: pointer;
}

.report-link-button:hover {
    background: rgba(255,255,255,.12);
}

.player-frame {
    background: #000;
}

.player-frame .player {
    margin: 0;
}

.detail-player-panel .player-shell {
    margin-top: 16px;
}

.player-frame .video,
.player-frame .load-video {
    border: 0;
    border-radius: 0;
}

.player-frame .load-video {
    aspect-ratio: 16 / 9;
}

.player-frame iframe {
    width: 100%;
    height: 100%;
}

.player-loading,
.player-message {
    padding: 18px;
    color: var(--muted);
}

.player-notice,
.server-section,
.episode-nav,
.watch-info,
.watch-episodes {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(21,21,28,.78);
    box-shadow: var(--shadow);
}

.player-notice {
    margin-top: 14px;
    padding: 14px 16px;
    color: var(--muted);
}

.server-section {
    margin-top: 18px;
    padding: 18px;
}

.server-title,
.watch-info-title,
.watch-episodes-title {
    margin: 0 0 14px;
    font-size: clamp(20px, 2.4vw, 28px);
}

.server-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.server-button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0 14px;
    background: rgba(255,255,255,.06);
    color: var(--muted);
    font-weight: 900;
}

.server-button.active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
}

.episode-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    margin-top: 18px;
    padding: 14px;
}

.episode-nav-button,
.episode-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0 16px;
    background: rgba(255,255,255,.06);
    color: var(--text);
    font-weight: 900;
}

.episode-nav-button.next {
    justify-self: end;
}

.episode-nav-button.prev {
    justify-self: start;
}

.episode-nav-button:hover {
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.episode-nav-button.disabled {
    opacity: .45;
    pointer-events: none;
}

.episode-current {
    color: var(--accent-2);
}

.watch-info {
    margin-top: 18px;
    padding: 18px;
}

.watch-description {
    max-width: 860px;
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.75;
}

.watch-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.watch-fact {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    background: rgba(255,255,255,.04);
}

.watch-fact-label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.watch-fact-value {
    color: var(--text);
    line-height: 1.55;
}

.watch-fact-value a {
    color: var(--accent-2);
}

.watch-episodes {
    padding: 18px;
}

.watch-episode-season + .watch-episode-season {
    margin-top: 18px;
}

.watch-episode-season h3 {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.watch-episode-list {
    display: grid;
    gap: 8px;
}

.watch-episode-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 11px 12px;
    background: rgba(255,255,255,.045);
    color: var(--muted);
    font-weight: 800;
}

.watch-episode-item strong {
    color: var(--accent-2);
    font-size: 12px;
}

.watch-episode-item:hover,
.watch-episode-item.active {
    border-color: rgba(255,138,0,.52);
    background: rgba(255,61,46,.13);
    color: #fff;
}

.watch-sidebar .adsuppervideo {
    margin: 0;
    padding: 18px;
}

.detail-page,
.series-detail-page {
    margin: -34px calc((100vw - min(1180px, calc(100vw - 32px))) / -2) -56px;
}

.detail-hero {
    position: relative;
    min-height: 620px;
    display: grid;
    align-items: end;
    overflow: hidden;
    background: var(--bg);
}

.detail-hero-bg,
.detail-hero-bg img,
.detail-hero-overlay {
    position: absolute;
    inset: 0;
}

.detail-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px) saturate(1.05);
    opacity: .52;
    transform: scale(1.02);
}

.detail-hero-overlay {
    background:
        linear-gradient(90deg, rgba(11,11,15,.96) 0%, rgba(11,11,15,.72) 45%, rgba(11,11,15,.38) 100%),
        linear-gradient(180deg, rgba(11,11,15,.22) 0%, rgba(11,11,15,.92) 100%),
        radial-gradient(circle at 24% 22%, rgba(255,61,46,.22), transparent 32rem);
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: clamp(24px, 4vw, 44px);
    align-items: end;
    padding-top: 54px;
    padding-bottom: 54px;
}

.breadcrumbs {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.breadcrumb-item:hover {
    color: var(--text);
}

.detail-poster {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-soft);
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-info {
    max-width: 820px;
}

.detail-title {
    margin: 0;
    font-size: clamp(42px, 6vw, 78px);
    line-height: .95;
}

.detail-original-title {
    margin-top: 12px;
    color: var(--muted);
    font-size: 18px;
}

.detail-meta,
.detail-genres,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-meta {
    margin-top: 20px;
}

.detail-meta-item,
.detail-genre,
.detail-genres a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    color: var(--text);
    font-weight: 800;
    font-size: 13px;
}

.detail-meta-item.quality {
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
}

.detail-genres {
    margin-top: 14px;
}

.detail-genres a {
    color: var(--muted);
}

.detail-genres a:hover {
    color: #fff;
    border-color: rgba(255,138,0,.52);
}

.detail-description {
    max-width: 760px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

.detail-actions {
    margin-top: 28px;
}

.btn-ghost {
    border: 1px solid var(--border);
    background: rgba(255,255,255,.06);
    color: var(--text);
}

.detail-content {
    display: grid;
    gap: 24px;
    padding-top: 34px;
    padding-bottom: 58px;
}

.detail-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(18px, 3vw, 26px);
    background: rgba(21,21,28,.78);
    box-shadow: var(--shadow);
}

.detail-panel h2 {
    margin: 0 0 18px;
    font-size: clamp(22px, 3vw, 30px);
}

.detail-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.detail-panel-heading h2 {
    margin: 0;
}

.detail-panel-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.detail-fact {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    background: rgba(255,255,255,.04);
}

.detail-fact-wide {
    grid-column: span 2;
}

.detail-fact-label {
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.detail-fact-value {
    color: var(--text);
    line-height: 1.55;
}

.detail-fact-value a {
    color: var(--accent-2);
}

.detail-player-panel .adsuppervideo,
.detail-content .adsbelowvideo {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.detail-comments .cuadre_comments {
    margin: 0;
}

.detail-comments .cuadre_comments > br {
    display: none;
}

.detail-comments strong {
    display: block;
    margin-bottom: 16px;
    font-size: clamp(22px, 3vw, 30px);
}

.related-section {
    min-width: 0;
}

.episodes-section {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(18px, 3vw, 26px);
    background: rgba(21,21,28,.78);
    box-shadow: var(--shadow);
}

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

.episodes-header h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
}

.season-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.season-tab {
    min-height: 40px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0 16px;
    background: rgba(255,255,255,.05);
    color: var(--muted);
    font-weight: 900;
    cursor: pointer;
}

.season-tab.active,
.season-tab:hover {
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
}

.episode-season {
    margin-top: 16px;
}

body.season-tabs-ready .episode-season {
    display: none;
}

body.season-tabs-ready .episode-season.active {
    display: block;
}

.episode-season-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.episode-season-title h3 {
    margin: 0;
    font-size: 20px;
}

.episode-season-title span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.episode-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.episode-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    background: rgba(255,255,255,.045);
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.episode-card:hover {
    border-color: rgba(255,138,0,.52);
    background: rgba(255,61,46,.12);
    transform: translateY(-2px);
}

.episode-number {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-weight: 900;
}

.episode-title {
    min-width: 0;
    color: var(--text);
    font-weight: 900;
    line-height: 1.3;
}

.episode-meta {
    grid-column: 2;
    color: var(--muted);
    font-size: 12px;
}

.episode-play {
    grid-row: 1 / span 2;
    grid-column: 3;
    color: var(--accent-2);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.trailer-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(0,0,0,.72);
}

.trailer-modal.is-open {
    display: grid;
}

.trailer-modal-content {
    position: relative;
    width: min(920px, 100%);
    aspect-ratio: 16 / 9;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #000;
    box-shadow: var(--shadow);
}

.trailer-close {
    position: absolute;
    top: -46px;
    right: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 12px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}

.hero,
.message {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: clamp(28px, 5vw, 70px);
    background:
        linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.42)),
        var(--surface);
    box-shadow: var(--shadow);
}

.hero h1,
.message h1,
.info-content h1 {
    max-width: 760px;
    margin: 0 0 14px;
    font-size: clamp(34px, 6vw, 72px);
    line-height: .95;
}

.hero p,
.message p,
.info-content p {
    max-width: 620px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
}

.btn-primary,
.btn-report,
.buttonDownload .btn a,
.reportForm .btngui,
.butmore {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
}

.btn-secondary {
    background: rgba(255,255,255,.08);
    color: white;
    border: 1px solid var(--border);
}

.bookmark-form {
    display: inline-flex;
}

.bookmark-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255,255,255,.075);
    color: var(--text);
    font-weight: 900;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.bookmark-button:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.12);
    border-color: rgba(255,138,0,.45);
}

.bookmark-button.active {
    border-color: rgba(255,138,0,.85);
    background: linear-gradient(135deg, rgba(255,61,46,.95), rgba(255,138,0,.95));
    color: #fff;
    box-shadow: 0 12px 34px rgba(255,61,46,.24);
}

.bookmark-icon {
    font-size: 16px;
    line-height: 1;
}

.watch-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.continue-watching-section {
    margin-top: 42px;
}

.continue-watching-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(112px, 12vw, 150px);
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,138,0,.72) rgba(255,255,255,.08);
}

.continue-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255,255,255,.045);
    box-shadow: 0 16px 40px rgba(0,0,0,.24);
    scroll-snap-align: start;
}

.continue-card-poster {
    display: block;
    aspect-ratio: 2 / 3;
    background:
        linear-gradient(135deg, rgba(255,61,46,.22), rgba(255,138,0,.12)),
        var(--surface-soft);
}

.continue-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.continue-card-placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.continue-card-info {
    padding: 9px;
}

.continue-card-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.7em;
    margin-bottom: 6px;
    color: var(--text);
    font-weight: 900;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.continue-card-meta {
    color: var(--muted);
    font-size: 13px;
}

.continue-card-remove,
.clear-watching-button {
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    color: var(--text);
    cursor: pointer;
    font-weight: 800;
}

.continue-card-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,.68);
    color: #fff;
    line-height: 1;
}

.clear-watching-button {
    min-height: 38px;
    padding: 0 14px;
}

.section-heading,
.title-detail,
.title-related,
.title-player {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 42px 0 20px;
}

.section-kicker,
.more {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--accent-2);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.section-heading h2,
.title-detail h2,
.title-related,
.title-player {
    margin: 0;
    font-size: clamp(24px, 3vw, 36px);
}

.section-link,
.more a {
    color: var(--muted);
    font-weight: 700;
}

.section-link:hover,
.more a:hover {
    color: var(--text);
}

.movie-grid,
.items-peliculas,
.premiere-movies,
.premiere-series,
.coming-soon-movies,
.list-related ul {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.featured-scroll-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 1fr);
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,138,0,.72) rgba(255,255,255,.08);
}

.featured-scroll-grid .movie-card {
    min-width: 0;
    scroll-snap-align: start;
}

.latest-limited-grid .movie-card:nth-child(n+13) {
    display: none;
}

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

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius);
    background: var(--surface-soft);
    box-shadow: 0 16px 40px rgba(0,0,0,.28);
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease, opacity .25s ease;
}

.movie-card:hover img {
    transform: scale(1.06);
    opacity: .78;
}

.movie-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    font-size: 11px;
    font-weight: 900;
}

.movie-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    font-size: 42px;
    transition: opacity .25s ease;
}

.movie-card:hover .movie-play {
    opacity: 1;
}

.movie-info h3 {
    margin: 10px 0 6px;
    font-size: 15px;
    line-height: 1.35;
}

.movie-info h3 a:hover {
    color: var(--accent-2);
}

.movie-meta {
    display: flex;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,.22);
    padding: 42px 0 22px;
    color: var(--muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 28px;
}

.footer-brand {
    color: white;
    font-size: 24px;
    font-weight: 900;
}

.site-footer h4 {
    margin: 0 0 12px;
    color: white;
}

.site-footer a {
    display: block;
    margin: 8px 0;
}

.site-footer a:hover {
    color: white;
}

.footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 13px;
}

.main {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
}

.main-left,
.left-menu,
.pelicula-info,
.pelicula-player,
.related,
.ads_header,
.adsuppervideo,
.adsbelowvideo,
.share-media,
.links_container,
.item-season,
.reportForm {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(21,21,28,.82);
    box-shadow: var(--shadow);
}

.main-left,
.left-menu {
    align-self: start;
    padding: 16px;
}

.main-left ul,
.left-menu ul,
.related ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-left a,
.left-menu a {
    display: block;
    padding: 9px 10px;
    border-radius: 12px;
    color: var(--muted);
}

.main-left a:hover,
.left-menu a:hover {
    color: var(--text);
    background: rgba(255,255,255,.06);
}

.pelicula-info {
    display: grid;
    grid-template-columns: minmax(180px, 280px) 1fr;
    gap: 28px;
    padding: clamp(18px, 3vw, 30px);
}

.poster {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.content-type {
    color: var(--text);
    font-weight: 900;
}

.content-type-a a,
.info-content a {
    color: var(--accent-2);
}

.share-media,
.pelicula-player,
.related,
.ads_header,
.adsuppervideo,
.adsbelowvideo,
.links_container {
    margin-top: 22px;
    padding: 18px;
}

.player .video {
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #000;
}

.load-video {
    aspect-ratio: 16 / 9;
}

.load-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.server-tab,
.server-items,
.arrows,
.social-media {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.server-tab a,
.server-video,
.arrows .btn,
.sm a,
.btn-report,
.buttonDownload .btn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
}

.server-video.is-active,
.server-video:hover,
.arrows .btn:hover {
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.url input,
.links_container input,
.reportForm select,
.reportForm textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 12px;
    background: var(--surface);
    color: var(--text);
}

.reportForm textarea {
    min-height: 96px;
    padding-top: 10px;
    resize: vertical;
}

.item-season {
    margin-top: 12px;
    overflow: hidden;
}

.item-season-title {
    padding: 14px 16px;
    font-weight: 900;
    background: rgba(255,255,255,.05);
}

.item-season-episodes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    padding: 16px;
}

.item-season-episodes a {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    color: var(--muted);
}

.item-season-episodes a:hover {
    color: var(--text);
    background: rgba(255,61,46,.16);
}

.stream-pagination,
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.pagination li,
.pagination-item {
    list-style: none;
}

.pagination a,
.page-link,
.pagination-item,
.pagination-current,
.pagination-disabled {
    min-width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.05);
    color: var(--muted);
    font-weight: 800;
}

.pagination .active a,
.pagination .active,
.page-link:hover,
.pagination-current {
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
}

.pagination-disabled {
    opacity: .45;
    cursor: not-allowed;
}

.reportForm {
    position: fixed;
    inset: 50% auto auto 50%;
    z-index: 70;
    width: min(540px, calc(100% - 28px));
    max-height: calc(100vh - 40px);
    display: none;
    transform: translate(-50%, -50%);
    overflow: auto;
    padding: 18px;
}

.reportForm.is-visible {
    display: block;
}

.reportForm__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.reportForm__header button {
    border: 1px solid var(--border);
    background: var(--surface-soft);
    color: var(--text);
    border-radius: 12px;
    padding: 8px 12px;
    cursor: pointer;
}

.reportForm .row {
    margin-bottom: 12px;
}

.report-alert {
    display: none;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--text);
    font-weight: 800;
}

.report-alert.is-visible {
    display: block;
}

.report-alert.success {
    border-color: rgba(34,197,94,.35);
    background: rgba(34,197,94,.12);
}

.report-alert.error {
    border-color: rgba(255,61,46,.45);
    background: rgba(255,61,46,.12);
}

.reportForm label {
    display: block;
    margin-bottom: 6px;
    font-weight: 800;
}

.reportForm .btngui,
.butmore {
    width: auto;
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    font-weight: 900;
    cursor: pointer;
}

.butmore {
    grid-column: 1 / -1;
    justify-self: center;
}

.clear {
    display: none;
}

.pull-left,
.pull-right {
    float: none !important;
}

.player .server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
}

body.playback-tabs-ready .player .server-grid {
    display: none;
}

body.playback-tabs-ready .player .server-grid.active {
    display: grid;
}

.player .server-card {
    position: relative;
    display: flex;
    min-height: 76px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(0,0,0,.38);
    color: var(--text);
    transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.player .server-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,138,0,.45);
    background: rgba(255,255,255,.065);
}

.player .server-card.active,
.player .server-card.is-active {
    border-color: rgba(255,138,0,.85);
    background:
        linear-gradient(135deg, rgba(255,61,46,.32), rgba(255,138,0,.18)),
        rgba(255,255,255,.075);
    box-shadow: 0 14px 36px rgba(255,61,46,.18);
}

:root[data-theme="light"] .catalog-header,
:root[data-theme="light"] .releases-header,
:root[data-theme="light"] .genre-header,
:root[data-theme="light"] .static-header,
:root[data-theme="light"] .search-header,
:root[data-theme="light"] .watch-header,
:root[data-theme="light"] .hero,
:root[data-theme="light"] .message {
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,247,238,.9)),
        radial-gradient(circle at 82% 12%, rgba(255,138,0,.18), transparent 24rem),
        var(--surface);
    border-color: rgba(255,61,46,.16);
    color: var(--text);
}

:root[data-theme="light"] .catalog-description,
:root[data-theme="light"] .releases-description,
:root[data-theme="light"] .genre-description,
:root[data-theme="light"] .static-description,
:root[data-theme="light"] .search-description,
:root[data-theme="light"] .watch-description,
:root[data-theme="light"] .utility-description,
:root[data-theme="light"] .hero p,
:root[data-theme="light"] .message p,
:root[data-theme="light"] .info-content p {
    color: var(--muted);
}

:root[data-theme="light"] .catalog-seo,
:root[data-theme="light"] .releases-seo,
:root[data-theme="light"] .genre-seo,
:root[data-theme="light"] .genre-results-toolbar,
:root[data-theme="light"] .releases-empty,
:root[data-theme="light"] .genre-empty,
:root[data-theme="light"] .static-card,
:root[data-theme="light"] .static-section,
:root[data-theme="light"] .contact-card,
:root[data-theme="light"] .faq-item,
:root[data-theme="light"] .account-card,
:root[data-theme="light"] .account-panel,
:root[data-theme="light"] .saved-header,
:root[data-theme="light"] .history-header,
:root[data-theme="light"] .account-dashboard-header,
:root[data-theme="light"] .account-nav,
:root[data-theme="light"] .saved-empty,
:root[data-theme="light"] .history-empty,
:root[data-theme="light"] .history-item,
:root[data-theme="light"] .utility-card,
:root[data-theme="light"] .utility-link-card,
:root[data-theme="light"] .player-notice,
:root[data-theme="light"] .playback-panel,
:root[data-theme="light"] .server-section,
:root[data-theme="light"] .episode-nav,
:root[data-theme="light"] .watch-info,
:root[data-theme="light"] .watch-episodes,
:root[data-theme="light"] .detail-panel,
:root[data-theme="light"] .episodes-section,
:root[data-theme="light"] .continue-card,
:root[data-theme="light"] .main-left,
:root[data-theme="light"] .left-menu,
:root[data-theme="light"] .pelicula-info,
:root[data-theme="light"] .pelicula-player,
:root[data-theme="light"] .related,
:root[data-theme="light"] .ads_header,
:root[data-theme="light"] .adsuppervideo,
:root[data-theme="light"] .adsbelowvideo,
:root[data-theme="light"] .share-media,
:root[data-theme="light"] .links_container,
:root[data-theme="light"] .item-season,
:root[data-theme="light"] .reportForm,
:root[data-theme="light"] .empty-state {
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,249,242,.9)),
        var(--surface);
    border-color: var(--border);
    color: var(--text);
}

:root[data-theme="light"] .featured-release-content {
    background: linear-gradient(90deg, rgba(255,255,255,.94), rgba(255,247,238,.76));
    color: var(--text);
}

:root[data-theme="light"] .featured-release-info,
:root[data-theme="light"] .featured-release-info p {
    color: var(--text);
}

:root[data-theme="light"] .filter-chip,
:root[data-theme="light"] .genre-chip,
:root[data-theme="light"] .language-tabs,
:root[data-theme="light"] .language-tab,
:root[data-theme="light"] .detail-meta-item,
:root[data-theme="light"] .detail-genre,
:root[data-theme="light"] .detail-genres a,
:root[data-theme="light"] .watch-meta-item,
:root[data-theme="light"] .watch-back-link,
:root[data-theme="light"] .server-button,
:root[data-theme="light"] .server-card,
:root[data-theme="light"] .bookmark-button,
:root[data-theme="light"] .report-link-button,
:root[data-theme="light"] .episode-nav-button,
:root[data-theme="light"] .episode-current,
:root[data-theme="light"] .watch-fact,
:root[data-theme="light"] .watch-episode-item,
:root[data-theme="light"] .season-tab,
:root[data-theme="light"] .episode-card,
:root[data-theme="light"] .detail-fact,
:root[data-theme="light"] .account-stat,
:root[data-theme="light"] .account-google,
:root[data-theme="light"] .remove-saved-button,
:root[data-theme="light"] .continue-card-remove,
:root[data-theme="light"] .clear-watching-button,
:root[data-theme="light"] .utility-links a,
:root[data-theme="light"] .pagination a,
:root[data-theme="light"] .page-link,
:root[data-theme="light"] .pagination-item,
:root[data-theme="light"] .pagination-current,
:root[data-theme="light"] .pagination-disabled,
:root[data-theme="light"] .server-tab a,
:root[data-theme="light"] .server-video,
:root[data-theme="light"] .arrows .btn,
:root[data-theme="light"] .sm a,
:root[data-theme="light"] .btn-secondary,
:root[data-theme="light"] .btn-ghost,
:root[data-theme="light"] .item-season-episodes a {
    background: rgba(255,255,255,.7);
    border-color: var(--border);
    color: var(--text);
}

:root[data-theme="light"] .filter-chip:hover,
:root[data-theme="light"] .filter-chip.active,
:root[data-theme="light"] .genre-chip:hover,
:root[data-theme="light"] .genre-chip.active,
:root[data-theme="light"] .language-tab.active,
:root[data-theme="light"] .server-button.active,
:root[data-theme="light"] .server-card.active,
:root[data-theme="light"] .server-card.is-active,
:root[data-theme="light"] .bookmark-button.active,
:root[data-theme="light"] .detail-meta-item.quality,
:root[data-theme="light"] .episode-nav-button:hover,
:root[data-theme="light"] .season-tab.active,
:root[data-theme="light"] .season-tab:hover,
:root[data-theme="light"] .watch-episode-item:hover,
:root[data-theme="light"] .watch-episode-item.active,
:root[data-theme="light"] .server-video.is-active,
:root[data-theme="light"] .server-video:hover,
:root[data-theme="light"] .arrows .btn:hover,
:root[data-theme="light"] .pagination .active a,
:root[data-theme="light"] .pagination .active,
:root[data-theme="light"] .page-link:hover,
:root[data-theme="light"] .pagination-current,
:root[data-theme="light"] .account-nav-link:hover,
:root[data-theme="light"] .account-nav-link.active,
:root[data-theme="light"] .account-tab.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-color: transparent;
    color: #fff;
}

:root[data-theme="light"] .search-form-large,
:root[data-theme="light"] .search-suggestions,
:root[data-theme="light"] .utility-search,
:root[data-theme="light"] .account-input,
:root[data-theme="light"] .account-form input[type="email"],
:root[data-theme="light"] .account-form input[type="password"],
:root[data-theme="light"] .account-form input[type="text"],
:root[data-theme="light"] .account-form input[type="search"],
:root[data-theme="light"] .url input,
:root[data-theme="light"] .links_container input,
:root[data-theme="light"] .reportForm select,
:root[data-theme="light"] .reportForm textarea {
    background: #fff;
    color: var(--text);
    border-color: var(--border);
}

:root[data-theme="light"] .detail-hero {
    background: #120f10;
}

:root[data-theme="light"] .detail-hero-overlay {
    background:
        linear-gradient(90deg, rgba(18,15,16,.96) 0%, rgba(18,15,16,.72) 45%, rgba(18,15,16,.42) 100%),
        linear-gradient(180deg, rgba(18,15,16,.22) 0%, rgba(18,15,16,.92) 100%),
        radial-gradient(circle at 24% 22%, rgba(255,138,0,.24), transparent 32rem);
}

:root[data-theme="light"] .detail-hero .breadcrumbs,
:root[data-theme="light"] .detail-hero .detail-original-title,
:root[data-theme="light"] .detail-hero .detail-description,
:root[data-theme="light"] .detail-hero .detail-genres a {
    color: rgba(255,250,245,.78);
}

:root[data-theme="light"] .detail-hero .detail-title,
:root[data-theme="light"] .detail-hero .detail-meta-item,
:root[data-theme="light"] .detail-hero .detail-genre,
:root[data-theme="light"] .detail-hero .detail-genres a:hover,
:root[data-theme="light"] .detail-hero .breadcrumb-item:hover {
    color: #fffaf5;
}

:root[data-theme="light"] .detail-hero .detail-meta-item,
:root[data-theme="light"] .detail-hero .detail-genre,
:root[data-theme="light"] .detail-hero .detail-genres a,
:root[data-theme="light"] .detail-hero .btn-ghost {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.18);
}

:root[data-theme="light"] .player-shell,
:root[data-theme="light"] .player-frame,
:root[data-theme="light"] .player .video,
:root[data-theme="light"] .trailer-modal-content {
    background: #000;
}

:root[data-theme="light"] .site-footer {
    background: rgba(255,255,255,.72);
    color: var(--muted);
}

:root[data-theme="light"] .footer-brand,
:root[data-theme="light"] .site-footer h4 {
    color: var(--text);
}

:root[data-theme="light"] .site-footer a:hover {
    color: var(--accent);
}

:root[data-theme="light"] .movie-poster {
    box-shadow: 0 16px 34px rgba(71,42,20,.14);
}

:root[data-theme="light"] .movie-play {
    color: #fff;
    text-shadow: 0 8px 24px rgba(0,0,0,.55);
}

@media (max-width: 760px) {
    .playback-header,
    .server-selector-header {
        display: grid;
    }

    .language-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        border-radius: 18px;
    }

    .language-tab {
        min-width: 0;
        border-radius: 14px;
    }

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

    .server-card {
        min-height: 68px;
        padding: 12px;
    }

    .server-card-name {
        font-size: 15px;
    }

    .report-link-button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .server-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .movie-grid,
    .items-peliculas,
    .premiere-movies,
    .premiere-series,
    .coming-soon-movies,
    .list-related ul {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .main-nav {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .main-nav.is-open {
        position: absolute;
        top: 76px;
        left: 16px;
        right: 16px;
        display: grid;
        gap: 8px;
        padding: 16px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 18px;
        box-shadow: var(--shadow);
    }

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

    .detail-hero-inner {
        grid-template-columns: 220px minmax(0, 1fr);
    }

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

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

    .watch-sidebar {
        position: static;
    }

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

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

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

    .account-sidebar {
        position: static;
    }

    .account-nav {
        display: flex;
        overflow-x: auto;
    }

    .account-nav-link {
        white-space: nowrap;
    }

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

    .continue-watching-grid {
        grid-auto-columns: clamp(112px, 18vw, 136px);
    }

    .featured-scroll-grid {
        grid-auto-columns: minmax(150px, 25%);
    }
}

@media (max-width: 900px) {
    .catalog-grid,
    .releases-grid,
    .genre-grid-results {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .featured-release-content {
        grid-template-columns: 150px minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .search-box {
        order: 3;
        width: 100%;
        margin-left: 0;
    }

    .search-box input {
        width: 100%;
    }

    .header-login-button {
        order: 2;
        min-height: 40px;
        padding: 0 14px;
    }

    .home-hero {
        min-height: 0;
        padding: 28px 20px;
    }

    .home-hero-search {
        flex-direction: column;
        align-items: stretch;
        border-radius: 18px;
    }

    .home-hero-search input {
        min-height: 48px;
    }

    .home-hero-search button {
        min-height: 46px;
    }

    .watch-header-actions,
    .bookmark-form,
    .bookmark-button {
        width: 100%;
    }

    .continue-watching-grid {
        grid-auto-columns: clamp(104px, 32vw, 124px);
        gap: 12px;
        margin-inline: -16px;
        padding-inline: 16px;
    }

    .featured-scroll-grid {
        grid-auto-columns: minmax(140px, 46%);
        gap: 14px;
        margin-inline: -16px;
        padding-inline: 16px;
    }

    .latest-limited-grid .movie-card:nth-child(n+9) {
        display: none;
    }

    .movie-grid,
    .items-peliculas,
    .premiere-movies,
    .premiere-series,
    .coming-soon-movies,
    .list-related ul,
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .catalog-header,
    .releases-header,
    .genre-header,
    .static-header {
        padding: 24px 18px;
        border-radius: 22px;
    }

    .catalog-toolbar,
    .releases-toolbar,
    .genre-toolbar {
        margin-inline: -16px;
        overflow-x: auto;
        padding: 0 16px 6px;
    }

    .catalog-filters {
        width: max-content;
        min-width: 100%;
        flex-wrap: nowrap;
    }

    .genre-chip-list {
        width: max-content;
        min-width: 100%;
        flex-wrap: nowrap;
    }

    .genre-results-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .static-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .account-dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-stats {
        grid-template-columns: 1fr;
    }

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

    .history-item {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .history-actions {
        grid-column: 1 / -1;
    }

    .utility-card {
        border-radius: 24px;
        padding: 24px 18px;
    }

    .utility-link-grid {
        grid-template-columns: 1fr;
    }

    .utility-search {
        flex-direction: column;
        border-radius: 18px;
    }

    .utility-search input {
        min-height: 48px;
    }

    .featured-release-content {
        grid-template-columns: 1fr;
    }

    .featured-release-poster {
        width: min(180px, 60vw);
    }

    .search-header {
        padding: 24px 18px;
        border-radius: 22px;
    }

    .search-form-large {
        flex-direction: column;
        border-radius: 18px;
    }

    .search-input {
        min-height: 50px;
    }

    .search-submit {
        min-height: 46px;
    }

    .watch-header {
        align-items: flex-start;
        flex-direction: column;
        border-radius: 22px;
        padding: 22px 18px;
    }

    .episode-nav {
        grid-template-columns: 1fr;
    }

    .episode-nav-button,
    .episode-nav-button.prev,
    .episode-nav-button.next,
    .episode-current {
        width: 100%;
        justify-self: stretch;
    }

    .server-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .server-button {
        white-space: nowrap;
    }

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

    .section-heading,
    .title-detail,
    .title-related,
    .title-player {
        align-items: flex-start;
        flex-direction: column;
    }

    .pelicula-info {
        grid-template-columns: 1fr;
    }

    .poster {
        max-width: 240px;
    }

    .detail-page,
    .series-detail-page {
        margin-inline: -16px;
    }

    .detail-hero {
        min-height: 0;
    }

    .detail-hero-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        padding-top: 30px;
        padding-bottom: 34px;
    }

    .breadcrumbs,
    .detail-meta,
    .detail-genres,
    .detail-actions {
        justify-content: center;
    }

    .detail-poster {
        width: min(240px, 74vw);
    }

    .detail-info {
        display: grid;
        justify-items: center;
    }

    .detail-title {
        font-size: clamp(34px, 12vw, 48px);
    }

    .detail-actions .btn {
        width: 100%;
    }

    .detail-panel-grid {
        grid-template-columns: 1fr;
    }

    .detail-fact-wide {
        grid-column: auto;
    }

    .detail-panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .episodes-header,
    .episode-season-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .season-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .season-tab {
        white-space: nowrap;
    }

    .episode-list {
        grid-template-columns: 1fr;
    }

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

    .episode-meta {
        grid-column: 2;
    }

    .episode-play {
        grid-column: 1 / -1;
        grid-row: auto;
        justify-self: start;
    }

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