:root {
    --stone-950: #0c0a09;
    --stone-900: #1c1917;
    --stone-850: #241f1c;
    --stone-800: #292524;
    --stone-700: #44403c;
    --stone-600: #57534e;
    --stone-500: #78716c;
    --stone-300: #d6d3d1;
    --stone-200: #e7e5e4;
    --stone-100: #f5f5f4;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --amber-300: #fcd34d;
    --amber-100: #fef3c7;
    --amber-50: #fffbeb;
    --orange-100: #ffedd5;
    --white: #ffffff;
    --shadow-soft: 0 12px 30px rgba(28, 25, 23, 0.12);
    --shadow-strong: 0 20px 45px rgba(28, 25, 23, 0.22);
    --radius-lg: 18px;
    --radius-md: 14px;
    --max-width: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--stone-800);
    background: linear-gradient(180deg, var(--amber-50) 0%, var(--stone-100) 48%, #fafaf9 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

main {
    min-height: 60vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fff7ed;
    background: linear-gradient(90deg, var(--stone-900), var(--stone-800), var(--stone-900));
    box-shadow: 0 8px 22px rgba(12, 10, 9, 0.28);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100% - 32px, var(--max-width));
    min-height: 72px;
    margin: 0 auto;
}

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

.brand-mark,
.footer-brand span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: var(--stone-900);
    background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 1.3rem;
    letter-spacing: 0.04em;
}

.brand-text em {
    margin-top: 2px;
    color: var(--amber-300);
    font-size: 0.75rem;
    font-style: normal;
}

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

.nav-link {
    position: relative;
    color: #fff7ed;
    font-size: 0.96rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link::after {
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 0;
    height: 2px;
    content: "";
    background: var(--amber-400);
    border-radius: 999px;
    transition: width 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--amber-300);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.24);
    border-radius: 12px;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--amber-300);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
    padding: 0 0 16px;
}

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

.mobile-link {
    padding: 10px 14px;
    border-radius: 12px;
    color: #fff7ed;
    font-weight: 600;
}

.mobile-link:hover,
.mobile-link.active {
    color: var(--amber-200);
    background: rgba(217, 119, 6, 0.35);
}

.page-container {
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
}

.hero-slider {
    position: relative;
    height: 520px;
    overflow: hidden;
    background: var(--stone-900);
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(12, 10, 9, 0.98) 0%, rgba(12, 10, 9, 0.68) 48%, rgba(12, 10, 9, 0.18) 100%);
}

.hero-content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
    padding: 0 0 68px;
    color: #fff7ed;
}

.hero-label,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--amber-300);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hero-content h1 {
    max-width: 860px;
    margin: 12px 0 18px;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 1.05;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    display: -webkit-box;
    max-width: 760px;
    margin: 0 0 28px;
    overflow: hidden;
    color: var(--stone-200);
    font-size: clamp(1rem, 2vw, 1.25rem);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hero-actions,
.detail-copy .btn-primary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-primary,
.btn-ghost,
.search-jump button,
.inline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 24px;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary,
.search-jump button {
    color: #fff;
    background: linear-gradient(135deg, var(--amber-600), #ea580c);
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.34);
}

.btn-primary:hover,
.search-jump button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(217, 119, 6, 0.42);
}

.btn-ghost {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(12px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 46px;
    height: 46px;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.68);
    transform: translateY(-50%) scale(1.06);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

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

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

.home-container {
    padding: 48px 0 72px;
}

.home-search {
    margin-bottom: 52px;
    padding: 34px;
    text-align: center;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.home-search h2 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.home-search p {
    max-width: 780px;
    margin: 0 auto 24px;
    color: var(--stone-600);
}

.search-jump {
    display: flex;
    max-width: 760px;
    margin: 0 auto;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--stone-200);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(68, 64, 60, 0.08);
}

.search-jump input {
    flex: 1;
    min-width: 0;
    padding: 0 16px;
    border: 0;
    outline: none;
}

.search-jump button {
    border: 0;
    cursor: pointer;
}

.content-section {
    margin-bottom: 64px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title > span {
    width: 5px;
    height: 34px;
    background: var(--amber-600);
    border-radius: 999px;
}

.section-title h2 {
    margin: 0;
    color: var(--stone-800);
    font-size: clamp(1.55rem, 2.5vw, 2.25rem);
    line-height: 1.15;
}

.section-more,
.inline-link {
    color: var(--amber-700);
    font-weight: 800;
}

.section-more:hover,
.inline-link:hover {
    color: #92400e;
}

.section-more.light {
    color: var(--amber-300);
}

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

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

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

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

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

.movie-card {
    position: relative;
    display: flex;
    min-width: 0;
    overflow: hidden;
    color: var(--stone-800);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 6px 18px rgba(68, 64, 60, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    flex-direction: column;
}

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

.movie-thumb {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--stone-800);
}

.compact-grid .movie-thumb {
    height: 165px;
}

.movie-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.32s ease;
}

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

.movie-thumb::after {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.08));
    transition: opacity 0.25s ease;
}

.movie-card:hover .movie-thumb::after {
    opacity: 1;
}

.duration-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    padding: 5px 9px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.68);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.duration-badge {
    top: 10px;
    right: 10px;
}

.rank-badge {
    top: 10px;
    left: 10px;
    min-width: 32px;
    text-align: center;
    background: linear-gradient(135deg, var(--amber-600), #ea580c);
}

.play-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    color: #fff;
    background: rgba(245, 158, 11, 0.88);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-card-body {
    display: flex;
    gap: 10px;
    padding: 16px;
    flex: 1;
    flex-direction: column;
}

.movie-card h3 {
    display: -webkit-box;
    min-height: 3.1em;
    margin: 0;
    overflow: hidden;
    color: var(--stone-800);
    font-size: 1.05rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color 0.2s ease;
}

.movie-card:hover h3 {
    color: var(--amber-700);
}

.movie-card p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--stone-600);
    font-size: 0.92rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    color: var(--stone-500);
    font-size: 0.78rem;
}

.movie-meta span:last-child,
.tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    color: var(--amber-700);
    background: var(--amber-100);
    border-radius: 999px;
    font-weight: 700;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    min-height: 190px;
}

.movie-card-horizontal .movie-thumb {
    height: 100%;
}

.movie-card-horizontal .movie-card-body {
    padding: 18px;
}

.movie-card-horizontal h3 {
    font-size: 1.15rem;
}

.hot-section {
    padding: 32px;
    background: linear-gradient(135deg, var(--amber-100), var(--orange-100));
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.hot-title span {
    width: auto;
    height: auto;
    background: transparent;
    font-size: 1.7rem;
}

.dark-section {
    padding: 34px;
    color: #fff7ed;
    background: linear-gradient(135deg, var(--stone-900), var(--stone-800));
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.dark-section .section-title h2 {
    color: #fff7ed;
}

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

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    color: #fff;
    background: var(--stone-900);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.category-card img {
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
    opacity: 0.55;
    transition: transform 0.32s ease, opacity 0.32s ease;
}

.category-card:hover img {
    opacity: 0.68;
    transform: scale(1.08);
}

.category-card div {
    position: absolute;
    inset: auto 0 0;
    padding: 22px;
    background: linear-gradient(0deg, rgba(12, 10, 9, 0.88), transparent);
}

.category-card h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.category-card p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--stone-200);
    font-size: 0.9rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff7ed;
    background: linear-gradient(135deg, var(--stone-900), var(--stone-800));
}

.slim-hero,
.search-hero,
.ranking-hero {
    padding: 72px 0;
}

.page-hero h1,
.detail-copy h1 {
    margin: 12px 0 14px;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.1;
}

.page-hero p,
.detail-copy p {
    max-width: 820px;
    margin: 0;
    color: var(--stone-200);
    font-size: 1.08rem;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    overflow: hidden;
    background: var(--white);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: var(--stone-900);
}

.category-cover-stack img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

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

.category-overview-body h2 {
    margin: 0 0 10px;
    font-size: 1.45rem;
}

.category-overview-body p {
    margin: 0 0 16px;
    color: var(--stone-600);
}

.filter-panel {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin: 34px 0 26px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(214, 211, 209, 0.78);
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(68, 64, 60, 0.08);
    backdrop-filter: blur(14px);
}

.filter-search {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 10px;
    min-width: 240px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid var(--stone-200);
    border-radius: 14px;
}

.filter-search span {
    color: var(--amber-600);
    font-size: 1.2rem;
    font-weight: 900;
}

.filter-input,
.filter-select {
    min-height: 44px;
    color: var(--stone-800);
    background: #fff;
    border: 0;
    outline: none;
}

.filter-input {
    flex: 1;
    min-width: 0;
}

.filter-selects {
    display: flex;
    gap: 10px;
}

.filter-select {
    padding: 0 14px;
    border: 1px solid var(--stone-200);
    border-radius: 14px;
}

.movie-card.is-hidden,
.ranking-row.is-hidden {
    display: none;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 140px 180px;
    align-items: center;
    gap: 14px;
    min-height: 58px;
    padding: 0 18px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(68, 64, 60, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 22px rgba(68, 64, 60, 0.15);
}

.ranking-number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber-600), #ea580c);
    border-radius: 50%;
    font-weight: 900;
}

.ranking-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-row em,
.ranking-row small {
    color: var(--stone-500);
    font-style: normal;
}

.detail-hero {
    min-height: 560px;
}

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

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(16px);
    transform: scale(1.08);
}

.detail-overlay {
    background: linear-gradient(90deg, rgba(12, 10, 9, 0.96), rgba(12, 10, 9, 0.72), rgba(12, 10, 9, 0.38));
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 28px;
    color: var(--stone-300);
    font-size: 0.92rem;
}

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

.breadcrumb em {
    font-style: normal;
}

.detail-intro {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.detail-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.38);
}

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

.detail-meta span {
    padding: 6px 12px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.detail-tags {
    margin-bottom: 26px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    padding: 52px 0 20px;
}

.player-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 24px;
    box-shadow: var(--shadow-strong);
}

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

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    color: #fff;
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.1), rgba(0, 0, 0, 0.72));
    border: 0;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    padding-left: 5px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber-600), #ea580c);
    border-radius: 50%;
    box-shadow: 0 18px 38px rgba(217, 119, 6, 0.4);
}

.play-layer strong {
    max-width: 80%;
    text-align: center;
    font-size: 1.2rem;
}

.text-card,
.aside-card {
    margin-top: 24px;
    padding: 26px;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.text-card h2,
.aside-card h2 {
    margin: 0 0 16px;
    color: var(--stone-800);
    font-size: 1.45rem;
}

.text-card p {
    margin: 0;
    color: var(--stone-700);
    font-size: 1rem;
}

.aside-card dl {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px 14px;
    margin: 0;
}

.aside-card dt {
    color: var(--stone-500);
}

.aside-card dd {
    margin: 0;
    color: var(--stone-800);
    font-weight: 700;
}

.aside-related .movie-card-horizontal {
    grid-template-columns: 94px minmax(0, 1fr);
    min-height: 112px;
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(68, 64, 60, 0.1);
}

.aside-related .movie-thumb {
    height: 112px;
}

.aside-related .movie-card-body {
    padding: 12px;
}

.aside-related .movie-card h3 {
    min-height: auto;
    font-size: 0.92rem;
}

.aside-related .movie-card p,
.aside-related .movie-tags,
.aside-related .duration-badge {
    display: none;
}

.site-footer {
    margin-top: 56px;
    color: var(--stone-300);
    background: linear-gradient(90deg, var(--stone-900), var(--stone-800), var(--stone-900));
}

.footer-shell {
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
    padding: 46px 0 28px;
}

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

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #fff7ed;
    font-size: 1.2rem;
}

.footer-shell p {
    max-width: 480px;
    margin: 0;
    color: var(--stone-300);
}

.footer-shell h3 {
    margin: 0 0 14px;
    color: #fff7ed;
}

.footer-shell ul {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-shell a:hover {
    color: var(--amber-300);
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 22px;
    color: var(--stone-500);
    text-align: center;
    border-top: 1px solid rgba(231, 229, 228, 0.12);
}

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

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

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

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

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

    .mobile-toggle {
        display: block;
    }

    .hero-slider {
        height: 560px;
    }

    .hero-content {
        padding-bottom: 74px;
    }

    .hero-arrow {
        display: none;
    }

    .movie-grid-2,
    .movie-grid-3,
    .movie-grid-4,
    .movie-grid-6,
    .category-overview-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .filter-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-selects {
        flex-direction: column;
    }

    .ranking-row {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .ranking-row em,
    .ranking-row small {
        display: none;
    }

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

@media (max-width: 560px) {
    .nav-shell,
    .page-container,
    .footer-shell,
    .mobile-nav {
        width: min(100% - 22px, var(--max-width));
    }

    .brand-text strong {
        font-size: 1.05rem;
    }

    .brand-text em {
        display: none;
    }

    .hero-slider {
        height: 520px;
    }

    .hero-content h1 {
        font-size: 2.15rem;
    }

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

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

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

    .movie-card-horizontal {
        grid-template-columns: 130px minmax(0, 1fr);
        min-height: 150px;
    }

    .movie-thumb {
        height: 205px;
    }

    .movie-card-horizontal .movie-thumb {
        height: 100%;
    }

    .movie-tags {
        display: none;
    }

    .hot-section,
    .dark-section,
    .home-search {
        padding: 22px;
        border-radius: 18px;
    }

    .slim-hero,
    .search-hero,
    .ranking-hero {
        padding: 48px 0;
    }
}
