:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --red-600: #dc2626;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --cyan-600: #0891b2;
    --blue-600: #2563eb;
    --purple-600: #9333ea;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-md: 0 10px 24px rgba(17, 24, 39, 0.12);
    --shadow-lg: 0 22px 60px rgba(17, 24, 39, 0.18);
    --radius-xl: 22px;
    --radius-lg: 16px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, var(--gray-50), var(--gray-100));
    color: var(--gray-900);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    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: 80;
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-600), var(--orange-500), var(--amber-600));
    box-shadow: 0 10px 30px rgba(146, 64, 14, 0.28);
}

.header-bar {
    width: min(100%, var(--container));
    height: 66px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand {
    font-size: 24px;
    flex-shrink: 0;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark,
.footer-brand:hover .brand-mark {
    transform: scale(1.08);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
    font-size: 15px;
    font-weight: 600;
}

.desktop-nav a,
.category-ribbon a,
.mobile-nav a {
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.category-ribbon a:hover,
.mobile-nav a:hover {
    color: var(--amber-100);
}

.header-search {
    position: relative;
    width: 260px;
    flex-shrink: 0;
}

.header-search input,
.mobile-search input,
.page-search input,
.quick-search-panel input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.32);
    outline: none;
}

.header-search input {
    height: 40px;
    padding: 0 44px 0 16px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.header-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.76);
}

.header-search button {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 30px;
    height: 30px;
    border: 0;
    color: var(--white);
    background: transparent;
    transform: translateY(-50%);
    cursor: pointer;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    padding: 8px 11px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(100%, var(--container));
    margin: 0 auto;
    padding: 0 20px 18px;
}

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

.mobile-category-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.mobile-category-list a,
.category-ribbon a {
    white-space: nowrap;
}

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

.mobile-search input {
    height: 42px;
    border-radius: 999px;
    padding: 0 16px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
}

.mobile-search button,
.page-search button,
.quick-search-panel button {
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: var(--amber-700);
    background: var(--white);
    font-weight: 800;
    cursor: pointer;
}

.category-ribbon {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    overflow-x: auto;
}

.category-ribbon div {
    width: min(100%, var(--container));
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    gap: 24px;
    font-size: 14px;
}

.hero-carousel {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600), var(--red-600));
}

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

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

.hero-bg,
.hero-layer {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.12) contrast(1.04);
    transform: scale(1.05);
}

.hero-layer {
    background:
        radial-gradient(circle at 74% 30%, rgba(255, 255, 255, 0.16), transparent 28%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(146, 64, 14, 0.64), rgba(17, 24, 39, 0.28)),
        linear-gradient(180deg, rgba(17, 24, 39, 0.28), rgba(17, 24, 39, 0.84));
}

.hero-inner {
    position: relative;
    width: min(100%, var(--container));
    min-height: 620px;
    margin: 0 auto;
    padding: 76px 20px 86px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 64px;
    color: var(--white);
}

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

.hero-eyebrow {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: var(--amber-100);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 700;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-shadow: 0 20px 48px rgba(0, 0, 0, 0.36);
}

.hero-copy h1 {
    color: var(--amber-100);
    font-size: clamp(32px, 4.6vw, 54px);
    margin-bottom: 10px;
}

.hero-copy p {
    max-width: 710px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(18px, 2.2vw, 24px);
}

.hero-tags,
.detail-meta,
.movie-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

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

.hero-tags span,
.detail-meta span,
.movie-meta span {
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 700;
}

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

.primary-button,
.ghost-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button {
    min-height: 52px;
    padding: 0 28px;
    color: var(--amber-700);
    background: var(--white);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.ghost-button {
    min-height: 52px;
    padding: 0 24px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.13);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
}

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

.hero-poster {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.12);
    transform: rotate(1.5deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--amber-600);
    background: rgba(255, 255, 255, 0.9);
    transform: translate(-50%, -50%);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.26);
}

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

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

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

.quick-search-panel,
.content-section {
    width: min(100% - 40px, var(--container));
    margin: 0 auto;
}

.quick-search-panel {
    position: relative;
    z-index: 4;
    margin-top: -42px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    border-radius: 26px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
}

.quick-search-panel form,
.page-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.quick-search-panel input,
.page-search input {
    height: 52px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 0 20px;
    background: var(--white);
}

.quick-search-panel button,
.page-search button {
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-600), var(--orange-500));
}

.quick-search-panel div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-search-panel div a {
    border-radius: 999px;
    padding: 10px 15px;
    color: var(--gray-700);
    background: var(--gray-100);
    font-size: 14px;
    font-weight: 800;
}

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

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.section-heading > span {
    width: 48px;
    height: 6px;
    margin-top: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
    flex-shrink: 0;
}

.section-heading h2,
.panel-heading h2,
.related-panel h2,
.detail-card h2 {
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.18;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 7px 0 0;
    color: var(--gray-500);
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--gray-200);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.movie-card:hover .poster-link img,
.horizontal-card:hover img,
.category-card:hover img {
    transform: scale(1.08);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.76));
}

.duration-pill,
.rank-badge,
.play-circle,
.mini-rank {
    position: absolute;
    z-index: 2;
}

.duration-pill {
    right: 12px;
    top: 12px;
    border-radius: 999px;
    padding: 5px 9px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.72);
    font-size: 12px;
    font-weight: 800;
}

.rank-badge,
.mini-rank {
    left: 12px;
    top: 12px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.35);
    font-weight: 900;
}

.play-circle {
    left: 50%;
    top: 50%;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--amber-600);
    background: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.category-pill {
    display: inline-flex;
    margin-bottom: 10px;
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--amber-700);
    background: var(--amber-100);
    font-size: 12px;
    font-weight: 900;
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

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

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

.movie-meta span {
    color: var(--gray-500);
    background: var(--gray-100);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag-row a {
    border-radius: 999px;
    padding: 4px 9px;
    color: var(--teal-700, #0f766e);
    background: #ccfbf1;
    font-size: 12px;
    font-weight: 700;
}

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

.ranking-panel,
.related-panel,
.detail-card,
.player-card {
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.ranking-panel,
.related-panel {
    padding: 22px;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.panel-heading h2 {
    font-size: 26px;
}

.panel-heading a,
.text-link {
    color: var(--amber-700);
    font-size: 14px;
}

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

.horizontal-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border-radius: 16px;
    padding: 8px;
    background: var(--white);
    transition: background 0.22s ease, transform 0.22s ease;
}

.horizontal-card:hover {
    background: var(--gray-50);
    transform: translateX(2px);
}

.horizontal-cover {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: var(--gray-200);
}

.horizontal-cover img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mini-rank {
    width: 28px;
    height: 28px;
    left: 8px;
    top: 8px;
    border-radius: 10px;
    font-size: 13px;
}

.horizontal-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.horizontal-copy strong,
.horizontal-copy em {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.horizontal-copy strong {
    color: var(--gray-900);
    -webkit-line-clamp: 1;
}

.horizontal-copy em {
    color: var(--gray-600);
    font-size: 13px;
    font-style: normal;
    -webkit-line-clamp: 2;
}

.horizontal-copy small {
    color: var(--gray-500);
}

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

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

.category-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card-cover {
    position: relative;
    display: block;
    overflow: hidden;
}

.category-card-cover img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card-cover span {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.46));
}

.category-card > div {
    padding: 18px;
}

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

.category-card p {
    margin: 0 0 14px;
    color: var(--gray-600);
    font-size: 14px;
}

.category-samples {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

.category-samples a {
    display: -webkit-box;
    overflow: hidden;
    color: var(--gray-700);
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    font-size: 13px;
}

.page-hero {
    color: var(--white);
    background: linear-gradient(90deg, var(--teal-600), var(--cyan-600));
}

.page-hero > div {
    width: min(100%, var(--container));
    margin: 0 auto;
    padding: 76px 20px;
}

.page-hero span {
    display: inline-flex;
    margin-bottom: 12px;
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.86);
    font-weight: 800;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.page-hero p {
    max-width: 720px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.category-hero {
    background: linear-gradient(90deg, var(--teal-600), var(--cyan-600));
}

.ranking-hero {
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600), var(--red-600));
}

.search-hero {
    background: linear-gradient(90deg, var(--blue-600), var(--purple-600));
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    border-radius: 22px;
    padding: 18px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.filter-bar label {
    display: grid;
    gap: 8px;
    min-width: 240px;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 800;
}

.filter-bar input,
.filter-bar select {
    height: 46px;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 0 14px;
    color: var(--gray-900);
    background: var(--gray-50);
}

.category-switcher {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-bottom: 24px;
    padding-bottom: 4px;
}

.category-switcher a {
    white-space: nowrap;
    border-radius: 999px;
    padding: 10px 14px;
    color: var(--gray-700);
    background: var(--white);
    box-shadow: 0 4px 18px rgba(17, 24, 39, 0.08);
    font-weight: 800;
    font-size: 14px;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--gray-500);
    font-size: 14px;
}

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

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

.detail-main {
    display: grid;
    gap: 24px;
}

.player-card {
    overflow: hidden;
    padding: 0;
    background: #000000;
}

.player-shell {
    position: relative;
    background: #000000;
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--amber-600);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.68));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-overlay span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--amber-600);
    background: rgba(255, 255, 255, 0.92);
    font-size: 34px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

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

.detail-card {
    padding: 26px;
}

.detail-title-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.detail-card h1 {
    margin: 2px 0 0;
    color: var(--gray-900);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.18;
    letter-spacing: -0.04em;
}

.detail-meta {
    margin: 18px 0 24px;
}

.detail-meta span {
    color: var(--gray-600);
    background: var(--gray-100);
}

.detail-card h2 {
    margin: 26px 0 10px;
    font-size: 23px;
}

.detail-card p {
    margin: 0;
    color: var(--gray-700);
    font-size: 16px;
    text-align: justify;
}

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

.related-panel {
    position: sticky;
    top: 112px;
}

.related-panel h2 {
    margin-bottom: 18px;
    font-size: 25px;
}

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

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

.site-footer {
    margin-top: 86px;
    color: #d1d5db;
    background: linear-gradient(180deg, #111827, #000000);
}

.footer-grid {
    width: min(100%, var(--container));
    margin: 0 auto;
    padding: 50px 20px;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
    gap: 30px;
}

.footer-brand {
    color: var(--white);
    font-size: 22px;
}

.footer-grid p {
    margin: 16px 0 0;
    color: #9ca3af;
}

.footer-grid h3 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 16px;
}

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

.footer-grid a:hover {
    color: var(--amber-500);
}

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-tags a {
    border-radius: 999px;
    padding: 6px 10px;
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.12);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

.is-hidden-by-filter {
    display: none !important;
}

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

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

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 54px;
        padding-bottom: 90px;
    }

    .hero-poster {
        display: none;
    }

    .movie-grid,
    .compact-grid,
    .category-movie-grid,
    .top-ranking-grid,
    .category-grid,
    .all-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .related-panel {
        position: static;
    }

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

@media (max-width: 720px) {
    .header-bar {
        height: 62px;
    }

    .brand {
        font-size: 20px;
    }

    .hero-carousel,
    .hero-inner {
        min-height: 560px;
    }

    .hero-copy h1,
    .hero-copy h2 {
        letter-spacing: -0.04em;
    }

    .hero-actions,
    .quick-search-panel,
    .quick-search-panel form,
    .quick-search-panel div,
    .page-search {
        display: grid;
        grid-template-columns: 1fr;
    }

    .quick-search-panel {
        margin-top: -24px;
    }

    .movie-grid,
    .compact-grid,
    .category-movie-grid,
    .top-ranking-grid,
    .category-grid,
    .all-categories,
    .ranking-wide .ranking-list {
        grid-template-columns: 1fr;
    }

    .content-section,
    .quick-search-panel {
        width: min(100% - 28px, var(--container));
    }

    .horizontal-card {
        grid-template-columns: 108px minmax(0, 1fr);
    }

    .detail-card,
    .related-panel,
    .ranking-panel {
        padding: 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
