:root {
    --color-bg: #f8fafc;
    --color-panel: #ffffff;
    --color-text: #0f172a;
    --color-muted: #64748b;
    --color-line: #e2e8f0;
    --color-dark: #0f172a;
    --color-dark-soft: #1e293b;
    --color-orange: #f97316;
    --color-orange-dark: #ea580c;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.08);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--color-bg);
}

body {
    margin: 0;
    color: var(--color-text);
    background: linear-gradient(135deg, #f8fafc 0%, #fff7ed 42%, #f8fafc 100%);
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 16px 35px rgba(2, 6, 23, 0.2);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fb923c, #ea580c);
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.36);
    color: #ffffff;
    font-size: 18px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 20px;
    letter-spacing: 0.04em;
}

.brand-text em {
    margin-top: 4px;
    color: #cbd5e1;
    font-size: 12px;
    font-style: normal;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link,
.nav-dropdown > button {
    border: 0;
    color: #cbd5e1;
    background: transparent;
    border-radius: 12px;
    padding: 10px 15px;
    cursor: pointer;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-dropdown:hover > button {
    color: #ffffff;
    background: rgba(249, 115, 22, 0.95);
    transform: translateY(-1px);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: 230px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a,
.mobile-nav a,
.footer-links a,
.footer-grid-links a {
    display: block;
    border-radius: 12px;
    padding: 10px 12px;
    color: #cbd5e1;
    transition: color 0.25s ease, background 0.25s ease;
}

.dropdown-panel a:hover,
.mobile-nav a:hover {
    color: #ffffff;
    background: rgba(249, 115, 22, 0.16);
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    color: #ffffff;
    background: rgba(148, 163, 184, 0.18);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 0 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.mobile-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.hero-slider {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.9)), var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 15%, rgba(249, 115, 22, 0.42), transparent 32%),
        radial-gradient(circle at 78% 70%, rgba(251, 146, 60, 0.2), transparent 28%);
}

.hero-content {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 650px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
    gap: 52px;
    align-items: center;
    padding: 74px 0 128px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.14);
    color: #fb923c;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.03;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 720px;
    margin: 22px 0 0;
    color: #dbeafe;
    font-size: 20px;
    line-height: 1.8;
}

.hero-meta,
.detail-meta,
.movie-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-meta {
    margin-top: 24px;
}

.hero-meta span,
.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.hero-tags {
    margin-top: 18px;
}

.hero-tags span,
.detail-tags span {
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.16);
}

.hero-actions {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 14px;
    padding: 0 22px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #ea580c);
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.36);
}

.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px);
}

.ghost-btn {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
}

.small-btn {
    min-height: 42px;
    padding: 0 16px;
    font-size: 14px;
}

.hero-poster {
    position: relative;
    display: block;
    width: min(100%, 420px);
    aspect-ratio: 3 / 4;
    border-radius: 32px;
    overflow: hidden;
    background: #1e293b;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
}

.hero-poster img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.92);
    box-shadow: 0 16px 40px rgba(249, 115, 22, 0.35);
    transform: translate(-50%, -50%);
}

.hero-search-panel {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 34px;
    width: min(1180px, calc(100% - 32px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.36);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
}

.hero-search,
.inline-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-search {
    flex: 1;
}

.hero-search input,
.inline-filter input {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 14px;
    outline: none;
    padding: 0 16px;
    color: #0f172a;
    background: #ffffff;
}

.hero-search button,
.inline-filter button {
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    padding: 0 22px;
    color: #ffffff;
    background: #f97316;
    cursor: pointer;
    font-weight: 800;
}

.hero-channel-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-channel-links a {
    border-radius: 999px;
    padding: 9px 13px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.hero-dots {
    position: absolute;
    z-index: 6;
    right: calc((100% - min(1180px, calc(100% - 32px))) / 2);
    bottom: 130px;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 36px;
    background: #f97316;
}

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

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

.section-heading span {
    display: block;
    margin-bottom: 8px;
    color: #f97316;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.section-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(26px, 4vw, 38px);
    letter-spacing: -0.03em;
}

.section-heading a {
    color: #f97316;
    font-weight: 800;
}

.light-heading h2 {
    color: #ffffff;
}

.compact-heading {
    align-items: start;
    flex-direction: column;
    gap: 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.category-card {
    position: relative;
    min-height: 170px;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: var(--shadow-card);
    background: #0f172a;
}

.category-card img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    transition: transform 0.6s ease, opacity 0.3s ease;
}

.category-card:hover img {
    opacity: 0.74;
    transform: scale(1.08);
}

.category-card span {
    position: absolute;
    inset: auto 16px 16px;
    color: #ffffff;
}

.category-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
}

.category-card em {
    display: -webkit-box;
    color: #e2e8f0;
    font-size: 13px;
    font-style: normal;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

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

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

.movie-link {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.movie-link:hover {
    border-color: rgba(249, 115, 22, 0.45);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.14);
    transform: translateY(-5px);
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #1e293b;
}

.movie-card-wide .poster-wrap,
.movie-card-feature .poster-wrap {
    aspect-ratio: 16 / 10;
}

.poster-wrap img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.movie-link:hover img {
    transform: scale(1.06);
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.88);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-link:hover .play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    min-width: 38px;
    border-radius: 999px;
    padding: 7px 10px;
    color: #ffffff;
    background: #f97316;
    font-weight: 900;
    text-align: center;
}

.movie-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.movie-meta-row {
    color: #f97316;
    font-size: 12px;
    font-weight: 800;
}

.movie-meta-row span {
    border-radius: 999px;
    padding: 5px 8px;
    background: #fff7ed;
}

.movie-card h2 {
    display: -webkit-box;
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card p {
    display: -webkit-box;
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dark-band {
    background: linear-gradient(135deg, #0f172a, #1e293b 55%, #0f172a);
}

.dark-inner .movie-link {
    border-color: rgba(51, 65, 85, 0.95);
    background: #1e293b;
}

.dark-inner .movie-card h2 {
    color: #ffffff;
}

.dark-inner .movie-card p {
    color: #cbd5e1;
}

.dark-inner .tag-row span {
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.16);
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 40px;
}

.ranking-list,
.wide-list {
    display: grid;
    gap: 14px;
}

.compact-card {
    display: grid;
    grid-template-columns: auto 72px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 12px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.compact-card:hover {
    border-color: rgba(249, 115, 22, 0.45);
    transform: translateX(4px);
}

.compact-rank {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: #f97316;
    font-weight: 900;
}

.compact-card img {
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
}

.compact-card strong,
.compact-card em {
    display: block;
}

.compact-card strong {
    color: #0f172a;
    font-size: 16px;
}

.compact-card em {
    margin-top: 7px;
    color: #64748b;
    font-size: 13px;
    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 94px max(16px, calc((100vw - 1180px) / 2)) 76px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(124, 45, 18, 0.96));
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 12%, rgba(249, 115, 22, 0.38), transparent 30%),
        radial-gradient(circle at 80% 75%, rgba(251, 146, 60, 0.18), transparent 28%);
}

.page-hero > * {
    position: relative;
    z-index: 1;
}

.page-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: #e2e8f0;
    font-size: 18px;
    line-height: 1.8;
}

.slim-hero {
    min-height: 320px;
}

.category-hero {
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(124, 45, 18, 0.78)), var(--page-image);
    background-size: cover;
    background-position: center;
}

.inline-filter {
    max-width: 760px;
    margin-top: 26px;
}

.category-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.category-overview-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.category-preview-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    height: 180px;
    background: #0f172a;
}

.category-preview-strip img {
    height: 180px;
    object-fit: cover;
}

.category-overview-body {
    padding: 24px;
}

.category-overview-body span {
    color: #f97316;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.category-overview-body h2 {
    margin: 12px 0 10px;
    font-size: 28px;
}

.category-overview-body p {
    margin: 0 0 22px;
    color: #64748b;
    line-height: 1.8;
}

.ranking-shell {
    padding-top: 40px;
}

.ranking-list-full {
    display: grid;
    gap: 16px;
}

.ranking-row {
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.ranking-row-link {
    display: grid;
    grid-template-columns: 78px 130px minmax(0, 1fr) 58px;
    align-items: center;
    gap: 20px;
    padding: 16px;
}

.ranking-number {
    color: #f97316;
    font-size: 28px;
    font-weight: 900;
    text-align: center;
}

.ranking-row img {
    height: 92px;
    border-radius: 16px;
    object-fit: cover;
}

.ranking-info strong,
.ranking-info em,
.ranking-info small {
    display: block;
}

.ranking-info strong {
    margin-bottom: 7px;
    color: #0f172a;
    font-size: 20px;
}

.ranking-info em {
    display: -webkit-box;
    color: #475569;
    font-style: normal;
    line-height: 1.6;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ranking-info small {
    margin: 8px 0;
    color: #94a3b8;
}

.ranking-play {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: #f97316;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

.detail-bg {
    position: absolute;
    inset: 0;
    opacity: 0.38;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.72)), var(--detail-image);
    background-size: cover;
    background-position: center;
    filter: blur(3px) saturate(1.1);
    transform: scale(1.04);
}

.detail-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 34px;
    color: #cbd5e1;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #fb923c;
}

.detail-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    background: #1e293b;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.detail-poster img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-info h1 {
    max-width: 850px;
}

.detail-one-line {
    max-width: 880px;
    margin: 22px 0;
    color: #dbeafe;
    font-size: 20px;
    line-height: 1.8;
}

.detail-tags {
    margin: 24px 0 30px;
}

.player-section {
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.player-shell {
    padding-top: 58px;
    padding-bottom: 58px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
    aspect-ratio: 16 / 9;
}

.movie-video {
    display: block;
    width: 100%;
    height: 100%;
    background: #020617;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.38), rgba(2, 6, 23, 0.76));
    cursor: pointer;
}

.player-overlay span {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f97316;
    box-shadow: 0 20px 48px rgba(249, 115, 22, 0.32);
    font-size: 34px;
}

.player-overlay strong {
    font-size: 20px;
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-body-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
}

.content-card {
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 28px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.content-card h2 {
    margin: 0 0 16px;
    color: #0f172a;
    font-size: 26px;
}

.content-card p {
    margin: 0;
    color: #475569;
    font-size: 17px;
    line-height: 1.95;
}

.detail-taxonomy dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.detail-taxonomy div {
    border-radius: 16px;
    padding: 16px;
    background: #f8fafc;
}

.detail-taxonomy dt {
    margin-bottom: 8px;
    color: #94a3b8;
    font-size: 13px;
}

.detail-taxonomy dd {
    margin: 0;
    color: #0f172a;
    font-weight: 800;
}

.genre-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.genre-pills span {
    border-radius: 999px;
    padding: 6px 10px;
    background: #fff7ed;
    color: #f97316;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(135deg, #0f172a, #1e293b, #0f172a);
}

.footer-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 220px;
    gap: 34px;
    padding: 54px 0;
}

.footer-brand p {
    max-width: 470px;
    margin: 18px 0 0;
    color: #94a3b8;
    line-height: 1.8;
}

.footer-links h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 18px;
}

.footer-grid-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
}

.footer-links a,
.footer-grid-links a {
    padding: 8px 0;
    color: #cbd5e1;
}

.footer-links a:hover,
.footer-grid-links a:hover {
    color: #fb923c;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #94a3b8;
    font-size: 14px;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: #f97316;
    box-shadow: 0 14px 34px rgba(249, 115, 22, 0.32);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: all 0.25s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.is-filter-hidden {
    display: none !important;
}

@media (max-width: 1100px) {
    .category-grid,
    .catalog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .movie-grid,
    .feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
}

@media (max-width: 860px) {
    .desktop-nav {
        display: none;
    }

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

    .hero-slider,
    .hero-content {
        min-height: 760px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 26px;
        padding-top: 42px;
        padding-bottom: 190px;
    }

    .hero-poster {
        width: min(260px, 72vw);
        justify-self: center;
        transform: rotate(0deg);
    }

    .hero-search-panel {
        flex-direction: column;
        align-items: stretch;
        bottom: 24px;
    }

    .hero-search,
    .inline-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-dots {
        left: 50%;
        right: auto;
        bottom: 160px;
        transform: translateX(-50%);
    }

    .category-grid,
    .movie-grid,
    .feature-grid,
    .catalog-grid,
    .category-overview-grid,
    .two-column-section,
    .footer-shell,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 300px;
    }

    .ranking-row-link {
        grid-template-columns: 52px 96px minmax(0, 1fr);
    }

    .ranking-play {
        display: none;
    }

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

@media (max-width: 560px) {
    .nav-shell {
        width: min(100% - 20px, 1180px);
    }

    .brand-text strong {
        font-size: 17px;
    }

    .brand-icon {
        width: 38px;
        height: 38px;
    }

    .section-shell,
    .detail-shell,
    .footer-shell,
    .footer-bottom {
        width: min(100% - 22px, 1180px);
    }

    .hero-content,
    .hero-search-panel {
        width: min(100% - 22px, 1180px);
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 38px;
    }

    .hero-copy p,
    .detail-one-line,
    .page-hero p {
        font-size: 16px;
    }

    .movie-grid,
    .catalog-grid {
        gap: 16px;
    }

    .ranking-row-link {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .ranking-number {
        text-align: left;
    }

    .ranking-row img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .player-frame {
        border-radius: 18px;
    }

    .content-card {
        padding: 22px;
    }
}
