:root {
    --bg: #fffaf0;
    --panel: #ffffff;
    --ink: #162033;
    --muted: #667085;
    --line: #f1dfc4;
    --amber: #d97706;
    --amber-dark: #b45309;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --soft-blue: #eff6ff;
    --soft-amber: #fff7ed;
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.18), transparent 32rem),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.13), transparent 28rem),
        linear-gradient(180deg, #fffaf0 0%, #f8fafc 42%, #ffffff 100%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 251, 235, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(217, 119, 6, 0.18);
    box-shadow: 0 10px 30px rgba(120, 53, 15, 0.08);
}

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

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

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--amber), var(--blue));
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.22);
}

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

.brand-text strong {
    font-size: 22px;
    background: linear-gradient(90deg, var(--amber-dark), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text em {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #475467;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--amber-dark);
    background: rgba(251, 191, 36, 0.18);
}

.top-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border: 1px solid rgba(217, 119, 6, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

.top-search input,
.page-search input,
.hero-search-card input,
.inline-filter,
.mobile-panel input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font: inherit;
}

.top-search input {
    width: 220px;
    padding: 9px 8px 9px 14px;
}

.top-search button,
.page-search button,
.hero-search-card button,
.mobile-panel button {
    border: 0;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
    border-radius: 999px;
    padding: 10px 17px;
    background: linear-gradient(135deg, var(--amber), var(--blue));
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.18);
}

.nav-toggle {
    display: none;
    border: 0;
    width: 44px;
    height: 44px;
    cursor: pointer;
    border-radius: 14px;
    background: #fff7ed;
    color: var(--ink);
    font-size: 22px;
}

.mobile-panel {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

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

.mobile-panel a {
    font-weight: 800;
    color: #475467;
}

.mobile-panel form {
    display: flex;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
}

main {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(310px, 0.75fr);
    gap: 24px;
    padding: 32px 0 18px;
}

.hero-carousel {
    position: relative;
    min-height: 590px;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: var(--shadow);
    background: #111827;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(9, 13, 24, 0.88) 0%, rgba(9, 13, 24, 0.58) 42%, rgba(9, 13, 24, 0.14) 100%),
        linear-gradient(0deg, rgba(9, 13, 24, 0.9) 0%, transparent 50%),
        var(--hero-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(680px, calc(100% - 40px));
    padding: 70px 0 0 58px;
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--amber);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content .eyebrow {
    color: #fbbf24;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.18);
    backdrop-filter: blur(12px);
}

.hero-content h1,
.hero-content h2 {
    margin: 24px 0 16px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 650px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.8;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    padding: 8px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

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

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--blue));
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.25);
}

.ghost-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
}

.ghost-dark-btn {
    color: var(--ink);
    background: #fff7ed;
    border: 1px solid var(--line);
}

.primary-btn:hover,
.ghost-btn:hover,
.ghost-dark-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(17, 24, 39, 0.18);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.45);
    font-size: 32px;
    line-height: 1;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity 0.2s ease, background 0.2s ease;
}

.hero-carousel:hover .hero-arrow {
    opacity: 1;
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
}

.hero-dots {
    position: absolute;
    left: 58px;
    bottom: 34px;
    z-index: 5;
    display: flex;
    gap: 8px;
}

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

.hero-dot.is-active {
    width: 34px;
    background: #ffffff;
}

.hero-side {
    display: grid;
    gap: 18px;
}

.hero-search-card,
.section-panel,
.filter-bar,
.ranking-list-panel,
.prose-panel,
.player-panel,
.detail-article,
.detail-aside {
    border: 1px solid rgba(217, 119, 6, 0.13);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 15px 40px rgba(17, 24, 39, 0.08);
}

.hero-search-card {
    padding: 26px;
}

.hero-search-card h2 {
    margin: 14px 0 18px;
    font-size: 28px;
    line-height: 1.18;
}

.hero-search-card form,
.page-search {
    display: flex;
    gap: 8px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
}

.hero-search-card input,
.page-search input {
    padding: 12px 10px 12px 14px;
}

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

.hero-mini {
    display: grid;
    grid-template-columns: 86px 1fr;
    align-items: center;
    gap: 13px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(217, 119, 6, 0.12);
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-mini:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.hero-mini img {
    width: 86px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 13px;
    background: #f3f4f6;
}

.hero-mini span {
    font-weight: 900;
    line-height: 1.35;
}

.section-panel,
.ranking-section,
.ranking-list-panel,
.player-panel,
.prose-panel {
    margin: 30px 0;
    padding: 28px;
}

.ranking-section {
    border-radius: 30px;
    background: linear-gradient(135deg, #111827, #1e293b 58%, #0f172a);
    box-shadow: var(--shadow);
}

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

.section-title h2 {
    margin: 6px 0 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.1;
}

.section-title > a,
.text-link {
    color: var(--blue);
    font-weight: 900;
}

.section-title.light h2,
.section-title.light a {
    color: #ffffff;
}

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

.category-tile {
    min-height: 160px;
    padding: 22px;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.18), transparent 45%),
        linear-gradient(135deg, #fff7ed, #ffffff);
    border: 1px solid var(--line);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-tile span {
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 900;
}

.category-tile p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

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

.movie-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(217, 119, 6, 0.12);
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #fde68a, #bfdbfe);
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 62%);
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.movie-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 7px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.88);
    font-size: 12px;
    font-weight: 900;
}

.play-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    color: #ffffff;
    border-radius: 50%;
    background: rgba(217, 119, 6, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.movie-info {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.movie-info strong {
    font-size: 18px;
    line-height: 1.35;
}

.movie-meta,
.movie-desc {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.movie-desc {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row span {
    padding: 6px 9px;
    color: var(--blue-dark);
    background: var(--soft-blue);
}

.compact-grid .movie-card,
.movie-card.compact {
    border-radius: 18px;
}

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

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

.rank-card {
    display: grid;
    grid-template-columns: auto 112px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    color: var(--ink);
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-section .rank-card {
    background: rgba(255, 255, 255, 0.94);
}

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

.rank-index {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber), var(--blue));
}

.rank-cover img {
    width: 112px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 13px;
    background: #f3f4f6;
}

.rank-body {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.rank-body strong {
    font-size: 18px;
}

.rank-body em,
.rank-body span {
    color: var(--muted);
    font-style: normal;
    line-height: 1.55;
}

.page-shell,
.detail-shell {
    padding: 32px 0;
}

.page-hero {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    padding: 52px;
    background:
        radial-gradient(circle at 95% 15%, rgba(37, 99, 235, 0.16), transparent 36%),
        linear-gradient(135deg, #fff7ed, #ffffff);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.page-hero.slim h1 {
    max-width: 920px;
    margin: 10px 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.page-hero p {
    max-width: 790px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.85;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
    color: var(--muted);
    font-weight: 700;
}

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

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

.category-overview-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 22px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
}

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

.category-cover-stack img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 13px;
    background: #f3f4f6;
}

.category-overview-card h2 {
    margin: 10px 0;
    font-size: 28px;
}

.category-overview-card p {
    color: var(--muted);
    line-height: 1.75;
}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 26px 0;
    padding: 16px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    border: 0;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 999px;
    color: #475467;
    font-weight: 900;
    background: #fff7ed;
}

.filter-btn.is-active,
.filter-btn:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--blue));
}

.inline-filter {
    max-width: 280px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
}

.category-list .movie-card.is-hidden {
    display: none;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 30px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.13), transparent 38%),
        linear-gradient(135deg, #fff7ed, #ffffff);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 24px;
    background: #f3f4f6;
    box-shadow: 0 22px 45px rgba(17, 24, 39, 0.16);
}

.detail-copy h1 {
    margin: 12px 0 14px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.lead-text {
    color: var(--muted);
    font-size: 20px;
    line-height: 1.85;
}

.detail-tags span {
    padding: 8px 12px;
    color: var(--blue-dark);
    background: var(--soft-blue);
}

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

.detail-meta div {
    padding: 15px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
}

.detail-meta dt {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.detail-meta dd {
    margin: 0;
    font-weight: 900;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #020617;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

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

.player-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(2, 6, 23, 0.48));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-play span {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber), var(--blue));
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    font-size: 34px;
}

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

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    margin: 30px 0;
}

.detail-article,
.detail-aside {
    padding: 28px;
}

.detail-article h2,
.detail-aside h2,
.prose-panel h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.detail-article p,
.detail-aside p,
.prose-panel p {
    color: var(--muted);
    line-height: 1.95;
    font-size: 16px;
}

.detail-aside {
    align-self: start;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
}

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

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

.search-panel {
    min-height: 380px;
}

.prose-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.site-footer {
    margin-top: 42px;
    padding: 48px 0 26px;
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937 52%, #0f172a);
}

.footer-grid,
.footer-bottom {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 34px;
}

.footer-brand {
    color: #ffffff;
    font-size: 22px;
}

.site-footer p {
    color: #9ca3af;
    line-height: 1.85;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

.site-footer a:not(.footer-brand) {
    display: block;
    margin: 10px 0;
    color: #d1d5db;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #fbbf24;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #9ca3af;
}

@media (max-width: 1080px) {
    .hero-wrap,
    .detail-hero,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

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

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

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

@media (max-width: 820px) {
    .main-nav,
    .top-search {
        display: none;
    }

    .nav-toggle {
        display: inline-grid;
        place-items: center;
    }

    .hero-content {
        width: auto;
        padding: 52px 28px 0;
    }

    .hero-dots {
        left: 28px;
    }

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

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

    .filter-bar,
    .section-title,
    .footer-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .inline-filter {
        max-width: none;
    }

    .rank-card {
        grid-template-columns: auto 92px minmax(0, 1fr);
    }

    .rank-cover img {
        width: 92px;
    }
}

@media (max-width: 560px) {
    main,
    .nav-shell,
    .mobile-panel,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 22px, 1200px);
    }

    .brand-text strong {
        font-size: 18px;
    }

    .hero-carousel {
        min-height: 560px;
        border-radius: 22px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 36px;
    }

    .hero-actions,
    .page-search,
    .hero-search-card form,
    .mobile-panel form {
        flex-direction: column;
        border-radius: 22px;
    }

    .hero-arrow {
        display: none;
    }

    .section-panel,
    .ranking-section,
    .player-panel,
    .page-hero,
    .detail-hero,
    .detail-article,
    .detail-aside {
        padding: 20px;
        border-radius: 22px;
    }

    .movie-grid,
    .category-grid,
    .category-overview-grid,
    .rank-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-card {
        grid-template-columns: auto 88px minmax(0, 1fr);
    }
}
