:root {
    --ancient-50: #f9f7f4;
    --ancient-100: #f0ebe3;
    --ancient-200: #e4dac8;
    --ancient-300: #d4c3a4;
    --ancient-600: #a67f4d;
    --ancient-700: #8b6a40;
    --ancient-900: #5f4930;
    --earth-50: #f7f6f4;
    --earth-100: #edeae5;
    --earth-500: #8d7c6b;
    --earth-600: #79685a;
    --earth-800: #554840;
    --earth-900: #4a3f38;
    --sage-600: #505c50;
    --paper: #ffffff;
    --ink: #302a25;
    --muted: #78695f;
    --shadow: 0 18px 45px rgba(74, 63, 56, 0.14);
    --soft-shadow: 0 10px 28px rgba(74, 63, 56, 0.10);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, var(--ancient-50), var(--earth-50));
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(249, 247, 244, 0.94);
    border-bottom: 1px solid var(--ancient-200);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(95, 73, 48, 0.04);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 190px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--ancient-600), var(--earth-900));
    border-radius: 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 700;
    box-shadow: var(--soft-shadow);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-copy strong {
    color: var(--ancient-900);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-copy small {
    color: var(--earth-600);
    font-size: 12px;
    margin-top: 4px;
}

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

.nav-link {
    position: relative;
    color: var(--ancient-700);
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -8px;
    height: 2px;
    border-radius: 999px;
    background: var(--ancient-600);
    transition: right 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--earth-900);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    right: 0;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--ancient-100);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--ancient-900);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--ancient-200);
    border-radius: 16px;
    box-shadow: var(--soft-shadow);
}

.mobile-nav a {
    display: block;
    padding: 10px 12px;
    color: var(--ancient-700);
    border-radius: 10px;
    font-weight: 600;
}

.mobile-nav a:hover {
    background: var(--ancient-100);
}

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

main {
    min-height: 70vh;
}

.hero-carousel {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: var(--earth-900);
}

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

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.95) contrast(1.04);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 35%, rgba(166, 127, 77, 0.24), transparent 32%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.18));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #ffffff;
    padding: 96px 0 170px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ancient-600);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content .eyebrow {
    color: var(--ancient-200);
    padding: 7px 12px;
    background: rgba(166, 127, 77, 0.66);
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.hero-content h1 {
    max-width: 780px;
    margin: 18px 0 16px;
    font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 720px;
    margin: 0;
    color: var(--ancient-100);
    font-size: clamp(17px, 2.4vw, 23px);
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.hero-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    color: var(--ancient-900);
    background: var(--ancient-100);
    border: 1px solid var(--ancient-200);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hero-content .hero-tags span {
    color: #ffffff;
    background: rgba(166, 127, 77, 0.78);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.primary-button,
.ghost-button,
.text-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--ancient-600), var(--ancient-700));
    box-shadow: 0 12px 28px rgba(95, 73, 48, 0.24);
}

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

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

.text-button,
.section-more {
    color: var(--ancient-700);
    background: var(--ancient-100);
    border: 1px solid var(--ancient-200);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    cursor: pointer;
    font-size: 42px;
    line-height: 1;
    backdrop-filter: blur(6px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-2px);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.hero-category-panel {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 6;
    width: min(1180px, calc(100% - 32px));
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    color: #ffffff;
    background: rgba(48, 42, 37, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    transform: translateX(-50%);
}

.hero-category-panel strong {
    white-space: nowrap;
}

.hero-category-panel div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-category-panel a {
    display: inline-flex;
    padding: 6px 11px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

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

.intro-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 28px;
    align-items: center;
}

.intro-copy {
    padding: 32px;
    background: #ffffff;
    border: 1px solid var(--ancient-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--soft-shadow);
}

.intro-copy h2,
.section-heading h2,
.feature-box h2,
.page-hero h1,
.article-section h2,
.detail-info h1,
.category-overview-card h2 {
    margin: 0;
    color: var(--ancient-900);
    font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
    letter-spacing: -0.03em;
}

.intro-copy h2 {
    margin-top: 10px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.14;
}

.intro-copy p {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.wide-search {
    display: flex;
    padding: 10px;
    background: #ffffff;
    border: 1px solid var(--ancient-200);
    border-radius: 18px;
    box-shadow: var(--soft-shadow);
}

.wide-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 16px;
    color: var(--ink);
    background: transparent;
}

.wide-search button {
    border: 0;
    color: #ffffff;
    background: var(--ancient-600);
    border-radius: 12px;
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 800;
}

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

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

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

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

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

.movie-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--ancient-200);
    border-radius: var(--radius-md);
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.movie-card:hover {
    border-color: var(--ancient-300);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(145deg, var(--earth-100), var(--ancient-100));
}

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

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

.card-year {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    color: #ffffff;
    background: rgba(48, 42, 37, 0.72);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(4px);
}

.card-body {
    padding: 16px;
}

.card-title {
    display: block;
    color: var(--ancient-900);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.28;
}

.card-title:hover {
    color: var(--ancient-600);
}

.card-meta {
    margin: 8px 0;
    color: var(--earth-600);
    font-size: 13px;
    font-weight: 700;
}

.card-line {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 28px;
    align-items: stretch;
}

.rank-list {
    background: #ffffff;
    border: 1px solid var(--ancient-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--soft-shadow);
    overflow: hidden;
}

.rank-row {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--ancient-100);
}

.rank-row:last-child {
    border-bottom: 0;
}

.rank-row:hover {
    background: var(--ancient-50);
}

.rank-num {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--earth-900);
    border-radius: 12px;
    font-weight: 900;
}

.rank-name {
    color: var(--ancient-900);
    font-weight: 800;
}

.rank-side {
    color: var(--earth-600);
    font-size: 13px;
    white-space: nowrap;
}

.feature-box {
    min-height: 100%;
    padding: 32px;
    color: #ffffff;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.12), transparent 34%),
        linear-gradient(145deg, var(--earth-900), var(--ancient-700));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.feature-box .eyebrow,
.feature-box h2 {
    color: #ffffff;
}

.feature-box h2 {
    margin-top: 12px;
    font-size: 36px;
    line-height: 1.1;
}

.feature-box p {
    color: var(--ancient-100);
    margin-bottom: 28px;
}

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

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

.category-card,
.category-overview-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--ancient-200);
    border-radius: var(--radius-md);
    box-shadow: var(--soft-shadow);
}

.category-overview-card {
    grid-template-columns: 210px minmax(0, 1fr);
    padding: 24px;
}

.category-cover,
.overview-poster {
    overflow: hidden;
    border-radius: 16px;
    background: var(--ancient-100);
}

.category-cover {
    aspect-ratio: 4 / 3;
}

.overview-poster {
    aspect-ratio: 3 / 4;
}

.category-cover img,
.overview-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card h3,
.category-overview-card h2 {
    margin: 0 0 8px;
    color: var(--ancient-900);
}

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

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

.category-links.multi {
    margin-bottom: 18px;
}

.category-links a {
    padding: 6px 10px;
    color: var(--ancient-700);
    background: var(--ancient-100);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 36px auto 0;
    padding: 54px;
    color: #ffffff;
    background:
        radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(135deg, var(--earth-900), var(--ancient-700));
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.page-hero .eyebrow,
.page-hero h1 {
    color: #ffffff;
}

.page-hero h1 {
    margin-top: 12px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
}

.page-hero p {
    max-width: 680px;
    margin: 16px 0 0;
    color: var(--ancient-100);
    font-size: 18px;
}

.filter-area {
    margin-bottom: 24px;
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) repeat(3, minmax(150px, 0.28fr));
    gap: 14px;
    background: #ffffff;
    border: 1px solid var(--ancient-200);
    border-radius: var(--radius-md);
    box-shadow: var(--soft-shadow);
}

.filter-area label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: var(--earth-600);
    font-size: 12px;
    font-weight: 800;
}

.filter-area input,
.filter-area select {
    min-height: 44px;
    width: 100%;
    border: 1px solid var(--ancient-200);
    border-radius: 12px;
    outline: 0;
    padding: 0 12px;
    color: var(--ink);
    background: var(--ancient-50);
}

.filter-area input:focus,
.filter-area select:focus {
    border-color: var(--ancient-600);
    box-shadow: 0 0 0 4px rgba(166, 127, 77, 0.12);
}

.ranking-grid .movie-card:nth-child(-n + 3) .card-year {
    background: var(--ancient-600);
}

.breadcrumb {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--earth-600);
    font-size: 14px;
    font-weight: 700;
}

.breadcrumb a {
    color: var(--ancient-700);
}

.detail-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 34px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid var(--ancient-200);
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 22px;
    background: var(--ancient-100);
}

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

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.detail-info h1 {
    margin-top: 12px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
}

.detail-line {
    max-width: 760px;
    color: var(--muted);
    font-size: 18px;
}

.detail-meta {
    width: 100%;
    margin: 22px 0 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.detail-meta div {
    padding: 14px;
    background: var(--ancient-50);
    border: 1px solid var(--ancient-200);
    border-radius: 14px;
}

.detail-meta dt {
    color: var(--earth-600);
    font-size: 12px;
    font-weight: 800;
}

.detail-meta dd {
    margin: 5px 0 0;
    color: var(--ancient-900);
    font-weight: 800;
}

.detail-tags {
    margin: 22px 0 26px;
}

.player-section {
    padding-bottom: 26px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #000000;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #ffffff;
    border: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.36));
    cursor: pointer;
}

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

.play-circle {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    color: var(--ancient-900);
    background: #ffffff;
    border-radius: 999px;
    font-size: 28px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.player-overlay strong {
    max-width: min(640px, 88%);
    text-align: center;
    font-size: clamp(20px, 3vw, 32px);
}

.player-message {
    position: absolute;
    left: 18px;
    bottom: 14px;
    z-index: 4;
    margin: 0;
    color: #ffffff;
    font-weight: 700;
}

.article-section {
    padding-top: 26px;
    color: var(--muted);
    font-size: 17px;
}

.article-section h2 {
    margin: 28px 0 10px;
    font-size: 30px;
}

.article-section p {
    margin: 0 0 14px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid var(--ancient-200);
    border-radius: 18px;
    box-shadow: var(--soft-shadow);
}

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

.site-footer {
    margin-top: 42px;
    padding: 38px 0;
    color: var(--ancient-100);
    background: var(--earth-900);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
}

.footer-inner strong {
    font-size: 20px;
}

.footer-inner p {
    color: var(--earth-100);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.footer-links a {
    padding: 7px 10px;
    color: var(--ancient-100);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1100px) {
    .desktop-nav {
        gap: 16px;
    }

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

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

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

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

    .hero-carousel {
        min-height: 720px;
    }

    .hero-content {
        padding: 88px 0 210px;
    }

    .hero-control {
        display: none;
    }

    .hero-category-panel {
        display: block;
    }

    .hero-category-panel strong {
        display: block;
        margin-bottom: 10px;
    }

    .intro-panel,
    .split-section,
    .detail-hero,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

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

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

    .footer-links {
        justify-content: flex-start;
    }
}

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

    .brand-copy small {
        display: none;
    }

    .hero-carousel {
        min-height: 690px;
    }

    .hero-content,
    .content-section,
    .page-hero,
    .detail-hero,
    .breadcrumb,
    .hero-category-panel,
    .footer-inner {
        width: min(100% - 24px, 1180px);
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-category-panel {
        bottom: 18px;
    }

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

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

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

    .card-body {
        padding: 13px;
    }

    .card-title {
        font-size: 16px;
    }

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

    .page-hero {
        padding: 34px 24px;
        border-radius: 24px;
    }

    .detail-hero {
        padding: 18px;
    }

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

    .rank-row {
        grid-template-columns: 44px 1fr;
    }

    .rank-side {
        grid-column: 2;
    }
}

@media (max-width: 420px) {
    .movie-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .wide-search {
        flex-direction: column;
        gap: 10px;
    }

    .wide-search input {
        min-height: 44px;
    }
}
