:root {
    --amber: #d97706;
    --amber-dark: #b45309;
    --orange: #f97316;
    --blue: #2563eb;
    --green: #16a34a;
    --purple: #7c3aed;
    --dark: #111827;
    --muted: #6b7280;
    --soft: #f9fafb;
    --card: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --radius-xl: 24px;
    --radius-lg: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--dark);
    background: var(--soft);
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0));
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(16px);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.site-header.is-scrolled .brand,
.site-header.menu-open .brand {
    color: var(--dark);
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.site-header.is-scrolled .brand-icon,
.site-header.menu-open .brand-icon,
.footer-logo .brand-icon {
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.28);
}

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

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

.nav-link {
    color: #ffffff;
    font-weight: 700;
    transition: color 0.2s ease;
}

.site-header.is-scrolled .nav-link,
.site-header.menu-open .nav-link {
    color: #374151;
}

.nav-link:hover,
.nav-link.is-active,
.site-header.is-scrolled .nav-link:hover,
.site-header.is-scrolled .nav-link.is-active {
    color: var(--amber);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 210px;
    padding: 9px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(16px);
}

.site-header.is-scrolled .nav-search,
.site-header.menu-open .nav-search {
    color: #374151;
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.nav-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: inherit;
    background: transparent;
}

.nav-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.site-header.is-scrolled .nav-search input::placeholder,
.site-header.menu-open .nav-search input::placeholder {
    color: #9ca3af;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: #ffffff;
}

.site-header.is-scrolled .menu-toggle,
.site-header.menu-open .menu-toggle {
    background: #f3f4f6;
}

.site-header.is-scrolled .menu-toggle span,
.site-header.menu-open .menu-toggle span {
    background: #111827;
}

.mobile-menu {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.mobile-menu.is-open {
    display: block;
}

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

.mobile-search input,
.page-search input,
.hero-search input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 13px 18px;
    outline: none;
    background: #ffffff;
}

.mobile-search button,
.page-search button,
.hero-search button {
    border: 0;
    border-radius: 999px;
    padding: 13px 22px;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

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

.mobile-nav-link {
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
    color: #374151;
    background: #f9fafb;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: var(--amber);
    background: #fff7ed;
}

.hero-carousel {
    position: relative;
    height: 700px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

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

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 18%, rgba(217, 119, 6, 0.32), transparent 28%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.52) 46%, rgba(0, 0, 0, 0.2));
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 92px;
    transform: translateX(-50%);
}

.hero-copy {
    width: min(780px, 100%);
    color: #ffffff;
}

.hero-tags,
.detail-tags,
.meta-line,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 14px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hero-tags span:first-child,
.detail-tags span:first-child {
    background: var(--amber);
}

.hero-copy h1,
.hero-copy h2 {
    margin: 20px 0 16px;
    font-size: clamp(38px, 7vw, 70px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 28px;
    color: #e5e7eb;
    font-size: clamp(16px, 2vw, 21px);
}

.hero-actions {
    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: 999px;
    padding: 0 26px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 16px 34px rgba(217, 119, 6, 0.35);
}

.ghost-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    font-size: 38px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-prev {
    left: 28px;
}

.hero-next {
    right: 28px;
}

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

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

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

.home-search-panel {
    margin-top: -54px;
    position: relative;
    z-index: 6;
}

.search-panel-inner {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px);
    gap: 22px;
    align-items: center;
    padding: 28px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-panel-inner h2,
.section-heading h2,
.page-hero h1,
.detail-content h1 {
    margin: 0;
    letter-spacing: -0.04em;
}

.search-panel-inner p,
.section-heading p,
.page-hero p {
    margin: 6px 0 0;
    color: var(--muted);
}

.hero-search,
.page-search {
    display: flex;
    gap: 10px;
}

.content-section {
    padding-top: 64px;
    padding-bottom: 10px;
}

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

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

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

.section-heading a {
    color: var(--amber);
    font-weight: 900;
}

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

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

.card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: var(--card);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-link:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.16);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #374151);
}

.poster-frame img,
.category-tile img,
.category-card-cover img,
.rank-poster img,
.compact-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-link:hover .poster-frame img,
.category-tile:hover img,
.category-card:hover img,
.rank-link:hover img,
.compact-link:hover img {
    transform: scale(1.08);
}

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 62%);
    transition: opacity 0.25s ease;
}

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

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

.year-badge {
    top: 10px;
    right: 10px;
    padding: 4px 9px;
    background: rgba(0, 0, 0, 0.75);
}

.play-chip {
    left: 10px;
    bottom: 10px;
    padding: 6px 10px;
    opacity: 0;
    background: var(--amber);
    transition: opacity 0.25s ease;
}

.card-link:hover .play-chip {
    opacity: 1;
}

.card-body {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.card-body strong {
    display: -webkit-box;
    overflow: hidden;
    min-height: 44px;
    color: #111827;
    font-size: 16px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-body em {
    display: -webkit-box;
    overflow: hidden;
    min-height: 40px;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.meta-line span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 8px;
    color: #92400e;
    font-size: 12px;
    font-weight: 800;
    background: #fffbeb;
}

.tag-row span {
    color: #374151;
    background: #f3f4f6;
}

.movie-card-large {
    grid-column: span 2;
}

.movie-card-large .poster-frame {
    aspect-ratio: 5 / 6;
}

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

.compact-link {
    display: flex;
    gap: 12px;
    min-height: 110px;
    padding: 10px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.13);
}

.compact-cover {
    flex: 0 0 92px;
    overflow: hidden;
    border-radius: 12px;
    background: #111827;
}

.compact-info {
    display: grid;
    align-content: center;
    gap: 4px;
    min-width: 0;
}

.compact-info strong,
.compact-info small,
.rank-info strong,
.rank-info small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.compact-info strong,
.rank-info strong {
    color: #111827;
    line-height: 1.35;
    -webkit-line-clamp: 1;
}

.compact-info em,
.rank-info em {
    color: var(--amber);
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.compact-info small,
.rank-info small {
    color: var(--muted);
    font-size: 12px;
    -webkit-line-clamp: 2;
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    color: #ffffff;
    background: #111827;
    box-shadow: var(--shadow);
}

.category-tile img {
    position: absolute;
    inset: 0;
}

.tile-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.24));
}

.category-tile strong,
.category-tile em {
    position: absolute;
    left: 20px;
    right: 20px;
    z-index: 2;
}

.category-tile strong {
    bottom: 70px;
    font-size: 24px;
}

.category-tile em {
    bottom: 22px;
    color: #e5e7eb;
    font-style: normal;
    font-size: 13px;
}

.page-main {
    padding-top: 72px;
}

.page-hero {
    color: #ffffff;
    background:
        radial-gradient(circle at 82% 18%, rgba(249, 115, 22, 0.32), transparent 28%),
        linear-gradient(135deg, #111827, #020617);
}

.compact-hero {
    padding: 74px 0 64px;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    border-radius: 999px;
    padding: 7px 13px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

.page-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
    max-width: 760px;
    color: #d1d5db;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.detail-wrap .breadcrumb {
    color: #6b7280;
}

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

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

.category-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

.category-card-cover {
    display: block;
    height: 210px;
    overflow: hidden;
    background: #111827;
}

.category-card-body {
    padding: 20px;
}

.category-card-body h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.category-card-body p {
    margin: 0 0 14px;
    color: var(--muted);
}

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

.mini-links a {
    border-radius: 999px;
    padding: 5px 10px;
    color: #92400e;
    font-size: 12px;
    font-weight: 800;
    background: #fffbeb;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.filter-chip {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    color: #374151;
    font-weight: 800;
    background: #ffffff;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
    cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

.no-results {
    display: none;
    margin-top: 28px;
    padding: 36px;
    border-radius: var(--radius-lg);
    color: var(--muted);
    text-align: center;
    background: #ffffff;
}

.no-results.is-visible {
    display: block;
}

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

.rank-link {
    display: grid;
    grid-template-columns: 72px 86px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.rank-number {
    color: var(--amber);
    font-size: 28px;
    font-weight: 900;
    text-align: center;
}

.rank-poster {
    overflow: hidden;
    width: 86px;
    aspect-ratio: 3 / 4;
    border-radius: 13px;
    background: #111827;
}

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

.rank-watch {
    border-radius: 999px;
    padding: 9px 15px;
    color: #ffffff;
    font-weight: 900;
    background: var(--amber);
}

.page-search {
    max-width: 720px;
    margin-top: 26px;
}

.detail-main {
    background: #f3f4f6;
}

.detail-wrap {
    padding-top: 32px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.player-card,
.side-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.player-stage {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000000;
}

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

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

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

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

.player-overlay-shade {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
}

.big-play {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 38px;
    text-indent: 5px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 18px 40px rgba(217, 119, 6, 0.38);
}

.detail-content {
    padding: 26px 30px 34px;
}

.detail-content h1 {
    margin-top: 14px;
    font-size: clamp(30px, 4vw, 48px);
}

.lead-text {
    color: #4b5563;
    font-size: 18px;
    font-weight: 700;
}

.detail-content h2,
.side-card h2 {
    margin: 26px 0 12px;
    color: #111827;
    font-size: 24px;
}

.detail-content p {
    color: #374151;
    font-size: 16px;
}

.detail-tag-row {
    margin-top: 16px;
}

.detail-side {
    display: grid;
    gap: 20px;
    position: sticky;
    top: 96px;
}

.side-card {
    padding: 22px;
}

.side-card h2 {
    margin-top: 0;
}

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

.side-meta dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px 16px;
    margin: 0;
}

.side-meta dt {
    color: var(--muted);
    font-weight: 800;
}

.side-meta dd {
    margin: 0;
    color: #111827;
    font-weight: 700;
}

.site-footer {
    margin-top: 74px;
    padding: 56px 0 24px;
    color: #d1d5db;
    background: linear-gradient(180deg, #111827, #020617);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 42px;
}

.footer-brand p {
    max-width: 420px;
    color: #9ca3af;
}

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

.footer-links {
    display: grid;
    gap: 8px;
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    font-size: 14px;
    text-align: center;
}

.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    background: var(--amber);
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.35);
    cursor: pointer;
}

.back-top.is-visible {
    display: block;
}

.is-filtered-out,
.is-search-hidden {
    display: none !important;
}

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

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

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

    .detail-side {
        position: static;
    }
}

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

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

    .hero-carousel {
        height: 610px;
    }

    .hero-content {
        bottom: 78px;
    }

    .hero-arrow {
        display: none;
    }

    .search-panel-inner,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-preview {
        grid-template-columns: 1fr;
    }

    .rank-link {
        grid-template-columns: 48px 76px 1fr;
    }

    .rank-watch {
        display: none;
    }
}

@media (max-width: 640px) {
    .container,
    main > .content-section:not(.container),
    .mobile-menu,
    .footer-bottom {
        width: min(100% - 22px, 1180px);
    }

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

    .hero-carousel {
        height: 560px;
    }

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

    .hero-actions,
    .hero-search,
    .page-search,
    .mobile-search {
        flex-direction: column;
    }

    .content-section {
        padding-top: 44px;
    }

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

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

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

    .card-body {
        padding: 12px;
    }

    .compact-hero {
        padding: 54px 0 46px;
    }

    .detail-content {
        padding: 22px 18px 28px;
    }

    .big-play {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }
}
