:root {
    color-scheme: light;
    --bg: #f8fafc;
    --bg-soft: #eef2f7;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --muted-2: #94a3b8;
    --line: #e2e8f0;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --red: #ef4444;
    --red-2: #dc2626;
    --orange: #fb923c;
    --blue: #3b82f6;
    --purple: #8b5cf6;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 44%, #f8fafc 100%);
    min-width: 320px;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(51, 65, 85, 0.97), rgba(15, 23, 42, 0.98));
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(16px);
}

.header-inner {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.brand-mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: #ffffff;
    font-size: 14px;
    box-shadow: 0 10px 26px rgba(239, 68, 68, 0.35);
}

.brand-text {
    font-size: 24px;
    background: linear-gradient(90deg, #fecaca, #ffffff, #fca5a5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    padding: 10px 15px;
    border-radius: 12px;
    color: #e2e8f0;
    transition: 0.22s ease;
    font-size: 15px;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(239, 68, 68, 0.95);
    color: #ffffff;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-inner {
    padding: 14px 0 18px;
    display: grid;
    gap: 10px;
}

.mobile-sub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 8px;
}

.mobile-sub-link {
    padding: 9px 12px;
    border-radius: 12px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
    font-size: 14px;
}

.hero-carousel {
    position: relative;
    height: 590px;
    min-height: 520px;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at 22% 18%, rgba(239, 68, 68, 0.38), transparent 32%), linear-gradient(135deg, #0f172a, #450a0a 48%, #111827);
}

.hero-carousel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.22;
    background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.7s ease, transform 1.1s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px) saturate(1.12);
    transform: scale(1.08);
    opacity: 0.45;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.78) 46%, rgba(15, 23, 42, 0.32) 100%);
}

.hero-content {
    position: relative;
    z-index: 5;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    align-items: center;
    gap: 56px;
    padding: 78px 0 86px;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid rgba(248, 113, 113, 0.42);
    border-radius: 999px;
    color: #fecaca;
    background: rgba(127, 29, 29, 0.32);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 18px 0 18px;
    line-height: 1.05;
    letter-spacing: -0.05em;
    font-size: clamp(38px, 6vw, 76px);
    font-weight: 950;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
    max-width: 720px;
    margin: 0;
    color: #e2e8f0;
    font-size: 18px;
    line-height: 1.8;
}

.hero-tags,
.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.hero-tags span,
.pill-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.pill-row span {
    color: #b91c1c;
    background: #fee2e2;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 900;
    transition: 0.22s ease;
}

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 18px 36px rgba(239, 68, 68, 0.35);
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.btn-soft {
    color: #fee2e2;
    background: rgba(127, 29, 29, 0.45);
    border: 1px solid rgba(248, 113, 113, 0.24);
}

.hero-poster {
    position: relative;
    align-self: center;
    justify-self: end;
    width: 330px;
    aspect-ratio: 2 / 3;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.16);
    transform: rotate(2deg);
}

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

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

.hero-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 9px 13px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(239, 68, 68, 0.88);
    font-size: 14px;
    font-weight: 900;
}

.hero-controls {
    position: absolute;
    z-index: 10;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-controls button {
    border: 0;
}

.hero-controls > button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    font-size: 28px;
    line-height: 1;
    backdrop-filter: blur(10px);
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    transition: 0.22s ease;
}

.hero-dot.active {
    width: 32px;
    background: #ffffff;
}

.home-intro {
    margin-top: -44px;
    position: relative;
    z-index: 20;
}

.feature-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-tile {
    min-height: 126px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    color: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.22s ease;
}

.feature-tile:hover {
    transform: translateY(-4px);
}

.feature-tile strong {
    font-size: 26px;
    line-height: 1.15;
}

.feature-tile span {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.82);
}

.tile-blue {
    background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.28), transparent 28%), linear-gradient(135deg, #2563eb, #1d4ed8);
}

.tile-red {
    background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.28), transparent 28%), linear-gradient(135deg, #ef4444, #991b1b);
}

.tile-purple {
    background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.28), transparent 28%), linear-gradient(135deg, #8b5cf6, #5b21b6);
}

.content-section {
    padding: 54px 0;
}

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

.section-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #dc2626;
    font-weight: 900;
}

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

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

.movie-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(226, 232, 240, 0.78);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(248, 113, 113, 0.45);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #111827;
}

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

.movie-card:hover .movie-poster img {
    transform: scale(1.08);
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    color: #ffffff;
    font-weight: 900;
    border-radius: 999px;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 7px 10px;
    background: rgba(239, 68, 68, 0.88);
    font-size: 13px;
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    background: rgba(15, 23, 42, 0.78);
    font-size: 13px;
}

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

.movie-meta-line {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.movie-card h2 {
    margin: 8px 0 7px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 950;
}

.movie-card h2 a:hover {
    color: var(--red-2);
}

.movie-card p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    flex: 1;
}

.movie-card-compact .movie-card-body {
    padding: 12px;
}

.movie-card-compact h2 {
    font-size: 15px;
}

.movie-card-compact p {
    font-size: 13px;
}

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

.category-tile {
    position: relative;
    min-height: 210px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 22px;
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: 0.24s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(239, 68, 68, 0.45);
}

.category-name {
    color: #0f172a;
    font-size: 22px;
    font-weight: 950;
}

.category-desc {
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

.category-thumbs {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    min-height: 88px;
}

.category-thumbs img {
    width: 58px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.16);
}

.category-thumbs img:nth-child(2) {
    transform: translateY(-10px);
}

.ranking-band,
.recommend-band {
    padding: 58px 0;
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(239, 68, 68, 0.34), transparent 30%), linear-gradient(135deg, #0f172a, #1e293b 48%, #111827);
}

.ranking-band .section-heading h2,
.ranking-band .section-heading p,
.recommend-band .section-heading h2,
.recommend-band .section-heading p {
    color: #ffffff;
}

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

.mini-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 92px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: 0.22s ease;
}

.mini-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.mini-card img {
    width: 64px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 10px;
}

.mini-card-text {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.mini-card-text strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ffffff;
    font-weight: 900;
}

.mini-card-text em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #cbd5e1;
    font-size: 13px;
    font-style: normal;
}

.mini-rank {
    display: inline-grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--red);
    font-size: 12px;
    font-weight: 950;
}

.page-hero {
    color: #ffffff;
    background: radial-gradient(circle at 18% 20%, rgba(239, 68, 68, 0.44), transparent 32%), linear-gradient(135deg, #0f172a, #1e293b 54%, #450a0a);
    padding: 82px 0 72px;
    overflow: hidden;
}

.compact-hero {
    min-height: 300px;
}

.category-hero,
.ranking-hero {
    min-height: 360px;
}

.page-actions {
    margin-top: 24px;
}

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

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    align-items: end;
    gap: 14px;
    padding: 18px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    background: #ffffff;
}

.search-field span {
    color: var(--red-2);
    font-size: 20px;
    font-weight: 900;
}

.search-field input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text);
}

.filter-selects {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-selects label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.filter-selects select {
    min-width: 136px;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    color: var(--text);
    background: #ffffff;
    outline: 0;
}

.empty-state {
    display: none;
    padding: 32px;
    text-align: center;
    color: var(--muted);
    border-radius: 22px;
    border: 1px dashed #cbd5e1;
    background: #ffffff;
}

.empty-state.show {
    display: block;
}

.category-overview-grid {
    display: grid;
    gap: 20px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: 20px;
    padding: 22px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-soft);
}

.category-overview-head h2 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 950;
}

.category-overview-head p {
    color: var(--muted);
    line-height: 1.7;
}

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

.category-preview-list .mini-card {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.category-preview-list .mini-card-text strong {
    color: #0f172a;
}

.category-preview-list .mini-card-text em {
    color: var(--muted);
}

.rank-list {
    display: grid;
    gap: 14px;
}

.rank-row {
    display: grid;
    grid-template-columns: 80px 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 20px;
}

.rank-cover img {
    width: 80px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.rank-number {
    font-size: 30px;
    font-weight: 950;
    color: var(--red-2);
    text-align: center;
}

.rank-info h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 950;
}

.rank-info p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.65;
}

.rank-action {
    padding: 10px 14px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    font-weight: 900;
}

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

.detail-backdrop,
.detail-backdrop img,
.detail-shade {
    position: absolute;
    inset: 0;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(12px) saturate(1.12);
    transform: scale(1.08);
    opacity: 0.44;
}

.detail-shade {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72), rgba(69, 10, 10, 0.62));
}

.detail-hero-inner {
    position: relative;
    z-index: 3;
    padding: 58px 0 70px;
}

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

.detail-poster {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.detail-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 10px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(239, 68, 68, 0.92);
    font-weight: 950;
}

.detail-copy h1 {
    font-size: clamp(36px, 5vw, 66px);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-weight: 800;
}

.detail-section {
    padding: 44px 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #020617;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.32);
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    padding: 24px;
    text-align: center;
    color: #ffffff;
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.34), rgba(2, 6, 23, 0.78));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-icon {
    display: inline-grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 20px 50px rgba(239, 68, 68, 0.38);
    font-size: 30px;
}

.player-overlay strong {
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 950;
}

.player-overlay em {
    color: #e2e8f0;
    font-style: normal;
}

.detail-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 34px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-soft);
}

.detail-article h2 {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 950;
}

.detail-article h2:not(:first-child) {
    margin-top: 30px;
}

.detail-article p {
    color: #334155;
    line-height: 1.9;
    font-size: 17px;
}

.text-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.text-link-row a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #b91c1c;
    background: #fee2e2;
    font-weight: 800;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 1fr 1fr;
    gap: 34px;
    padding: 48px 0;
}

.footer-logo .brand-text {
    font-size: 20px;
}

.footer-brand p,
.footer-copy {
    color: #94a3b8;
    line-height: 1.75;
}

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

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 9px;
}

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

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding: 18px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 14px;
}

[hidden],
.is-hidden {
    display: none !important;
}

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

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

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

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

    .nav-toggle {
        display: flex;
    }

    .mobile-nav.open {
        display: block;
    }

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

    .hero-carousel {
        height: auto;
        min-height: 0;
    }

    .hero-slide {
        position: relative;
        display: none;
        min-height: 720px;
    }

    .hero-slide.active {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 56px 0 104px;
    }

    .hero-poster {
        justify-self: start;
        width: min(270px, 80vw);
        transform: none;
    }

    .feature-strip {
        grid-template-columns: 1fr;
    }

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

    .category-overview-card,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 720px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .header-inner {
        height: 62px;
    }

    .brand-mark {
        width: 30px;
        height: 30px;
    }

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

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

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

    .movie-grid,
    .catalog-grid,
    .category-grid,
    .ranking-grid,
    .category-preview-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

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

    .rank-row {
        grid-template-columns: 64px 42px minmax(0, 1fr);
        gap: 10px;
    }

    .rank-cover img {
        width: 64px;
    }

    .rank-action {
        grid-column: 1 / -1;
        text-align: center;
    }

    .rank-info h2 {
        font-size: 18px;
    }

    .detail-section {
        padding: 30px 0;
    }

    .detail-article {
        padding: 22px;
    }

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

@media (max-width: 460px) {
    .movie-grid,
    .catalog-grid,
    .category-grid,
    .category-preview-list {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .filter-selects {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .filter-selects select {
        width: 100%;
    }
}
