:root {
    --amber: #f59e0b;
    --amber-dark: #d97706;
    --orange: #ea580c;
    --red: #dc2626;
    --teal: #0d9488;
    --blue: #2563eb;
    --purple: #7c3aed;
    --pink: #db2777;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --black: #000000;
    --shadow: 0 20px 45px rgba(17, 24, 39, 0.14);
    --shadow-soft: 0 12px 28px rgba(17, 24, 39, 0.1);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --max-width: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--gray-900);
    background: linear-gradient(180deg, var(--gray-50), var(--gray-100));
    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;
    color: var(--white);
    background: linear-gradient(90deg, var(--amber), var(--orange), var(--red));
    box-shadow: 0 8px 24px rgba(185, 28, 28, 0.22);
}

.header-main {
    max-width: var(--max-width);
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}

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

.brand-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--amber-dark);
    background: rgba(255, 255, 255, 0.94);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.nav-link {
    font-weight: 700;
    opacity: 0.9;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fffbeb;
    opacity: 1;
}

.header-search,
.mobile-panel form,
.hero-search,
.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search input,
.mobile-panel input,
.hero-search input {
    width: 230px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    outline: none;
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

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

.header-search button,
.mobile-panel button,
.hero-search button {
    border: none;
    cursor: pointer;
    border-radius: 999px;
    padding: 10px 18px;
    color: var(--amber-dark);
    background: var(--white);
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-panel button:hover,
.hero-search button:hover,
.button:hover {
    transform: translateY(-2px);
}

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

.mobile-panel {
    display: none;
    padding: 0 24px 18px;
    background: rgba(153, 27, 27, 0.35);
}

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

.mobile-panel nav {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.mobile-panel form {
    align-items: stretch;
}

.mobile-panel input {
    flex: 1;
    width: auto;
}

.category-strip {
    overflow-x: auto;
    scrollbar-width: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.1);
}

.category-strip::-webkit-scrollbar {
    display: none;
}

.category-strip {
    display: flex;
    gap: 22px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 12px 24px;
}

.category-strip a {
    white-space: nowrap;
    font-size: 14px;
    opacity: 0.9;
}

.category-strip a:hover {
    opacity: 1;
    color: #fef3c7;
}

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

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.65s ease, transform 0.9s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide img,
.page-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.52;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 30%, rgba(255, 255, 255, 0.22), transparent 28%), linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.45) 55%, rgba(17, 24, 39, 0.82));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    min-height: 640px;
    padding: 82px 24px 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
}

.hero-kicker,
.page-hero span,
.category-card span,
.category-overview-head span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    color: #fffbeb;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.hero h1 {
    max-width: 820px;
    margin: 20px 0 0;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero h2 {
    max-width: 720px;
    margin: 12px 0 0;
    color: #fde68a;
    font-size: clamp(26px, 4vw, 44px);
    line-height: 1.12;
}

.hero p {
    max-width: 760px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(17px, 2.4vw, 24px);
}

.hero-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    font-size: 13px;
    font-weight: 700;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 13px 24px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-light {
    color: var(--amber-dark);
    background: var(--white);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.16);
}

.button-ghost {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.button-small {
    padding: 10px 18px;
    color: var(--white);
    background: linear-gradient(90deg, var(--amber), var(--orange));
}

.hero-search-panel {
    position: absolute;
    left: 50%;
    bottom: 40px;
    z-index: 4;
    width: min(calc(100% - 48px), var(--max-width));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius-xl);
    background: rgba(17, 24, 39, 0.42);
    backdrop-filter: blur(16px);
}

.hero-search {
    flex: 1;
}

.hero-search input {
    width: 100%;
    padding: 14px 18px;
}

.hero-search button {
    padding: 14px 22px;
}

.hero-dots {
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 32px;
    background: var(--white);
}

.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 64px 24px;
}

.section-raised {
    margin-top: -10px;
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading h2 {
    position: relative;
    margin: 0;
    padding-left: 66px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-heading h2::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 48px;
    height: 5px;
    border-radius: 999px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, var(--amber), var(--orange));
}

.section-heading p {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--gray-500);
    font-size: 17px;
}

.section-heading.with-link {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.text-link {
    color: var(--amber-dark);
    font-weight: 900;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-card-link {
    display: block;
    height: 100%;
}

.movie-thumb,
.rank-thumb {
    position: relative;
    overflow: hidden;
    margin: 0;
    background: linear-gradient(135deg, #111827, #f59e0b 52%, #dc2626);
}

.movie-thumb {
    aspect-ratio: 16 / 10;
}

.movie-card-compact .movie-thumb {
    aspect-ratio: 16 / 11;
}

.movie-thumb img,
.rank-thumb img,
.category-card img,
.category-overview-head img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.movie-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 32%, rgba(0, 0, 0, 0.72));
}

.movie-duration,
.movie-category,
.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
}

.movie-duration {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 5px 9px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.72);
    font-size: 12px;
}

.movie-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%) scale(0.9);
    border-radius: 999px;
    color: var(--amber-dark);
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

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

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

.movie-category {
    padding: 5px 10px;
    color: var(--orange);
    background: #fff7ed;
    font-size: 12px;
}

.movie-card h3,
.rank-body h3 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.32;
    letter-spacing: -0.02em;
}

.movie-card p,
.rank-body p,
.category-card p,
.category-overview-head p {
    color: var(--gray-500);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    color: var(--gray-500);
    font-size: 13px;
}

.ranking-section {
    max-width: 100%;
    padding-left: calc((100% - var(--max-width)) / 2 + 24px);
    padding-right: calc((100% - var(--max-width)) / 2 + 24px);
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

.rank-item {
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.08);
    overflow: hidden;
}

.rank-link {
    display: grid;
    grid-template-columns: auto 132px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
}

.rank-index {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-weight: 900;
}

.rank-thumb {
    width: 132px;
    height: 82px;
    border-radius: 12px;
}

.rank-body span {
    color: var(--amber-dark);
    font-size: 13px;
    font-weight: 800;
}

.rank-body h3 {
    margin-top: 4px;
}

.rank-link > strong {
    color: var(--orange);
    font-size: 24px;
}

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

.category-card,
.category-overview-card,
.detail-card,
.side-card {
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.category-card a {
    position: relative;
    display: grid;
    min-height: 270px;
    align-items: end;
    color: var(--white);
    background: linear-gradient(135deg, #111827, var(--orange));
}

.category-card img {
    position: absolute;
    inset: 0;
    opacity: 0.58;
}

.category-card a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.88));
}

.category-card div {
    position: relative;
    z-index: 2;
    padding: 24px;
}

.category-card h3 {
    margin: 14px 0 8px;
    font-size: 27px;
}

.category-card p {
    color: rgba(255, 255, 255, 0.82);
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.category-samples a {
    min-height: 0;
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.category-samples a::after {
    display: none;
}

.page-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(120deg, var(--teal), #0891b2);
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.24), transparent 30%), linear-gradient(90deg, rgba(17, 24, 39, 0.78), rgba(17, 24, 39, 0.42));
}

.page-hero > div {
    position: relative;
    z-index: 2;
    width: min(var(--max-width), 100%);
    margin: 0 auto;
    padding: 64px 24px;
}

.page-hero h1 {
    margin: 18px 0 10px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 700px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
}

.simple-hero {
    background: linear-gradient(120deg, var(--amber), var(--orange), var(--red));
}

.category-hero {
    background: linear-gradient(120deg, var(--teal), #06b6d4);
}

.ranking-hero {
    background: linear-gradient(120deg, var(--gray-900), var(--orange));
}

.search-hero {
    background: linear-gradient(120deg, var(--purple), var(--pink));
}

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

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

.category-overview-head {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    margin-bottom: 22px;
}

.category-overview-head img {
    height: 190px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--gray-900), var(--amber));
}

.category-overview-head h2 {
    margin: 14px 0 8px;
    font-size: 30px;
}

.category-overview-head p {
    max-width: 760px;
}

.filter-bar {
    align-items: stretch;
    margin-bottom: 22px;
}

.filter-bar input,
.filter-bar select {
    min-height: 48px;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    outline: none;
    padding: 0 16px;
    background: var(--white);
    color: var(--gray-800);
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.05);
}

.filter-bar input {
    flex: 1;
}

.filter-bar select {
    min-width: 160px;
}

.filter-bar-large {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 160px;
}

.quick-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.quick-filter a,
.quick-filter button {
    border: none;
    cursor: pointer;
    border-radius: 999px;
    padding: 9px 13px;
    color: var(--gray-700);
    background: var(--white);
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
}

.quick-filter a:hover,
.quick-filter button:hover {
    color: var(--white);
    background: linear-gradient(90deg, var(--amber), var(--orange));
}

.detail-layout {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 34px 24px 72px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
}

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

.breadcrumb a {
    color: var(--amber-dark);
    font-weight: 800;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--black);
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.player-card video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    background: var(--black);
}

.player-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.72));
    transition: opacity 0.25s ease;
}

.player-card.is-playing .player-shade,
.player-card.is-playing .player-play,
.player-card.is-playing .player-title {
    opacity: 0;
    pointer-events: none;
}

.player-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    width: 82px;
    height: 82px;
    border: none;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    color: var(--amber-dark);
    background: rgba(255, 255, 255, 0.94);
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.24);
}

.player-title {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--white);
}

.player-title span {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    font-weight: 900;
}

.player-title strong {
    margin-right: auto;
    font-size: 22px;
}

.player-status {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 5;
    transform: translateX(-50%);
    color: var(--white);
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.detail-card {
    margin-top: 24px;
    padding: 28px;
}

.detail-title-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
}

.detail-title-row h1 {
    margin: 0 0 12px;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-title-row p {
    margin: 0;
    color: var(--gray-500);
    font-size: 18px;
}

.score-badge {
    min-width: 74px;
    height: 74px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-size: 25px;
    box-shadow: 0 14px 30px rgba(234, 88, 12, 0.24);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
    padding: 18px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.detail-meta span {
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--gray-700);
    background: var(--gray-100);
    font-weight: 800;
    font-size: 13px;
}

.detail-tags .tag {
    color: var(--amber-dark);
    background: #fffbeb;
}

.detail-card h2,
.side-card h2 {
    margin: 28px 0 12px;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.detail-card p {
    color: var(--gray-700);
    text-align: justify;
}

.related-section {
    padding-left: 0;
    padding-right: 0;
}

.detail-side {
    display: grid;
    align-content: start;
    gap: 24px;
    position: sticky;
    top: 112px;
}

.side-card {
    padding: 22px;
}

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

.side-list .rank-link {
    grid-template-columns: 92px 1fr;
    gap: 12px;
}

.side-list .rank-index,
.side-list .rank-link > strong {
    display: none;
}

.side-list .rank-thumb {
    width: 92px;
    height: 62px;
}

.side-list .rank-body p {
    display: none;
}

.side-list .rank-body h3 {
    font-size: 15px;
}

.info-list {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    margin: 0;
}

.info-list dt {
    color: var(--gray-500);
}

.info-list dd {
    margin: 0;
    font-weight: 800;
}

.info-list a {
    color: var(--amber-dark);
}

.site-footer {
    color: var(--gray-300);
    background: linear-gradient(180deg, var(--gray-900), var(--black));
}

.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 52px 24px 34px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 34px;
}

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

.site-footer p,
.site-footer li {
    color: var(--gray-400);
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 18px;
}

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

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

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 18px 24px 30px;
    color: var(--gray-500);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

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

    .detail-side {
        position: static;
    }

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

@media (max-width: 720px) {
    .header-main {
        height: 62px;
        padding: 0 16px;
    }

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

    .category-strip {
        padding: 10px 16px;
    }

    .hero,
    .hero-content {
        min-height: 680px;
    }

    .hero-content {
        padding: 62px 18px 190px;
    }

    .hero-search-panel {
        bottom: 22px;
        width: calc(100% - 28px);
        flex-direction: column;
        align-items: stretch;
    }

    .hero-search {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-dots {
        justify-content: center;
    }

    .section,
    .ranking-section {
        padding: 42px 16px;
    }

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

    .section-heading h2 {
        padding-left: 46px;
    }

    .section-heading h2::before {
        width: 34px;
    }

    .movie-grid,
    .featured-grid,
    .compact-grid,
    .library-grid,
    .mini-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .rank-link {
        grid-template-columns: auto 96px 1fr;
        gap: 12px;
    }

    .rank-link > strong {
        display: none;
    }

    .rank-thumb {
        width: 96px;
        height: 66px;
    }

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

    .filter-bar,
    .filter-bar-large {
        display: grid;
        grid-template-columns: 1fr;
    }

    .detail-layout {
        padding: 24px 16px 52px;
    }

    .detail-card {
        padding: 20px;
    }

    .detail-title-row {
        flex-direction: column;
    }

    .score-badge {
        min-width: 62px;
        height: 62px;
        font-size: 22px;
    }

    .player-title {
        left: 16px;
        right: 16px;
        bottom: 16px;
        flex-wrap: wrap;
    }

    .player-play {
        width: 66px;
        height: 66px;
    }

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