* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    color: #f8fafc;
    background: #0f172a;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.94);
    border-bottom: 1px solid rgba(51, 65, 85, 0.9);
    backdrop-filter: blur(12px);
}

.nav-shell {
    max-width: 1280px;
    height: 64px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #0f172a;
    font-weight: 800;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 10px 28px rgba(251, 191, 36, 0.28);
}

.brand-text {
    color: #ffffff;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.02em;
}

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

.nav-link {
    color: #cbd5e1;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fbbf24;
}

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

.nav-search input,
.mobile-panel input,
.filter-inputs input,
.filter-inputs select,
.search-band input {
    color: #ffffff;
    background: rgba(30, 41, 59, 0.88);
    border: 1px solid #334155;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
    width: 210px;
    padding: 10px 12px;
}

.nav-search input:focus,
.mobile-panel input:focus,
.filter-inputs input:focus,
.filter-inputs select:focus,
.search-band input:focus {
    border-color: #fbbf24;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.08);
}

.nav-search button,
.mobile-panel button,
.search-band button {
    cursor: pointer;
    color: #0f172a;
    font-weight: 700;
    background: #fbbf24;
    border: 0;
    border-radius: 12px;
    padding: 10px 14px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-search button:hover,
.mobile-panel button:hover,
.search-band button:hover {
    background: #fcd34d;
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-panel {
    border-top: 1px solid #1e293b;
    padding: 16px 24px 22px;
    background: #0f172a;
}

.mobile-panel form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-bottom: 14px;
}

.mobile-panel input {
    min-width: 0;
    padding: 12px;
}

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

.mobile-panel a {
    color: #cbd5e1;
}

.hero-carousel {
    position: relative;
    min-height: 590px;
    padding-top: 64px;
    overflow: hidden;
    background: #0f172a;
}

.hero-track {
    position: relative;
    min-height: 590px;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    min-height: 590px;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.9s ease;
}

.hero-slide.is-active img {
    transform: scale(1.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 28%, rgba(251, 191, 36, 0.22), transparent 26%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.74) 42%, rgba(15, 23, 42, 0.18) 100%),
        linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.18) 40%, rgba(15, 23, 42, 0.16) 100%);
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    right: 24px;
    bottom: 92px;
    max-width: 760px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    margin-bottom: 18px;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.26);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.hero-content h1,
.hero-content h2 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 660px;
    margin: 0 0 22px;
    color: #cbd5e1;
    font-size: 19px;
    line-height: 1.8;
}

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

.hero-tags span,
.detail-tags span,
.inline-tags span {
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.78);
    border: 1px solid rgba(71, 85, 105, 0.82);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 13px;
}

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

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

.primary-btn {
    color: #0f172a;
    background: #fbbf24;
    padding: 13px 20px;
}

.primary-btn:hover {
    background: #fcd34d;
    transform: translateY(-2px) scale(1.02);
}

.ghost-btn {
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.48);
    border: 1px solid rgba(226, 232, 240, 0.18);
    padding: 12px 18px;
}

.ghost-btn:hover {
    border-color: rgba(251, 191, 36, 0.55);
    color: #fbbf24;
    transform: translateY(-2px);
}

.hero-controls {
    position: absolute;
    right: max(24px, calc((100vw - 1280px) / 2 + 24px));
    bottom: 42px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 5;
}

.hero-controls button {
    cursor: pointer;
    border: 0;
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(226, 232, 240, 0.15);
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
}

.hero-controls > button:hover {
    color: #0f172a;
    background: #fbbf24;
}

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

.hero-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.32);
}

.hero-dots button.is-active {
    width: 28px;
    background: #fbbf24;
}

.search-band {
    max-width: 1280px;
    margin: -34px auto 72px;
    position: relative;
    z-index: 6;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 26px;
    align-items: center;
    padding: 28px;
    border: 1px solid rgba(71, 85, 105, 0.8);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.search-band h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.search-band p {
    margin: 0;
    color: #94a3b8;
    line-height: 1.8;
}

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

.search-band input {
    min-width: 0;
    padding: 14px;
}

.content-section,
.page-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.content-section {
    margin-bottom: 76px;
}

.dark-panel {
    padding-top: 32px;
    padding-bottom: 32px;
    border: 1px solid rgba(71, 85, 105, 0.55);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.62), rgba(15, 23, 42, 0.86));
}

.section-header,
.category-overview-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 26px;
}

.section-header h2,
.category-overview h2,
.watch-section h2,
.detail-content h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.18;
}

.section-header p,
.category-overview p {
    margin: 0;
    color: #94a3b8;
    line-height: 1.7;
}

.section-link {
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.22);
    background: rgba(251, 191, 36, 0.08);
    padding: 10px 14px;
    white-space: nowrap;
}

.section-link:hover {
    color: #0f172a;
    background: #fbbf24;
}

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

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

.movie-card a {
    display: block;
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    margin-bottom: 12px;
    border-radius: 18px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

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

.movie-card:hover .poster-frame img {
    transform: scale(1.09);
    filter: saturate(1.12);
}

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

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

.poster-year {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.72);
    border-radius: 10px;
    padding: 4px 8px;
    font-size: 12px;
}

.poster-brief {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.55;
    transform: translateY(16px);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card:hover .poster-brief {
    opacity: 1;
    transform: translateY(0);
}

.movie-card strong {
    display: -webkit-box;
    min-height: 44px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.movie-card:hover strong {
    color: #fbbf24;
}

.movie-card small,
.rail-card small,
.list-card small {
    display: block;
    margin-top: 5px;
    color: #94a3b8;
    font-size: 13px;
}

.rail-row {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
}

.rail-row::-webkit-scrollbar {
    display: none;
}

.rail-card {
    width: 310px;
    flex: 0 0 auto;
}

.rail-card a {
    display: block;
    position: relative;
}

.rail-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 18px;
    background: #1e293b;
    transition: transform 0.35s ease;
}

.rail-card:hover img {
    transform: scale(1.04);
}

.rail-play {
    position: absolute;
    left: 50%;
    top: 44%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    background: rgba(251, 191, 36, 0.92);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rail-card strong {
    display: block;
    margin-top: 10px;
    color: #ffffff;
    line-height: 1.45;
}

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

.category-tile a {
    display: block;
    height: 100%;
    padding: 18px;
    border: 1px solid rgba(71, 85, 105, 0.74);
    border-radius: 22px;
    background: rgba(30, 41, 59, 0.56);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.category-tile a:hover {
    transform: translateY(-4px);
    border-color: rgba(251, 191, 36, 0.44);
    background: rgba(30, 41, 59, 0.86);
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-bottom: 15px;
}

.category-covers img {
    aspect-ratio: 3 / 4;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    background: #0f172a;
}

.category-tile strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    color: #ffffff;
}

.category-tile span:last-child {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.65;
}

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

.ranking-list {
    margin-bottom: 78px;
}

.list-card a {
    display: grid;
    grid-template-columns: auto 112px 1fr;
    gap: 16px;
    align-items: center;
    min-height: 150px;
    padding: 14px;
    border: 1px solid rgba(71, 85, 105, 0.6);
    border-radius: 22px;
    background: rgba(30, 41, 59, 0.56);
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.list-card a:hover {
    transform: translateY(-3px);
    border-color: rgba(251, 191, 36, 0.38);
    background: rgba(30, 41, 59, 0.92);
}

.rank-no {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    background: #fbbf24;
    border-radius: 13px;
    font-weight: 900;
}

.list-card img {
    width: 112px;
    height: 126px;
    object-fit: cover;
    border-radius: 16px;
    background: #0f172a;
}

.list-body {
    min-width: 0;
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.meta-line em {
    color: #fbbf24;
    font-style: normal;
    font-size: 13px;
}

.list-card strong {
    display: block;
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 8px;
}

.list-card span:not(.rank-no):not(.list-body):not(.inline-tags):not(.meta-line) {
    color: #94a3b8;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.inline-tags {
    margin-top: 10px;
}

.page-main {
    padding-top: 104px;
}

.small-hero {
    padding: 48px;
    margin-bottom: 42px;
    border: 1px solid rgba(71, 85, 105, 0.72);
    border-radius: 28px;
    background:
        radial-gradient(circle at 12% 22%, rgba(251, 191, 36, 0.16), transparent 32%),
        linear-gradient(135deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.9));
}

.small-hero span {
    display: inline-block;
    margin-bottom: 12px;
    color: #fbbf24;
    font-weight: 800;
}

.small-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: -0.035em;
}

.small-hero p {
    max-width: 800px;
    margin: 0;
    color: #cbd5e1;
    line-height: 1.8;
    font-size: 18px;
}

.category-overview {
    margin-bottom: 54px;
    padding: 28px;
    border: 1px solid rgba(71, 85, 105, 0.54);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.46);
}

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

.filter-inputs {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 12px;
    margin-bottom: 16px;
}

.filter-inputs input,
.filter-inputs select {
    padding: 14px;
}

.filter-status {
    min-height: 24px;
    margin-bottom: 24px;
    color: #94a3b8;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: #94a3b8;
    font-size: 14px;
}

.breadcrumb a {
    color: #fbbf24;
}

.detail-hero {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 34px;
    align-items: center;
    margin-bottom: 48px;
    padding: 28px;
    border: 1px solid rgba(71, 85, 105, 0.72);
    border-radius: 28px;
    background:
        radial-gradient(circle at 12% 12%, rgba(251, 191, 36, 0.14), transparent 28%),
        linear-gradient(135deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.92));
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 24px;
    background: #1e293b;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.detail-kicker {
    display: inline-flex;
    color: #fbbf24;
    margin-bottom: 16px;
    font-weight: 800;
}

.detail-info h1 {
    margin: 0 0 18px;
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.13;
    letter-spacing: -0.035em;
}

.detail-info p {
    margin: 0 0 18px;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

.detail-info .primary-btn {
    margin-top: 24px;
}

.watch-section {
    margin-bottom: 44px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(71, 85, 105, 0.74);
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #ffffff;
    cursor: pointer;
    border: 0;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.1), rgba(2, 6, 23, 0.76));
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 3;
}

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

.big-play {
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    background: #fbbf24;
    border-radius: 50%;
    font-size: 32px;
    box-shadow: 0 16px 40px rgba(251, 191, 36, 0.35);
}

.detail-content {
    padding: 34px;
    margin-bottom: 54px;
    border: 1px solid rgba(71, 85, 105, 0.62);
    border-radius: 28px;
    background: rgba(30, 41, 59, 0.45);
}

.detail-content p {
    margin: 0 0 28px;
    color: #cbd5e1;
    line-height: 2;
    font-size: 17px;
}

.detail-nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.detail-nav-links a {
    display: block;
    padding: 14px 16px;
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: 16px;
    background: rgba(251, 191, 36, 0.06);
}

.related-section {
    padding: 0;
}

.site-footer {
    margin-top: 84px;
    border-top: 1px solid #1e293b;
    background: #0b1220;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 46px 24px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    margin-bottom: 14px;
}

.site-footer p {
    max-width: 520px;
    margin: 0;
    color: #94a3b8;
    line-height: 1.75;
}

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

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

.footer-links a {
    color: #94a3b8;
    font-size: 14px;
}

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

.footer-bottom {
    padding: 20px 24px;
    color: #64748b;
    text-align: center;
    border-top: 1px solid #1e293b;
}

@media (max-width: 1180px) {
    .desktop-nav {
        gap: 12px;
    }

    .nav-link {
        font-size: 14px;
    }

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

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

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

    .mobile-toggle {
        display: block;
    }

    .search-band,
    .detail-hero,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .detail-poster {
        max-width: 360px;
    }
}

@media (max-width: 680px) {
    .nav-shell {
        padding: 0 16px;
    }

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

    .hero-carousel,
    .hero-track,
    .hero-slide img {
        min-height: 560px;
    }

    .hero-content {
        left: 18px;
        right: 18px;
        bottom: 108px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-controls {
        left: 18px;
        right: auto;
        bottom: 36px;
    }

    .search-band,
    .content-section,
    .page-main {
        padding-left: 16px;
        padding-right: 16px;
    }

    .search-band {
        margin-left: 16px;
        margin-right: 16px;
        padding: 20px;
    }

    .search-band form,
    .filter-inputs,
    .detail-nav-links {
        grid-template-columns: 1fr;
    }

    .section-header,
    .category-overview-head {
        display: block;
    }

    .section-link {
        margin-top: 14px;
    }

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

    .ranking-grid,
    .ranking-list {
        grid-template-columns: 1fr;
    }

    .list-card a {
        grid-template-columns: auto 86px 1fr;
        gap: 12px;
    }

    .list-card img {
        width: 86px;
        height: 110px;
    }

    .small-hero,
    .category-overview,
    .detail-hero,
    .detail-content {
        padding: 22px;
        border-radius: 22px;
    }

    .detail-hero {
        gap: 22px;
    }

    .footer-grid {
        padding: 36px 16px;
    }
}

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

    .poster-frame {
        border-radius: 14px;
    }

    .movie-card strong {
        font-size: 14px;
    }

    .hero-actions {
        display: grid;
    }
}
