:root {
    --rose-950: #3f0713;
    --rose-900: #881337;
    --rose-800: #9f1239;
    --rose-700: #be123c;
    --rose-600: #e11d48;
    --rose-100: #ffe4e6;
    --amber-900: #78350f;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-100: #fef3c7;
    --gray-950: #030712;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --shadow: 0 20px 55px rgba(63, 7, 19, 0.14);
    --soft-shadow: 0 12px 30px rgba(31, 41, 55, 0.12);
    --radius: 22px;
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #fff1f2 0%, #fffbeb 45%, #ffffff 100%);
    color: var(--gray-800);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--rose-950), var(--rose-800), var(--amber-900));
    box-shadow: 0 16px 35px rgba(63, 7, 19, 0.28);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 800;
    letter-spacing: 0.02em;
    flex: 0 0 auto;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #fb7185, var(--amber-500));
    color: var(--white);
    box-shadow: 0 14px 25px rgba(245, 158, 11, 0.28);
    transition: transform 0.28s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-4deg);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
}

.desktop-nav > a,
.nav-dropdown > button {
    position: relative;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 8px 0;
    cursor: pointer;
}

.desktop-nav > a::after,
.nav-dropdown > button::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 2px;
    border-radius: 99px;
    background: var(--amber-500);
    transition: width 0.25s ease;
}

.desktop-nav > a:hover,
.desktop-nav > a.active,
.nav-dropdown > button:hover {
    color: #fde68a;
}

.desktop-nav > a:hover::after,
.desktop-nav > a.active::after,
.nav-dropdown:hover > button::after {
    width: 100%;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-panel {
    position: absolute;
    left: -18px;
    top: calc(100% + 12px);
    min-width: 148px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--gray-700);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(8px);
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

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

.nav-dropdown-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    white-space: nowrap;
}

.nav-dropdown-panel a:hover {
    background: var(--rose-100);
    color: var(--rose-900);
}

.header-search {
    position: relative;
    width: min(275px, 28vw);
}

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select,
.search-panel input,
.search-panel select {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--gray-800);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.header-search input {
    padding: 11px 44px 11px 17px;
}

.header-search button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--rose-900);
    color: var(--white);
    cursor: pointer;
}

.mobile-menu-button {
    display: none;
    flex-direction: column;
    gap: 5px;
    border: 0;
    background: transparent;
    padding: 8px;
    cursor: pointer;
}

.mobile-menu-button span {
    width: 24px;
    height: 2px;
    border-radius: 99px;
    background: var(--white);
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 16px;
}

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

.mobile-search {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.mobile-search input {
    padding: 11px 16px;
}

.mobile-search button {
    border: 0;
    border-radius: 999px;
    padding: 0 16px;
    background: var(--amber-500);
    color: var(--white);
}

.mobile-panel nav {
    display: grid;
    gap: 8px;
}

.mobile-panel nav a {
    color: var(--white);
    padding: 9px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: var(--gray-950);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 6s ease;
}

.hero-slide.active .hero-bg img {
    transform: scale(1.1);
}

.hero-overlay {
    background: linear-gradient(90deg, rgba(3, 7, 18, 0.9) 0%, rgba(63, 7, 19, 0.75) 45%, rgba(120, 53, 15, 0.18) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 680px;
    color: var(--white);
    padding: 72px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fbbf24;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 74px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero p {
    margin: 0;
    font-size: clamp(17px, 2.4vw, 22px);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 34px;
}

.hero-meta span,
.category-pill,
.category-chip,
.duration-chip,
.rank-badge,
.tag-list span,
.detail-tags span,
.filter-count {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    white-space: nowrap;
}

.hero-meta span:first-child,
.category-pill {
    background: var(--rose-600);
    color: var(--white);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
}

.hero-meta span:not(:first-child) {
    color: rgba(255, 255, 255, 0.84);
    padding: 8px 0;
    font-size: 14px;
}

.primary-button,
.light-button,
.section-more,
.category-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
    padding: 15px 28px;
    background: linear-gradient(90deg, var(--rose-600), var(--amber-600));
    color: var(--white);
    font-weight: 800;
    box-shadow: 0 18px 38px rgba(225, 29, 72, 0.28);
}

.primary-button:hover,
.light-button:hover,
.category-button:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

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

.hero-dot.active {
    width: 72px;
    background: var(--amber-500);
}

.section {
    padding: 72px 0;
}

.section.alt {
    background: linear-gradient(90deg, rgba(255, 228, 230, 0.75), rgba(254, 243, 199, 0.75));
}

.section.dark-cta {
    background: linear-gradient(90deg, var(--rose-950), var(--amber-900));
    color: var(--white);
    text-align: center;
}

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

.section-heading > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--rose-100), var(--amber-100));
    color: var(--rose-800);
    font-size: 22px;
}

.section-heading h2,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    color: var(--gray-800);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-heading h2 {
    font-size: clamp(26px, 4vw, 36px);
}

.section-more {
    color: var(--rose-700);
    font-weight: 700;
}

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

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

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

.featured-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.featured-side {
    display: grid;
    gap: 22px;
}

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.card-poster {
    position: relative;
    aspect-ratio: 3 / 4.1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--rose-900), var(--amber-900));
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.68));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.category-chip {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    background: var(--rose-600);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
}

.duration-chip {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 5px 9px;
    background: rgba(0, 0, 0, 0.76);
    color: var(--white);
    font-size: 12px;
}

.rank-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    justify-content: center;
    background: linear-gradient(135deg, var(--amber-500), var(--rose-600));
    color: var(--white);
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

.card-body {
    padding: 16px;
}

.card-body h3,
.large-card-info h3,
.related-item h3 {
    margin: 0;
    color: var(--gray-800);
    transition: color 0.25s ease;
}

.card-body h3 {
    min-height: 48px;
    font-size: 17px;
    line-height: 1.42;
}

.movie-card:hover h3,
.related-item:hover h3 {
    color: var(--rose-800);
}

.card-body p {
    margin: 9px 0 14px;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.65;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--gray-500);
    font-size: 12px;
}

.horizontal-card {
    display: flex;
    gap: 16px;
    min-height: 160px;
}

.small-poster {
    width: 185px;
    min-width: 185px;
    aspect-ratio: auto;
}

.horizontal-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.horizontal-card .card-body h3 {
    min-height: auto;
}

.large-card {
    border-radius: 26px;
}

.wide-poster {
    aspect-ratio: 16 / 9;
    border-radius: 26px;
}

.large-card-info {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    color: var(--white);
}

.large-card-info h3 {
    color: var(--white);
    margin: 12px 0 8px;
    font-size: clamp(24px, 4vw, 38px);
}

.large-card-info p {
    margin: 0;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

.page-hero {
    background: linear-gradient(90deg, var(--rose-950), var(--rose-800), var(--amber-900));
    color: var(--white);
    padding: 70px 0;
}

.page-hero h1 {
    color: var(--white);
    font-size: clamp(34px, 6vw, 58px);
    margin-bottom: 14px;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

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

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

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 26px;
    min-height: 220px;
    background: linear-gradient(135deg, var(--white), #fff7ed);
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.category-card::before {
    content: "";
    position: absolute;
    right: -38px;
    top: -38px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.22), rgba(245, 158, 11, 0.24));
}

.category-card h2 {
    position: relative;
    margin: 0 0 12px;
    font-size: 26px;
    color: var(--gray-800);
}

.category-card p {
    position: relative;
    color: var(--gray-600);
    line-height: 1.75;
    margin: 0 0 18px;
}

.category-button {
    position: relative;
    padding: 10px 18px;
    color: var(--white);
    background: linear-gradient(90deg, var(--rose-600), var(--amber-600));
    font-weight: 700;
}

.filter-bar,
.search-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 30px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(14px);
}

.filter-bar input,
.filter-bar select,
.search-panel input,
.search-panel select {
    padding: 13px 16px;
    box-shadow: inset 0 0 0 1px var(--gray-200);
}

.filter-count {
    justify-content: center;
    padding: 12px 16px;
    background: var(--rose-100);
    color: var(--rose-800);
    font-weight: 700;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 80px 120px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 16px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ranking-row:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.ranking-number {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: linear-gradient(135deg, var(--rose-600), var(--amber-600));
    color: var(--white);
    font-size: 20px;
    font-weight: 900;
}

.ranking-cover {
    height: 84px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--rose-900), var(--amber-900));
}

.ranking-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-info h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.ranking-info p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.6;
}

.ranking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    color: var(--gray-500);
    font-size: 13px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    background: var(--gray-950);
    color: var(--white);
}

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

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
    filter: blur(2px);
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 7, 18, 0.94), rgba(63, 7, 19, 0.74), rgba(120, 53, 15, 0.36));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 34px;
    align-items: center;
    padding: 58px 0;
}

.detail-poster {
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
    background: linear-gradient(135deg, var(--rose-900), var(--amber-900));
}

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

.detail-title h1 {
    color: var(--white);
    font-size: clamp(34px, 6vw, 60px);
    line-height: 1.12;
    margin-bottom: 16px;
}

.detail-title p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.85;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0;
}

.detail-meta span {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.9);
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-tags span,
.tag-list span {
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
}

.detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 30px;
    padding: 54px 0 76px;
}

.content-panel,
.related-panel {
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.content-panel {
    padding: 26px;
}

.content-panel h2,
.related-panel h2 {
    margin: 0 0 18px;
    color: var(--gray-800);
    font-size: 26px;
}

.content-panel p {
    color: var(--gray-700);
    line-height: 1.95;
    font-size: 16px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: var(--shadow);
    margin-bottom: 26px;
    aspect-ratio: 16 / 9;
}

.player-frame video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    background: #000000;
    cursor: pointer;
    z-index: 3;
}

.player-cover.hidden {
    display: none;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.25), rgba(3, 7, 18, 0.72));
}

.play-symbol {
    position: relative;
    z-index: 2;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose-600), var(--amber-500));
    color: var(--white);
    font-size: 38px;
    line-height: 1;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.34);
    padding-left: 5px;
}

.related-panel {
    position: sticky;
    top: 92px;
    align-self: start;
    padding: 22px;
}

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

.related-item {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 13px;
    align-items: center;
}

.related-item img {
    width: 112px;
    height: 76px;
    object-fit: cover;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--rose-900), var(--amber-900));
}

.related-item h3 {
    font-size: 14px;
    line-height: 1.45;
}

.related-item p {
    margin: 7px 0 0;
    color: var(--gray-500);
    font-size: 12px;
}

.search-results-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.empty-state {
    display: none;
    text-align: center;
    padding: 70px 20px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

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

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.site-footer {
    background: linear-gradient(180deg, var(--gray-900), #000000);
    color: var(--white);
    padding: 54px 0 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 32px;
    margin-bottom: 32px;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 14px;
    color: #fbbf24;
}

.site-footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.64);
    line-height: 1.8;
}

.site-footer a {
    display: block;
    color: rgba(255, 255, 255, 0.64);
    margin: 8px 0;
}

.site-footer a:hover {
    color: #fda4af;
}

.footer-badge {
    display: inline-flex;
    margin-top: 18px;
    color: #fda4af;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    color: rgba(255, 255, 255, 0.46);
    font-size: 14px;
}

@media (max-width: 980px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .mobile-menu-button {
        display: flex;
    }

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

    .featured-layout,
    .detail-main,
    .detail-hero-inner,
    .footer-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

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

    .related-panel {
        position: static;
    }

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

    .ranking-row {
        grid-template-columns: 60px 100px 1fr;
    }

    .ranking-row .primary-button {
        grid-column: 2 / -1;
        width: max-content;
    }
}

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

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

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

    .hero-copy {
        padding: 54px 0 80px;
    }

    .hero-meta {
        gap: 8px;
    }

    .section {
        padding: 48px 0;
    }

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

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

    .card-body {
        padding: 12px;
    }

    .card-body h3 {
        min-height: 42px;
        font-size: 15px;
    }

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

    .horizontal-card {
        gap: 12px;
        min-height: 132px;
    }

    .small-poster {
        width: 118px;
        min-width: 118px;
    }

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

    .detail-main {
        padding: 34px 0 52px;
    }

    .content-panel,
    .related-panel {
        padding: 18px;
    }

    .ranking-row {
        grid-template-columns: 48px 84px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .ranking-number {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 16px;
    }

    .ranking-cover {
        height: 68px;
    }

    .ranking-info h2 {
        font-size: 16px;
    }

    .ranking-info p {
        display: none;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
