:root {
    --color-primary: #c91f1f;
    --color-primary-dark: #8f1414;
    --color-primary-soft: #fff1f1;
    --color-ink: #16171a;
    --color-muted: #62666d;
    --color-line: #eceef2;
    --color-bg: #f8fafc;
    --color-card: #ffffff;
    --shadow-soft: 0 18px 55px rgba(15, 23, 42, 0.10);
    --shadow-card: 0 12px 32px rgba(15, 23, 42, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--color-bg);
    color: var(--color-ink);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(16px);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.98);
}

.header-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: var(--color-ink);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #b91c1c 62%, #7f1d1d);
    box-shadow: 0 12px 30px rgba(201, 31, 31, 0.30);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nav-link,
.mobile-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 16px;
    color: #3f444d;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.mobile-nav-link:hover,
.nav-link.active,
.mobile-nav-link.active {
    color: var(--color-primary-dark);
    background: var(--color-primary-soft);
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
}

.header-search input,
.mobile-search input,
.large-search input,
.filter-bar input,
.filter-bar select {
    border: 0;
    outline: 0;
    background: transparent;
    min-width: 0;
    color: var(--color-ink);
}

.header-search input {
    width: 190px;
    padding: 8px 6px 8px 12px;
}

.header-search button,
.mobile-search button,
.large-search button,
.filter-bar button {
    border: 0;
    border-radius: 999px;
    padding: 9px 16px;
    color: #ffffff;
    background: var(--color-primary);
    font-weight: 800;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.large-search button:hover,
.filter-bar button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: #111827;
}

.mobile-nav {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.mobile-nav.is-open {
    display: grid;
    gap: 10px;
}

.hero-slider {
    position: relative;
    min-height: 710px;
    overflow: hidden;
    background: #100f13;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 72% 22%, rgba(239, 68, 68, 0.36), transparent 30%), linear-gradient(135deg, #160f12, #3b1111 45%, #09090b);
}

.hero-backdrop img {
    opacity: 0.33;
    filter: blur(2px) saturate(1.1);
    transform: scale(1.04);
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(9, 9, 11, 0.96), rgba(9, 9, 11, 0.70) 45%, rgba(9, 9, 11, 0.28)), linear-gradient(0deg, rgba(9, 9, 11, 0.88), transparent 45%);
}

.hero-content {
    position: relative;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 710px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    align-items: center;
    gap: 64px;
    padding: 96px 0 118px;
}

.hero-copy {
    max-width: 760px;
    color: #ffffff;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    border-radius: 999px;
    padding: 7px 12px;
    color: var(--color-primary-dark);
    background: #fee2e2;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy .eyebrow {
    color: #fecaca;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.20);
}

.hero-copy h1 {
    margin-top: 20px;
    font-size: clamp(46px, 7vw, 86px);
    line-height: 0.95;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero-copy p {
    margin-top: 24px;
    max-width: 680px;
    color: #f3f4f6;
    font-size: clamp(18px, 2.3vw, 24px);
    line-height: 1.7;
}

.hero-tags,
.movie-tags,
.chip-row,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.hero-tags span,
.movie-tags span,
.detail-meta span,
.chip-link {
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.movie-tags span,
.detail-meta span,
.chip-link {
    color: #7f1d1d;
    background: #fee2e2;
}

.chip-link {
    text-decoration: none;
    border: 1px solid transparent;
}

.chip-link.active,
.chip-link:hover {
    background: var(--color-primary);
    color: #ffffff;
}

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

.primary-button,
.ghost-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    min-height: 48px;
    padding: 0 24px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    box-shadow: 0 18px 36px rgba(185, 28, 28, 0.34);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.10);
}

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

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 34px;
    background: linear-gradient(135deg, #7f1d1d, #111827);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.42);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: inherit;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
}

.hero-control,
.hero-dot {
    border: 0;
    color: #ffffff;
    background: transparent;
}

.hero-control {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 34px;
    line-height: 1;
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.16);
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 9px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
}

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

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

.quick-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 32px;
    align-items: center;
}

.quick-search h2,
.section-heading h2,
.page-hero h1,
.detail-copy h1,
.content-card h2,
.info-card h2,
.side-panel h2 {
    margin-top: 12px;
    color: var(--color-ink);
    font-weight: 950;
    letter-spacing: -0.04em;
}

.quick-search h2,
.section-heading h2,
.page-hero h1 {
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.08;
}

.quick-search p,
.page-hero p,
.category-desc,
.movie-card p,
.ranking-info span,
.content-card p,
.footer-inner p,
.lead-text {
    color: var(--color-muted);
    line-height: 1.75;
}

.quick-search p {
    margin-top: 14px;
    max-width: 680px;
}

.large-search {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.large-search input {
    flex: 1;
    padding: 0 16px;
    min-height: 52px;
}

.large-search button {
    padding-inline: 28px;
}

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

.compact-heading {
    align-items: center;
}

.section-link {
    min-height: 42px;
    color: var(--color-primary-dark);
    background: var(--color-primary-soft);
}

.movie-grid,
.compact-grid,
.category-grid {
    display: grid;
    gap: 22px;
}

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

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

.one-column {
    grid-template-columns: 1fr;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: var(--color-card);
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
    position: relative;
    display: block;
}

.poster-frame {
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #fee2e2, #7f1d1d);
}

.movie-card.compact .poster-frame {
    aspect-ratio: 16 / 22;
}

.poster-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    border-radius: 999px;
    padding: 6px 10px;
    color: #ffffff;
    background: rgba(127, 29, 29, 0.88);
    font-size: 12px;
    font-weight: 900;
}

.movie-card-body {
    padding: 16px;
}

.movie-card h3 {
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
    color: var(--color-ink);
}

.movie-card h3 a:hover {
    color: var(--color-primary);
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 9px;
    color: #8a9099;
    font-size: 13px;
    font-weight: 700;
}

.movie-card p {
    display: -webkit-box;
    margin-top: 10px;
    min-height: 3.5em;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
}

.movie-tags {
    margin-top: 14px;
}

.movie-tags span {
    padding: 5px 9px;
    font-size: 12px;
}

.tinted-section {
    width: min(1240px, calc(100% - 32px));
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 52px;
    border-radius: 34px;
    background: linear-gradient(135deg, #fff7f7, #ffffff 45%, #f8fafc);
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.9);
}

.category-card {
    display: grid;
    gap: 12px;
    min-height: 210px;
    padding: 24px;
    border-radius: 24px;
    color: var(--color-ink);
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #ffffff, #fff1f1);
    box-shadow: var(--shadow-soft);
}

.category-number {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #991b1b);
    font-weight: 950;
}

.category-name {
    font-size: 24px;
    font-weight: 950;
}

.category-sample {
    margin-top: auto;
    color: var(--color-primary-dark);
    font-weight: 900;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: 42px;
    align-items: start;
}

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

.ranking-item {
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

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

.ranking-number {
    color: var(--color-primary-dark);
    font-size: 22px;
    font-weight: 950;
    text-align: center;
}

.ranking-thumb {
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #fee2e2, #991b1b);
}

.ranking-info {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.ranking-info strong {
    color: var(--color-ink);
    font-size: 17px;
    font-weight: 950;
}

.ranking-info em {
    color: #8a9099;
    font-style: normal;
    font-size: 13px;
    font-weight: 800;
}

.ranking-info span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 74% 12%, rgba(239, 68, 68, 0.28), transparent 34%), linear-gradient(135deg, #ffffff, #fff1f1 48%, #f8fafc);
    border-bottom: 1px solid #e5e7eb;
}

.page-hero-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 92px 0 76px;
}

.page-hero p {
    margin-top: 18px;
    max-width: 820px;
    font-size: 18px;
}

.category-hero .chip-row {
    margin-top: 28px;
}

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

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

.side-panel {
    position: sticky;
    top: 96px;
    border-radius: 26px;
    padding: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.search-panel {
    padding-top: 42px;
}

.filter-bar {
    position: sticky;
    top: 84px;
    z-index: 9;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 180px 180px auto;
    gap: 12px;
    margin-bottom: 28px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
}

.filter-bar input,
.filter-bar select {
    min-height: 46px;
    border-radius: 999px;
    padding: 0 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.search-grid .is-hidden {
    display: none;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    color: #ffffff;
    background: #09090b;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 20%, rgba(239, 68, 68, 0.34), transparent 32%), linear-gradient(135deg, #111827, #3b1111);
}

.detail-backdrop img {
    opacity: 0.22;
    filter: blur(2px) saturate(1.1);
    transform: scale(1.04);
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(9, 9, 11, 0.96), rgba(9, 9, 11, 0.65) 52%, rgba(9, 9, 11, 0.25));
}

.detail-hero-inner {
    position: relative;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 40px 0 76px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 36px;
    color: #d1d5db;
    font-weight: 700;
}

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

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

.detail-poster {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 30px;
    background: linear-gradient(135deg, #7f1d1d, #111827);
    box-shadow: 0 36px 80px rgba(0, 0, 0, 0.38);
}

.detail-copy h1 {
    color: #ffffff;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.03;
}

.lead-text {
    max-width: 820px;
    margin-top: 22px;
    color: #f3f4f6;
    font-size: 20px;
}

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

.detail-copy .primary-button {
    margin-top: 32px;
}

.player-section {
    padding-top: 72px;
    padding-bottom: 40px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
    aspect-ratio: 16 / 9;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: #ffffff;
    border: 0;
    background: rgba(2, 6, 23, 0.58);
    cursor: pointer;
}

.player-cover img {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.34;
    filter: blur(1px) saturate(1.1);
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.85), rgba(2, 6, 23, 0.25));
}

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

.play-icon {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #991b1b);
    box-shadow: 0 20px 44px rgba(185, 28, 28, 0.42);
    font-size: 34px;
    text-indent: 5px;
}

.player-cover strong {
    max-width: min(88%, 760px);
    text-align: center;
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 950;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 34px;
    align-items: start;
    padding-top: 28px;
}

.content-card,
.info-card {
    border-radius: 28px;
    padding: 34px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.content-card h2,
.info-card h2 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 28px;
}

.content-card h2:not(:first-child) {
    margin-top: 34px;
}

.content-card p {
    font-size: 17px;
}

.info-card {
    position: sticky;
    top: 96px;
}

.info-card dl {
    display: grid;
    gap: 14px;
}

.info-card dl div {
    display: grid;
    gap: 6px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf2f7;
}

.info-card dt {
    color: #8a9099;
    font-weight: 900;
}

.info-card dd {
    color: var(--color-ink);
    font-weight: 800;
}

.site-footer {
    margin-top: 72px;
    background: #101114;
    color: #ffffff;
}

.footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    gap: 20px;
}

.footer-logo {
    color: #ffffff;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links a {
    color: #e5e7eb;
    font-weight: 800;
}

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

.footer-inner p {
    color: #cbd5e1;
    max-width: 760px;
}

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

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

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

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

    .split-section,
    .ranking-page-layout,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .side-panel,
    .info-card {
        position: static;
    }
}

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

    .mobile-menu-button {
        display: inline-flex;
        margin-left: auto;
    }

    .header-inner {
        min-height: 66px;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        gap: 34px;
        padding: 72px 0 110px;
    }

    .hero-poster {
        width: min(280px, 70vw);
        margin: 0 auto;
    }

    .quick-search {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        position: static;
        grid-template-columns: 1fr;
    }

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

    .detail-poster {
        width: min(280px, 70vw);
    }
}

@media (max-width: 640px) {
    .section-shell,
    .page-hero-inner,
    .detail-hero-inner,
    .header-inner,
    .mobile-nav,
    .footer-inner {
        width: min(100% - 22px, 1240px);
    }

    .section-shell {
        padding: 48px 0;
    }

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

    .hero-copy h1,
    .detail-copy h1 {
        letter-spacing: -0.045em;
    }

    .hero-actions,
    .large-search,
    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .large-search {
        border-radius: 24px;
    }

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

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

    .movie-card-body {
        padding: 13px;
    }

    .movie-card p {
        display: none;
    }

    .tinted-section {
        padding: 26px 14px;
        border-radius: 24px;
    }

    .category-card {
        min-height: 180px;
        padding: 18px;
    }

    .ranking-link,
    .full-ranking .ranking-link {
        grid-template-columns: 46px 64px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .ranking-info span {
        display: none;
    }

    .content-card,
    .info-card {
        padding: 24px;
        border-radius: 22px;
    }

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

    .play-icon {
        width: 68px;
        height: 68px;
        font-size: 26px;
    }
}
