:root {
    --ash-50: #f8f9fa;
    --ash-100: #f1f3f5;
    --ash-200: #dee2e6;
    --ash-300: #ced4da;
    --ash-400: #adb5bd;
    --ash-500: #6c757d;
    --ash-600: #495057;
    --ash-700: #343a40;
    --ash-800: #212529;
    --ash-900: #0d0f12;
    --volcanic-50: #fef5f1;
    --volcanic-100: #fdeae1;
    --volcanic-200: #fbd5c3;
    --volcanic-300: #f8bfa5;
    --volcanic-600: #f07f4a;
    --volcanic-700: #ee692c;
    --volcanic-800: #e84118;
    --volcanic-900: #c03711;
    --lava-50: #fff5e6;
    --lava-100: #ffe6b3;
    --lava-400: #ffb81a;
    --lava-600: #e68a00;
    --white: #ffffff;
    --shadow-volcanic: 0 10px 40px -15px rgba(232, 65, 24, 0.4);
    --shadow-volcanic-lg: 0 20px 60px -20px rgba(232, 65, 24, 0.5);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    color: var(--ash-900);
    background: linear-gradient(180deg, var(--ash-50), #ffffff 34%, var(--volcanic-50));
    font-family: Inter, 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;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(90deg, var(--volcanic-800), var(--volcanic-900));
    color: var(--white);
    box-shadow: 0 14px 40px rgba(13, 15, 18, 0.22);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 24px;
}

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

.brand-mark {
    position: relative;
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--lava-400);
}

.brand-mark svg {
    width: 42px;
    height: 42px;
    fill: currentColor;
    filter: drop-shadow(0 0 18px rgba(255, 184, 26, 0.35));
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark svg {
    transform: scale(1.08) rotate(-3deg);
}

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

.brand-copy strong {
    font-size: 1.28rem;
    letter-spacing: 0.02em;
}

.brand-copy small {
    color: var(--volcanic-200);
    font-size: 0.78rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex-wrap: wrap;
}

.nav-link {
    padding: 10px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
    font-size: 0.92rem;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--lava-400);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--white);
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

.mobile-nav-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 0 18px;
}

.mobile-link {
    padding: 11px 13px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
}

.mobile-link.is-active,
.mobile-link:hover {
    color: var(--lava-400);
}

.hero {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    background: var(--ash-900);
}

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

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

.hero-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(13, 15, 18, 0.96), rgba(13, 15, 18, 0.54) 48%, rgba(13, 15, 18, 0.08)), radial-gradient(circle at 22% 72%, rgba(232, 65, 24, 0.55), transparent 32%);
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    min-height: 600px;
    padding-bottom: 86px;
}

.hero-text {
    max-width: 760px;
    color: var(--white);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--lava-400);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-aside h1 {
    margin: 0;
    font-size: clamp(2.25rem, 6vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 680px;
    margin: 22px 0 0;
    color: var(--ash-200);
    font-size: clamp(1rem, 1.8vw, 1.22rem);
}

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

.hero-meta span,
.detail-meta span,
.tag-list span,
.card-category {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    padding: 7px 12px;
    font-size: 0.84rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

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

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

.btn-primary {
    min-height: 48px;
    padding: 0 24px;
    color: var(--white);
    background: linear-gradient(90deg, var(--volcanic-600), var(--volcanic-700));
    box-shadow: var(--shadow-volcanic);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-volcanic-lg);
    background: linear-gradient(90deg, var(--volcanic-700), var(--volcanic-800));
}

.btn-ghost {
    min-height: 48px;
    padding: 0 24px;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.16);
}

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

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

.hero-dots button.is-active {
    width: 34px;
    background: var(--lava-400);
}

.hero-category-links {
    position: absolute;
    left: 50%;
    bottom: 12px;
    z-index: 4;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    transform: translateX(-50%);
}

.hero-category-links a,
.side-chip-list a {
    flex: 0 0 auto;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    padding: 8px 13px;
    font-size: 0.82rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.section-block,
.home-search,
.rank-section,
.category-strip {
    padding: 68px 0;
}

.category-strip:nth-of-type(even),
.rank-section {
    background: linear-gradient(135deg, var(--volcanic-50), var(--lava-50));
}

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

.section-heading h2 {
    margin: 0;
    color: var(--ash-900);
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-heading p {
    max-width: 760px;
    margin: 9px 0 0;
    color: var(--ash-600);
}

.section-heading::after {
    content: "";
    flex: 1;
    min-width: 80px;
    height: 4px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--volcanic-600), rgba(240, 127, 74, 0));
}

.section-more {
    flex: 0 0 auto;
    color: var(--volcanic-700);
}

.section-more:hover,
.text-link:hover {
    color: var(--volcanic-900);
    transform: translateX(2px);
}

.filter-panel {
    margin-bottom: 34px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    padding: 18px;
    border: 1px solid rgba(240, 127, 74, 0.22);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 10px 35px rgba(13, 15, 18, 0.06);
    backdrop-filter: blur(14px);
}

.search-box {
    display: grid;
    flex: 1 1 300px;
    gap: 6px;
    color: var(--ash-600);
    font-size: 0.86rem;
    font-weight: 800;
}

.search-box input,
.filter-row select {
    min-height: 46px;
    border: 1px solid var(--ash-200);
    border-radius: 999px;
    background: var(--white);
    color: var(--ash-900);
    padding: 0 16px;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus,
.filter-row select:focus {
    border-color: var(--volcanic-600);
    box-shadow: 0 0 0 4px rgba(240, 127, 74, 0.16);
}

.filter-row button {
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    background: var(--ash-900);
    color: var(--white);
    padding: 0 18px;
    font-weight: 800;
    cursor: pointer;
}

.filter-empty {
    display: none;
    margin: 22px 0;
    border-radius: var(--radius-md);
    background: var(--volcanic-50);
    color: var(--volcanic-900);
    padding: 16px;
    font-weight: 800;
}

.filter-empty.is-visible {
    display: block;
}

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

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

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

.movie-card {
    min-width: 0;
}

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

.card-link {
    display: block;
    height: 100%;
    border-radius: var(--radius-lg);
    background: var(--white);
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(13, 15, 18, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(13, 15, 18, 0.16);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--ash-900), var(--volcanic-900));
}

.movie-card-wide .poster-wrap,
.compact-grid .poster-wrap {
    aspect-ratio: 16 / 10;
}

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

.card-link:hover .poster-wrap img {
    transform: scale(1.08);
}

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.04));
}

.year-badge {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: var(--white);
    padding: 4px 8px;
    font-size: 0.76rem;
    font-weight: 800;
}

.play-bubble {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    background: var(--volcanic-600);
    color: var(--white);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72);
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: var(--shadow-volcanic);
}

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

.card-body {
    display: block;
    padding: 14px;
}

.card-category {
    color: var(--volcanic-900);
    background: var(--volcanic-100);
    padding: 5px 9px;
    font-size: 0.72rem;
}

.card-body h2 {
    display: -webkit-box;
    min-height: 2.8em;
    margin: 10px 0 5px;
    overflow: hidden;
    color: var(--ash-900);
    font-size: 1rem;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: block;
    color: var(--ash-600);
    font-size: 0.82rem;
}

.card-body p {
    display: -webkit-box;
    min-height: 3em;
    margin: 9px 0 0;
    overflow: hidden;
    color: var(--ash-600);
    font-size: 0.88rem;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-line {
    display: block;
    margin-top: 9px;
    overflow: hidden;
    color: var(--volcanic-700);
    font-size: 0.78rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.8fr);
    gap: 36px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border-radius: var(--radius-md);
    background: var(--white);
    padding: 14px 16px;
    box-shadow: 0 10px 26px rgba(13, 15, 18, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
    transform: translateX(5px);
    box-shadow: 0 14px 36px rgba(13, 15, 18, 0.14);
}

.rank-number,
.ranking-num {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--volcanic-600), var(--volcanic-900));
    font-weight: 900;
}

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

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

.rank-info strong {
    overflow: hidden;
    color: var(--ash-900);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info em {
    overflow: hidden;
    color: var(--ash-600);
    font-size: 0.86rem;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-year {
    color: var(--volcanic-700);
    font-weight: 900;
}

.rank-side {
    align-self: start;
    border-radius: var(--radius-xl);
    background: linear-gradient(160deg, var(--ash-900), var(--volcanic-900));
    color: var(--white);
    padding: 28px;
    box-shadow: var(--shadow-volcanic-lg);
}

.rank-side h2 {
    margin: 0;
    font-size: 1.65rem;
}

.rank-side p {
    color: var(--ash-300);
}

.side-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.page-hero {
    color: var(--white);
    background: radial-gradient(circle at 15% 25%, rgba(255, 184, 26, 0.28), transparent 28%), linear-gradient(135deg, var(--ash-900), var(--volcanic-900));
    padding: 74px 0 82px;
}

.page-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--ash-200);
    font-size: 1.08rem;
}

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

.crumb a:hover {
    color: var(--lava-400);
}

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

.category-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 14px 40px rgba(13, 15, 18, 0.1);
}

.category-cover {
    min-height: 100%;
    background: var(--ash-900);
}

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

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

.category-card h2 {
    margin: 0;
    font-size: 1.65rem;
    line-height: 1.15;
}

.category-card p {
    color: var(--ash-600);
}

.mini-list {
    display: grid;
    gap: 8px;
    margin: 16px 0;
}

.compact-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.compact-card img {
    width: 54px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--ash-900);
}

.compact-card strong,
.compact-card em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-card strong {
    color: var(--ash-900);
    font-size: 0.92rem;
}

.compact-card em {
    color: var(--ash-500);
    font-size: 0.78rem;
    font-style: normal;
}

.text-link {
    color: var(--volcanic-700);
}

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

.ranking-card a {
    display: grid;
    grid-template-columns: 54px 112px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    border-radius: var(--radius-lg);
    background: var(--white);
    padding: 14px;
    box-shadow: 0 12px 30px rgba(13, 15, 18, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-card a:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(13, 15, 18, 0.14);
}

.ranking-card img {
    width: 112px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--ash-900);
}

.ranking-content {
    min-width: 0;
}

.ranking-content strong,
.ranking-content em {
    display: block;
}

.ranking-content strong {
    overflow: hidden;
    color: var(--ash-900);
    font-size: 1.08rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-content em {
    color: var(--volcanic-700);
    font-size: 0.84rem;
    font-style: normal;
    font-weight: 800;
}

.ranking-content p {
    display: -webkit-box;
    margin: 6px 0 0;
    overflow: hidden;
    color: var(--ash-600);
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.detail-page {
    background: linear-gradient(180deg, var(--ash-900), var(--ash-900) 420px, var(--ash-50) 420px);
}

.watch-section {
    color: var(--white);
    padding: 38px 0 64px;
}

.detail-crumb {
    margin: 0 0 22px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.75fr);
    gap: 32px;
    align-items: center;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #000000;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    border: 0;
    background: #000000;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.58);
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(232, 65, 24, 0.24), transparent 42%), linear-gradient(0deg, rgba(0, 0, 0, 0.6), transparent);
}

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

.play-button-large {
    position: relative;
    z-index: 4;
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--volcanic-600), var(--volcanic-900));
    font-size: 1.75rem;
    box-shadow: var(--shadow-volcanic-lg);
    transform: translateZ(0);
}

.detail-aside {
    min-width: 0;
}

.detail-aside h1 {
    font-size: clamp(2rem, 4vw, 3.6rem);
}

.detail-aside p {
    margin: 18px 0 0;
    color: var(--ash-200);
    font-size: 1.05rem;
}

.detail-meta,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.tag-list span {
    color: var(--volcanic-100);
    background: rgba(232, 65, 24, 0.28);
}

.detail-aside .btn-primary {
    margin-top: 26px;
}

.detail-content {
    display: grid;
    gap: 22px;
    padding-bottom: 78px;
}

.content-card {
    border-radius: var(--radius-xl);
    background: var(--white);
    padding: clamp(22px, 3vw, 34px);
    box-shadow: 0 14px 40px rgba(13, 15, 18, 0.08);
}

.content-card h2 {
    margin: 0 0 14px;
    color: var(--ash-900);
    font-size: 1.55rem;
}

.content-card p {
    margin: 0;
    color: var(--ash-700);
    font-size: 1.02rem;
}

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

.info-grid span {
    display: grid;
    gap: 5px;
    border-radius: var(--radius-md);
    background: var(--ash-50);
    padding: 14px;
    color: var(--ash-700);
}

.info-grid strong {
    color: var(--volcanic-700);
    font-size: 0.82rem;
}

.info-grid a {
    color: var(--volcanic-700);
    font-weight: 800;
}

.related-section {
    margin-top: 12px;
}

.site-footer {
    background: var(--ash-900);
    color: var(--ash-300);
    padding-top: 52px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) 0.7fr 1fr;
    gap: 36px;
}

.footer-logo {
    color: var(--white);
}

.footer-brand p {
    max-width: 560px;
    color: var(--ash-400);
}

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

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li + li {
    margin-top: 8px;
}

.site-footer a {
    color: var(--ash-400);
    transition: color 0.2s ease;
}

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

.footer-bottom {
    margin-top: 38px;
    border-top: 1px solid var(--ash-800);
    color: var(--ash-500);
    padding: 20px 16px;
    text-align: center;
}

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

    .menu-toggle {
        display: block;
    }

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

    .category-grid,
    .rank-layout,
    .detail-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .rank-side {
        order: -1;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .nav-wrap {
        min-height: 66px;
    }

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

    .brand-copy small {
        display: none;
    }

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

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

    .hero-category-links {
        width: calc(100% - 24px);
    }

    .section-heading {
        display: block;
    }

    .section-heading::after {
        display: block;
        width: 120px;
        margin-top: 12px;
    }

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

    .card-body {
        padding: 12px;
    }

    .card-body h2 {
        font-size: 0.95rem;
    }

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

    .rank-year {
        display: none;
    }

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

    .category-cover {
        height: 210px;
    }

    .ranking-card a {
        grid-template-columns: 46px 84px minmax(0, 1fr);
        gap: 12px;
    }

    .ranking-card img {
        width: 84px;
        height: 64px;
    }

    .ranking-content p {
        display: none;
    }

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

    .watch-section {
        padding-top: 22px;
    }

    .player-shell {
        border-radius: 16px;
    }

    .detail-aside h1 {
        font-size: 2rem;
    }

    .footer-grid {
        gap: 24px;
    }
}

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

    .mobile-nav-inner {
        grid-template-columns: 1fr;
    }

    .filter-row {
        padding: 14px;
    }

    .search-box,
    .filter-row select,
    .filter-row button {
        width: 100%;
    }
}
