:root {
    --amber-50: #fff7ed;
    --amber-100: #ffedd5;
    --amber-200: #fed7aa;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --ink: #1c1917;
    --paper: #fffaf3;
    --shadow: 0 24px 70px rgba(28, 25, 23, 0.18);
    --soft-shadow: 0 12px 32px rgba(28, 25, 23, 0.1);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.2), transparent 28rem),
        linear-gradient(180deg, #fffaf3 0%, #f9f5ee 46%, #ffffff 100%);
    min-height: 100vh;
}

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

img {
    display: block;
    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: rgba(28, 25, 23, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 237, 213, 0.16);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff7ed;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--stone-900);
    background: linear-gradient(135deg, #fed7aa, #f59e0b);
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.34);
}

.logo-text {
    font-size: 18px;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link,
.dropdown-btn {
    padding: 10px 14px;
    border-radius: 999px;
    color: #ffedd5;
    font-size: 15px;
    font-weight: 650;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.dropdown-btn:hover {
    color: #1c1917;
    background: #fed7aa;
    transform: translateY(-1px);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 210px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 250, 243, 0.98);
    box-shadow: var(--shadow);
    border: 1px solid rgba(214, 211, 209, 0.68);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

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

.dropdown-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--stone-700);
    font-weight: 650;
}

.dropdown-panel a:hover {
    color: var(--amber-800);
    background: var(--amber-100);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(254, 215, 170, 0.36);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--amber-100);
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 420px);
    align-items: center;
    gap: 54px;
    padding: 86px max(32px, calc((100vw - 1180px) / 2)) 96px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: blur(20px) saturate(1.12);
    transform: scale(1.08);
    opacity: 0.42;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 74% 28%, rgba(245, 158, 11, 0.36), transparent 28rem),
        linear-gradient(90deg, rgba(28, 25, 23, 0.94), rgba(41, 37, 36, 0.72) 55%, rgba(28, 25, 23, 0.86));
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 2;
}

.hero-kicker,
.eyebrow {
    margin: 0 0 12px;
    color: var(--amber-600);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 13px;
    font-weight: 800;
}

.hero-kicker {
    color: var(--amber-200);
}

.hero-content h1 {
    margin: 0;
    color: #fff7ed;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.05em;
    max-width: 780px;
}

.hero-summary {
    max-width: 680px;
    margin: 24px 0 0;
    color: rgba(255, 247, 237, 0.85);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.76;
}

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

.hero-tags {
    margin: 24px 0 0;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
}

.hero-tags span,
.detail-tags span {
    color: #ffedd5;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(254, 215, 170, 0.24);
}

.tag-row span {
    color: var(--amber-800);
    background: var(--amber-100);
}

.hero-actions,
.page-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn.primary {
    color: var(--stone-900);
    background: linear-gradient(135deg, #fed7aa, #f59e0b);
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.32);
}

.btn.ghost {
    color: #fff7ed;
    border-color: rgba(254, 215, 170, 0.36);
    background: rgba(255, 255, 255, 0.08);
}

.btn.ghost.dark {
    color: var(--stone-800);
    border-color: var(--stone-300);
    background: rgba(255, 255, 255, 0.66);
}

.btn.text {
    color: #fed7aa;
    padding-inline: 4px;
}

.btn.small {
    min-height: 38px;
    padding-inline: 16px;
    color: var(--stone-900);
    background: var(--amber-200);
}

.hero-poster {
    width: min(100%, 390px);
    justify-self: end;
    border-radius: 32px;
    overflow: hidden;
    background: var(--stone-800);
    box-shadow: 0 38px 80px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

.hero-poster img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

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

.hero-prev,
.hero-next,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-prev,
.hero-next {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: var(--amber-100);
    background: rgba(255, 255, 255, 0.12);
    font-size: 28px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 237, 213, 0.45);
}

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

.quick-search {
    position: relative;
    z-index: 8;
    margin-top: -42px;
    padding: 22px;
    border-radius: 26px;
    background: rgba(255, 250, 243, 0.92);
    box-shadow: var(--shadow);
    border: 1px solid rgba(231, 229, 228, 0.88);
    backdrop-filter: blur(18px);
}

.home-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.home-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--stone-200);
    border-radius: 999px;
    padding: 0 18px;
    color: var(--stone-800);
    background: #ffffff;
    outline: none;
}

.home-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.home-search button {
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    color: #fff7ed;
    font-weight: 800;
    background: var(--stone-900);
    cursor: pointer;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.quick-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--amber-800);
    background: var(--amber-100);
    font-weight: 750;
    font-size: 13px;
}

.section-block {
    padding: 72px 0 0;
}

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

.section-heading h2,
.page-hero h1,
.rank-panel-head h2,
.content-card h2 {
    margin: 0;
    color: var(--stone-900);
    letter-spacing: -0.035em;
}

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

.section-heading p:last-child,
.page-hero p,
.footer-inner p,
.category-card-body p {
    margin: 10px 0 0;
    color: var(--stone-600);
    line-height: 1.75;
}

.section-more {
    flex: 0 0 auto;
    color: var(--amber-800);
    font-weight: 850;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(231, 229, 228, 0.82);
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(245, 158, 11, 0.36);
}

.poster-link {
    position: relative;
    display: block;
    background: var(--stone-800);
}

.poster-link img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

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

.poster-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--stone-900);
    background: var(--amber-200);
    font-size: 12px;
    font-weight: 850;
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--stone-500);
    font-size: 12px;
    font-weight: 750;
}

.card-body h3 {
    margin: 8px 0 8px;
    color: var(--stone-900);
    font-size: 18px;
    line-height: 1.35;
}

.movie-card.compact .card-body h3 {
    font-size: 16px;
}

.card-body p {
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--stone-600);
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.category-tile {
    position: relative;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 8px;
    padding: 18px;
    border-radius: 24px;
    overflow: hidden;
    color: #fff7ed;
    background: var(--stone-900);
    box-shadow: var(--soft-shadow);
}

.category-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(180deg, rgba(28, 25, 23, 0.1), rgba(28, 25, 23, 0.82)), var(--tile-image);
    background-size: cover;
    background-position: center;
    transition: transform 0.35s ease;
}

.category-tile:hover::before {
    transform: scale(1.06);
}

.category-tile span,
.category-tile strong {
    position: relative;
    z-index: 2;
}

.category-tile span {
    font-size: 22px;
    font-weight: 900;
}

.category-tile strong {
    color: rgba(255, 247, 237, 0.82);
    font-size: 13px;
    line-height: 1.55;
}

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

.rank-panel {
    position: sticky;
    top: 88px;
    padding: 22px;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(41, 37, 36, 0.96), rgba(28, 25, 23, 0.98));
    box-shadow: var(--shadow);
}

.rank-panel-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.rank-panel-head h2 {
    color: #fff7ed;
    font-size: 28px;
}

.rank-panel-head a {
    color: var(--amber-200);
    font-weight: 850;
}

.rank-list,
.ranking-grid {
    display: grid;
    gap: 12px;
}

.rank-item {
    display: grid;
    grid-template-columns: 34px 54px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(254, 215, 170, 0.12);
    transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.13);
}

.ranking-grid .rank-item {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(231, 229, 228, 0.9);
    box-shadow: var(--soft-shadow);
}

.rank-num {
    color: var(--amber-200);
    font-size: 18px;
    font-weight: 950;
}

.ranking-grid .rank-num {
    color: var(--amber-700);
}

.rank-item img {
    width: 54px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-info {
    min-width: 0;
}

.rank-info strong,
.rank-info em {
    display: block;
}

.rank-info strong {
    color: #fff7ed;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-grid .rank-info strong {
    color: var(--stone-900);
}

.rank-info em,
.rank-heat {
    color: rgba(255, 247, 237, 0.65);
    font-size: 12px;
    font-style: normal;
}

.ranking-grid .rank-info em,
.ranking-grid .rank-heat {
    color: var(--stone-500);
}

.page-main {
    padding: 48px 0 82px;
}

.page-hero {
    padding: 46px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.22), transparent 24rem),
        rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(231, 229, 228, 0.9);
    box-shadow: var(--soft-shadow);
}

.page-hero h1 {
    font-size: clamp(38px, 6vw, 64px);
}

.category-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding-top: 32px;
}

.category-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(231, 229, 228, 0.92);
    box-shadow: var(--soft-shadow);
}

.category-cover {
    position: relative;
    min-height: 230px;
    display: flex;
    align-items: end;
    padding: 18px;
    color: #fff7ed;
    font-size: 24px;
    font-weight: 950;
    background: linear-gradient(180deg, rgba(28, 25, 23, 0.08), rgba(28, 25, 23, 0.84)), var(--category-image);
    background-size: cover;
    background-position: center;
}

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

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

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

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

.filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, 170px);
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(231, 229, 228, 0.9);
    box-shadow: var(--soft-shadow);
}

.filter-bar label {
    display: grid;
    gap: 7px;
    color: var(--stone-500);
    font-size: 12px;
    font-weight: 850;
}

.detail-main {
    padding-bottom: 82px;
}

.detail-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: var(--stone-900);
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--detail-image);
    background-size: cover;
    background-position: center;
    filter: blur(22px) saturate(1.12);
    transform: scale(1.08);
    opacity: 0.38;
}

.detail-hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 18%, rgba(245, 158, 11, 0.32), transparent 26rem),
        linear-gradient(90deg, rgba(28, 25, 23, 0.96), rgba(41, 37, 36, 0.78));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 44px 0 64px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 247, 237, 0.72);
    font-size: 14px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(240px, 340px) 1fr;
    align-items: center;
    gap: 48px;
    margin-top: 42px;
}

.detail-poster {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
}

.detail-copy h1 {
    margin: 0;
    color: #fff7ed;
    font-size: clamp(38px, 6vw, 74px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.detail-one-line {
    max-width: 760px;
    margin: 24px 0 0;
    color: rgba(255, 247, 237, 0.84);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.76;
}

.detail-tags {
    margin-top: 24px;
}

.watch-section {
    margin-top: -92px;
    position: relative;
    z-index: 3;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 237, 213, 0.18);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    align-content: center;
    color: #fff7ed;
    border: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.56));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    padding-left: 4px;
    border-radius: 999px;
    color: var(--stone-900);
    background: linear-gradient(135deg, #fed7aa, #f59e0b);
    box-shadow: 0 18px 42px rgba(245, 158, 11, 0.42);
    font-size: 34px;
}

.play-overlay strong {
    font-size: 18px;
    letter-spacing: 0.08em;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 330px;
    gap: 22px;
    padding-top: 36px;
}

.content-card {
    padding: 26px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(231, 229, 228, 0.92);
    box-shadow: var(--soft-shadow);
}

.content-card h2 {
    font-size: 26px;
    margin-bottom: 14px;
}

.content-card p {
    margin: 0;
    color: var(--stone-700);
    line-height: 1.9;
}

.meta-card dl {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 10px 14px;
    margin: 0;
}

.meta-card dt {
    color: var(--stone-500);
    font-weight: 850;
}

.meta-card dd {
    margin: 0;
    color: var(--stone-800);
}

.detail-neighbor-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.detail-neighbor-links a {
    padding: 16px 18px;
    border-radius: 18px;
    color: var(--stone-800);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(231, 229, 228, 0.9);
    font-weight: 750;
}

.site-footer {
    margin-top: 82px;
    padding: 42px 0;
    color: rgba(255, 247, 237, 0.72);
    background: var(--stone-900);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
}

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

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

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

.movie-card.is-hidden,
.rank-item.is-hidden {
    display: none;
}

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

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

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

    .rank-panel {
        position: static;
    }

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

@media (max-width: 820px) {
    .header-inner {
        min-height: 62px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 20px;
        background: rgba(28, 25, 23, 0.98);
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: flex;
    }

    .nav-link,
    .dropdown-btn {
        text-align: left;
        border-radius: 14px;
    }

    .dropdown-panel {
        position: static;
        width: 100%;
        margin-top: 6px;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 24px;
        padding: 76px 24px 100px;
    }

    .hero-poster {
        width: 220px;
        justify-self: start;
        transform: rotate(0deg);
    }

    .home-search,
    .filter-bar,
    .footer-inner,
    .category-card,
    .detail-layout,
    .detail-neighbor-links {
        grid-template-columns: 1fr;
    }

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

    .section-heading {
        display: block;
    }

    .section-more {
        display: inline-flex;
        margin-top: 12px;
    }

    .detail-poster {
        width: 220px;
    }

    .watch-section {
        margin-top: -48px;
    }

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

@media (max-width: 540px) {
    .container,
    .header-inner,
    .footer-inner {
        width: min(100% - 22px, 1180px);
    }

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

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

    .hero-summary,
    .detail-one-line {
        font-size: 16px;
    }

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

    .rank-item {
        grid-template-columns: 30px 50px 1fr;
    }

    .rank-heat {
        display: none;
    }

    .page-hero {
        padding: 28px;
    }

    .content-card {
        padding: 22px;
    }
}
