:root {
    color-scheme: light;
    --ink: #161616;
    --muted: #6b7280;
    --line: rgba(17, 24, 39, 0.11);
    --paper: #ffffff;
    --soft: #fff9e7;
    --gold: #facc15;
    --gold-deep: #f59e0b;
    --amber: #fbbf24;
    --brown: #4a2d00;
    --night: #111827;
    --shadow: 0 22px 55px rgba(17, 24, 39, 0.12);
    --radius: 24px;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 16% 0%, rgba(250, 204, 21, 0.22), transparent 30%),
        linear-gradient(135deg, #fff7d6 0%, #ffffff 45%, #fff3c4 100%);
    min-height: 100vh;
}

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

img,
video {
    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: 50;
    background: linear-gradient(90deg, #facc15 0%, #fde047 46%, #f59e0b 100%);
    box-shadow: 0 16px 38px rgba(120, 72, 0, 0.18);
}

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

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

.brand-mark {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #ffffff;
    color: #d97706;
    font-weight: 900;
    box-shadow: 0 10px 25px rgba(120, 72, 0, 0.22);
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-text strong {
    font-size: 22px;
    letter-spacing: -0.03em;
    color: #1f2937;
}

.brand-text small {
    font-size: 12px;
    color: rgba(31, 41, 55, 0.72);
}

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

.nav-link {
    position: relative;
    font-weight: 700;
    color: rgba(31, 41, 55, 0.78);
    padding: 26px 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 19px;
    height: 3px;
    border-radius: 999px;
    background: #1f2937;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #111827;
    transform: translateY(-1px);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.mobile-toggle {
    display: none;
    border: 0;
    border-radius: 14px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.66);
    color: #111827;
    font-weight: 800;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-link {
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.42);
    font-weight: 800;
}

.mobile-link.active {
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(120, 72, 0, 0.16);
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(120deg, rgba(15, 23, 42, 0.90), rgba(146, 64, 14, 0.72)),
        var(--hero-image),
        linear-gradient(135deg, #171717, #92400e);
    background-size: cover;
    background-position: center;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    z-index: -1;
}

.hero::before {
    width: 440px;
    height: 440px;
    top: -160px;
    right: 8%;
    background: rgba(250, 204, 21, 0.35);
}

.hero::after {
    width: 520px;
    height: 520px;
    bottom: -260px;
    left: -100px;
    background: rgba(245, 158, 11, 0.28);
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    opacity: 0.22;
    transform: scale(1.06);
    transition: background-image 0.5s ease, opacity 0.5s ease;
}

.hero-shell {
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    align-items: center;
    gap: 44px;
    padding: 64px 0;
}

.hero-main,
.hero-copy {
    color: #ffffff;
}

.eyebrow {
    margin: 0 0 12px;
    color: #facc15;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 12px;
}

.hero-main h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero-main p {
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.85;
}

.hero-search {
    margin-top: 30px;
    display: flex;
    gap: 12px;
    padding: 8px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(14px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    border-radius: 16px;
    padding: 15px 16px;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
}

.hero-search button,
.primary-button,
.ghost-button,
.outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 16px;
    padding: 14px 18px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-search button,
.primary-button {
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #201400;
    box-shadow: 0 16px 28px rgba(245, 158, 11, 0.28);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.outline-button {
    color: #92400e;
    background: #fff7d6;
    border: 1px solid rgba(245, 158, 11, 0.26);
}

.hero-search button:hover,
.primary-button:hover,
.ghost-button:hover,
.outline-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(146, 64, 14, 0.20);
}

.hero-nav-dots {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.hero-dot {
    width: 36px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    cursor: pointer;
}

.hero-dot.active {
    background: #facc15;
}

.hero-carousel {
    position: relative;
    min-height: 500px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    align-items: center;
    gap: 24px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 34px;
    background: rgba(17, 24, 39, 0.36);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateX(24px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.hero-copy h2 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.08;
}

.hero-copy p {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.8;
}

.hero-tags,
.tag-list,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-list span,
.rank-meta span {
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(250, 204, 21, 0.16);
    color: #92400e;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: #fde68a;
    background: rgba(255, 255, 255, 0.12);
}

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

.hero-poster,
.poster,
.detail-poster,
.rank-thumb,
.mini-card {
    background-image:
        linear-gradient(135deg, rgba(17, 24, 39, 0.28), rgba(245, 158, 11, 0.30)),
        var(--poster-image),
        linear-gradient(135deg, #3f2f00, #facc15 55%, #92400e);
    background-size: cover;
    background-position: center;
}

.hero-poster {
    min-height: 350px;
    border-radius: 26px;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.34);
}

.category-panel {
    margin-top: -64px;
    position: relative;
    z-index: 5;
}

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

.category-chip {
    min-height: 132px;
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(245, 158, 11, 0.18);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-chip:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 70px rgba(146, 64, 14, 0.18);
}

.category-chip strong {
    font-size: 18px;
}

.category-chip span {
    color: var(--muted);
    line-height: 1.7;
    font-size: 13px;
}

.section-block {
    padding: 76px 0;
}

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

.section-heading h2,
.sub-hero h1,
.detail-copy h1 {
    margin: 0;
    color: #111827;
    letter-spacing: -0.05em;
}

.section-heading h2 {
    font-size: clamp(30px, 4vw, 48px);
}

.section-heading p,
.sub-hero p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(245, 158, 11, 0.16);
    box-shadow: 0 16px 38px rgba(17, 24, 39, 0.09);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 70px rgba(146, 64, 14, 0.16);
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.18;
    overflow: hidden;
}

.poster::after,
.detail-poster::after,
.hero-poster::after,
.rank-thumb::after,
.mini-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.56));
    pointer-events: none;
}

.poster-label,
.poster-heat {
    position: absolute;
    z-index: 1;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
}

.poster-label {
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #92400e;
}

.poster-heat {
    right: 12px;
    bottom: 12px;
    background: rgba(250, 204, 21, 0.92);
    color: #201400;
}

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

.movie-card-meta {
    color: #d97706;
    font-weight: 900;
    font-size: 12px;
    margin-bottom: 8px;
}

.movie-card h2 {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.35;
}

.movie-card p {
    min-height: 74px;
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}

.text-link {
    display: inline-flex;
    margin-top: 14px;
    color: #b45309;
    font-weight: 900;
}

.rank-home {
    padding: 76px 0;
    background:
        radial-gradient(circle at 86% 10%, rgba(250, 204, 21, 0.18), transparent 32%),
        linear-gradient(135deg, #111827, #1f2937);
    color: #ffffff;
}

.rank-layout {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 44px;
    align-items: start;
}

.rank-copy h2 {
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
}

.rank-copy p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.9;
}

.rank-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-list a {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 86px;
    gap: 14px;
    align-items: center;
    border-radius: 18px;
    padding: 13px 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.rank-list strong {
    color: #facc15;
}

.rank-list span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-list em {
    color: #fde68a;
    font-size: 13px;
    font-style: normal;
    text-align: right;
}

.category-strips {
    display: grid;
    gap: 24px;
}

.category-strip {
    border-radius: 26px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(245, 158, 11, 0.15);
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
}

.strip-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.strip-title h3 {
    margin: 0;
    font-size: 24px;
}

.strip-title a {
    color: #b45309;
    font-weight: 900;
}

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

.mini-card {
    position: relative;
    min-height: 148px;
    overflow: hidden;
    display: grid;
    align-content: end;
    gap: 4px;
    border-radius: 18px;
    padding: 14px;
    color: #ffffff;
}

.mini-card span,
.mini-card small {
    position: relative;
    z-index: 1;
}

.mini-card span {
    font-weight: 900;
}

.mini-card small {
    color: rgba(255, 255, 255, 0.78);
}

.sub-hero {
    padding: 72px 0;
    background:
        radial-gradient(circle at 84% -20%, rgba(250, 204, 21, 0.42), transparent 36%),
        linear-gradient(135deg, #fff7d6, #ffffff 60%, #fde68a);
    border-bottom: 1px solid rgba(245, 158, 11, 0.18);
}

.sub-hero h1 {
    font-size: clamp(38px, 6vw, 68px);
}

.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 26px;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 18px;
    padding: 15px 16px;
    background: rgba(255, 255, 255, 0.92);
    outline: 0;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

.filter-bar select {
    max-width: 180px;
}

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

.category-card {
    border-radius: 28px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.16);
    box-shadow: var(--shadow);
}

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

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

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.category-samples a {
    border-radius: 999px;
    padding: 8px 12px;
    background: #fff7d6;
    color: #92400e;
    font-weight: 800;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: rgba(17, 24, 39, 0.70);
    font-weight: 800;
}

.breadcrumb a {
    color: #b45309;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 76px;
    background:
        linear-gradient(120deg, rgba(255, 248, 219, 0.96), rgba(255, 255, 255, 0.88)),
        var(--hero-image),
        linear-gradient(135deg, #fff7d6, #ffffff);
    background-size: cover;
    background-position: center;
}

.detail-shell {
    position: relative;
    z-index: 1;
}

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

.detail-poster {
    position: relative;
    min-height: 440px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(146, 64, 14, 0.22);
}

.detail-copy h1 {
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.02;
}

.detail-one-line {
    margin: 20px 0;
    font-size: 19px;
    line-height: 1.9;
    color: #4b5563;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.info-list div {
    border-radius: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(245, 158, 11, 0.18);
}

.info-list dt {
    color: #b45309;
    font-size: 12px;
    font-weight: 900;
}

.info-list dd {
    margin: 6px 0 0;
    color: #111827;
    font-weight: 800;
}

.player-section {
    padding: 72px 0;
    background: #0f172a;
    color: #ffffff;
}

.compact-heading h2 {
    color: #ffffff;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

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

.player-start {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 999px;
    padding: 16px 28px;
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #201400;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(250, 204, 21, 0.22);
}

.player-start.is-playing {
    opacity: 0;
    pointer-events: none;
}

.source-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.source-button {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.source-button.active {
    color: #201400;
    background: #facc15;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 22px;
    align-items: start;
}

.story-card,
.side-card {
    border-radius: 26px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.16);
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
}

.story-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 28px;
}

.story-card p,
.side-card p {
    margin: 0;
    color: #4b5563;
    line-height: 2;
    font-size: 16px;
}

.side-card {
    position: sticky;
    top: 108px;
    display: grid;
    gap: 12px;
}

.side-card a {
    border-radius: 14px;
    padding: 12px;
    background: #fff7d6;
    color: #92400e;
    font-weight: 900;
}

.prev-next {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 28px;
}

.prev-next a {
    flex: 1;
    border-radius: 18px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.18);
    color: #92400e;
    font-weight: 900;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 70px 96px minmax(0, 1fr) 110px;
    gap: 18px;
    align-items: center;
    border-radius: 24px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.16);
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.07);
}

.rank-number {
    color: #d97706;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.rank-thumb {
    position: relative;
    min-height: 120px;
    border-radius: 16px;
    overflow: hidden;
}

.rank-row h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.rank-row p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.7;
}

.heat-badge {
    justify-self: end;
    border-radius: 999px;
    padding: 10px 12px;
    background: #fff7d6;
    color: #92400e;
}

.site-footer {
    color: #ffffff;
    background: linear-gradient(90deg, #111827, #1f2937, #111827);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
    gap: 28px;
    padding: 54px 0;
}

.footer-brand {
    display: inline-flex;
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 900;
    color: #facc15;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.64);
    line-height: 1.8;
}

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

.site-footer a:not(.footer-brand) {
    display: block;
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.72);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px;
    text-align: center;
    color: rgba(255, 255, 255, 0.62);
}

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

@media (max-width: 1100px) {
    .hero-shell,
    .rank-layout,
    .article-layout {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

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

    .hero,
    .hero-shell {
        min-height: auto;
    }

    .hero-shell {
        grid-template-columns: 1fr;
        padding: 48px 0 96px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        position: relative;
        min-height: auto;
        display: none;
    }

    .hero-slide.active {
        display: grid;
    }

    .hero-poster {
        min-height: 260px;
        order: -1;
    }

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

    .detail-grid {
        align-items: start;
    }

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

    .filter-bar select {
        max-width: none;
    }

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

    .heat-badge {
        grid-column: 3;
        justify-self: start;
    }
}

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

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

    .brand-text small {
        display: none;
    }

    .hero-main h1 {
        font-size: 40px;
    }

    .hero-search {
        flex-direction: column;
    }

    .category-grid,
    .movie-grid,
    .large-grid,
    .mini-grid,
    .category-overview-grid,
    .detail-grid,
    .info-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        display: grid;
        align-items: start;
    }

    .detail-poster {
        min-height: 390px;
    }

    .rank-list a,
    .rank-row {
        grid-template-columns: 1fr;
    }

    .rank-list em,
    .rank-number {
        text-align: left;
    }

    .prev-next {
        flex-direction: column;
    }
}
