* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #0f172a, #1e293b 50%, #0f172a);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 20px;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.logo:hover {
    color: #f59e0b;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f59e0b;
    color: #ffffff;
    font-size: 14px;
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.32);
}

.top-search {
    width: min(480px, 46vw);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(51, 65, 85, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.top-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 9px 12px 9px 18px;
}

.top-search input::placeholder {
    color: #94a3b8;
}

.top-search button,
.primary-btn,
.secondary-btn,
.play-button {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.top-search button,
.primary-btn,
.play-button {
    color: #ffffff;
    background: #f59e0b;
    box-shadow: 0 14px 28px rgba(245, 158, 11, 0.28);
}

.top-search button {
    padding: 9px 18px;
    font-weight: 700;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 26px;
    font-weight: 800;
}

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

.primary-btn:hover,
.secondary-btn:hover,
.play-button:hover,
.top-search button:hover {
    transform: translateY(-2px);
}

.primary-btn:hover,
.play-button:hover,
.top-search button:hover {
    background: #d97706;
}

.mobile-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 26px;
    cursor: pointer;
}

.nav-bar {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-bar::-webkit-scrollbar {
    display: none;
}

.nav-bar a {
    padding: 8px 13px;
    border-radius: 10px;
    color: #cbd5e1;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.25s ease, color 0.25s ease;
}

.nav-bar a:hover,
.nav-bar a.active {
    color: #fbbf24;
    background: rgba(51, 65, 85, 0.85);
}

.nav-divider {
    width: 1px;
    height: 18px;
    flex: 0 0 auto;
    background: rgba(148, 163, 184, 0.25);
}

.hero-slider {
    position: relative;
    height: 600px;
    min-height: 520px;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    transition: opacity 0.85s ease, transform 1.1s ease;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.66) 48%, rgba(15, 23, 42, 0.12));
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 30%, rgba(245, 158, 11, 0.25), transparent 26%), linear-gradient(0deg, rgba(15, 23, 42, 0.88), transparent 52%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 70px 20px 96px;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(680px, 100%);
    animation: fadeIn 0.85s ease both;
}

.hero-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.hero-kicker span,
.section-label,
.meta-pill,
.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-kicker span,
.section-label {
    padding: 7px 12px;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.96);
}

.hero-copy h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 6vw, 68px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(28px, 5vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-copy p {
    margin: 0 0 18px;
    max-width: 660px;
    color: #e2e8f0;
    font-size: 18px;
    line-height: 1.78;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 28px;
    color: #dbeafe;
}

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

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

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

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

.main-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 44px 20px 10px;
}

.section {
    margin-bottom: 54px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.section-head h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    color: #0f172a;
    letter-spacing: -0.04em;
}

.section-head h2 {
    font-size: clamp(26px, 3vw, 36px);
}

.section-head p,
.page-title p {
    max-width: 760px;
    margin: 8px 0 0;
    color: #64748b;
    line-height: 1.75;
}

.section-link {
    color: #d97706;
    font-weight: 800;
    white-space: nowrap;
}

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

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.10);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 55px rgba(15, 23, 42, 0.18);
}

.movie-thumb {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #0f172a;
}

.movie-card.wide .movie-thumb,
.feature-main .movie-thumb {
    aspect-ratio: 16 / 9;
}

.movie-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.movie-card:hover img,
.feature-main:hover img,
.compact-card:hover img,
.category-card:hover img {
    transform: scale(1.08);
}

.thumb-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 55%);
    opacity: 0.86;
}

.year-badge,
.rank-badge,
.play-chip,
.compact-rank {
    position: absolute;
    z-index: 2;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    border-radius: 999px;
}

.year-badge {
    top: 12px;
    right: 12px;
    padding: 6px 9px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(10px);
}

.rank-badge {
    top: 12px;
    left: 12px;
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f59e0b;
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.32);
}

.play-chip {
    left: 12px;
    bottom: 12px;
    padding: 7px 12px;
    background: rgba(245, 158, 11, 0.95);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-card-body h3 {
    min-height: 48px;
    margin: 0 0 8px;
    color: #1e293b;
    font-size: 17px;
    line-height: 1.42;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card:hover h3 {
    color: #d97706;
}

.movie-meta,
.movie-genre,
.movie-line,
.movie-tags {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

.movie-line {
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-tags {
    margin-top: 9px;
    color: #d97706;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scroller {
    overflow-x: auto;
    scrollbar-width: none;
}

.scroller::-webkit-scrollbar {
    display: none;
}

.scroll-row {
    display: flex;
    gap: 16px;
    padding: 2px 0 16px;
}

.scroll-row .movie-card {
    width: 210px;
    flex: 0 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 22px;
}

.feature-main,
.feature-side {
    display: block;
    overflow: hidden;
    border-radius: 24px;
    color: #ffffff;
    background: #0f172a;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.20);
}

.feature-main {
    position: relative;
}

.feature-main .movie-thumb {
    height: 100%;
    min-height: 420px;
}

.feature-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 28px;
}

.feature-copy h3 {
    margin: 0 0 10px;
    font-size: clamp(24px, 3vw, 38px);
}

.feature-copy p {
    margin: 0;
    color: #e2e8f0;
    line-height: 1.7;
}

.feature-list {
    display: grid;
    gap: 16px;
}

.feature-side {
    display: grid;
    grid-template-columns: 128px 1fr;
    min-height: 132px;
}

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

.feature-side div {
    padding: 16px;
}

.feature-side h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.feature-side p {
    margin: 0;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.6;
}

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

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 24px;
    color: #ffffff;
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.15);
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.24));
}

.category-card > div {
    position: relative;
    z-index: 2;
    width: 68%;
    padding: 28px;
}

.category-card h3 {
    margin: 8px 0 10px;
    font-size: 28px;
}

.category-card p {
    margin: 0;
    color: #e2e8f0;
    line-height: 1.7;
}

.category-index {
    color: #fbbf24;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.category-card img {
    position: absolute;
    inset: 0 0 0 auto;
    width: 56%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.gradient-1 {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.gradient-2 {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.gradient-3 {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
}

.gradient-4 {
    background: linear-gradient(135deg, #059669, #84cc16);
}

.gradient-5 {
    background: linear-gradient(135deg, #334155, #0f172a);
}

.dark-panel {
    margin: 54px 0;
    padding: 34px;
    border-radius: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
}

.dark-panel .section-head h2,
.dark-panel .section-head p {
    color: #ffffff;
}

.dark-panel .section-head p {
    color: #cbd5e1;
}

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

.compact-card {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 16px;
    background: #0f172a;
}

.compact-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.compact-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.90), transparent 58%);
}

.compact-card span:not(.compact-rank) {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
}

.compact-rank {
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f59e0b;
}

.page-hero {
    color: #ffffff;
    background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.28), transparent 26%), linear-gradient(135deg, #0f172a, #1e293b);
}

.page-title {
    max-width: 1280px;
    margin: 0 auto;
    padding: 62px 20px;
}

.page-title h1 {
    color: #ffffff;
    font-size: clamp(36px, 5vw, 64px);
}

.page-title p {
    color: #dbeafe;
    font-size: 18px;
}

.filter-panel {
    margin-bottom: 24px;
    padding: 18px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.filter-panel input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 14px 18px;
    outline: 0;
}

.filter-panel input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 64px 130px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.12);
}

.rank-num {
    color: #f59e0b;
    font-size: 26px;
    font-weight: 900;
    text-align: center;
}

.rank-row img {
    width: 130px;
    height: 78px;
    border-radius: 14px;
    object-fit: cover;
}

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

.rank-row p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.rank-action {
    padding: 10px 18px;
    border-radius: 999px;
    color: #ffffff;
    background: #f59e0b;
    font-weight: 800;
    white-space: nowrap;
}

.detail-hero {
    position: relative;
    min-height: 520px;
    color: #ffffff;
    background-size: cover;
    background-position: center;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.70) 45%, rgba(15, 23, 42, 0.22)), linear-gradient(0deg, rgba(15, 23, 42, 0.88), transparent 64%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 58px 20px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 34px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

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

.breadcrumb a:hover {
    color: #fbbf24;
}

.detail-title h1 {
    color: #ffffff;
    font-size: clamp(34px, 5vw, 66px);
    line-height: 1.02;
}

.detail-title p {
    max-width: 790px;
    margin: 18px 0 0;
    color: #e2e8f0;
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.meta-pill,
.tag-pill {
    padding: 8px 12px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

.video-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.movie-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #020617;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.12));
    cursor: pointer;
    z-index: 3;
}

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

.play-button {
    width: 94px;
    height: 94px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    align-items: start;
}

.article-card,
.side-card {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.article-card {
    padding: 30px;
}

.article-card h2,
.side-card h2 {
    margin: 0 0 16px;
    color: #0f172a;
    font-size: 25px;
}

.article-card p {
    color: #334155;
    font-size: 17px;
    line-height: 1.95;
}

.side-card {
    padding: 18px;
}

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

.side-item {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;
    align-items: center;
}

.side-item img {
    width: 92px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

.side-item h3 {
    margin: 0 0 5px;
    color: #1e293b;
    font-size: 14px;
    line-height: 1.42;
}

.side-item p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag-cloud span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #d97706;
    background: #fffbeb;
    font-size: 13px;
    font-weight: 800;
}

.site-footer {
    margin-top: 66px;
    color: #cbd5e1;
    background: linear-gradient(90deg, #0f172a, #1e293b 50%, #0f172a);
}

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

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

.footer-brand p {
    max-width: 440px;
    color: #94a3b8;
    line-height: 1.8;
}

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

.footer-links div {
    display: grid;
    gap: 9px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding: 18px 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

.hidden-by-filter {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .detail-content,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .detail-hero-inner {
        grid-template-columns: 240px 1fr;
    }
}

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

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

    .nav-bar {
        display: none;
        padding: 10px 20px 16px;
        flex-direction: column;
        align-items: stretch;
        border-top: 1px solid rgba(148, 163, 184, 0.18);
    }

    .site-header.nav-open .nav-bar {
        display: flex;
    }

    .nav-divider {
        display: none;
    }

    .hero-slider {
        height: 570px;
    }

    .hero-content {
        align-items: end;
        padding-bottom: 88px;
    }

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

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

    .category-card > div {
        width: 78%;
    }

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

    .rank-row {
        grid-template-columns: 48px 100px 1fr;
    }

    .rank-action {
        grid-column: 2 / 4;
        text-align: center;
    }

    .detail-hero-inner {
        grid-template-columns: 1fr;
        padding-top: 36px;
    }

    .detail-poster {
        width: min(260px, 72vw);
    }

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

@media (max-width: 520px) {
    .header-inner {
        padding: 12px 16px;
    }

    .logo {
        font-size: 20px;
    }

    .hero-slider {
        height: 540px;
        min-height: 500px;
    }

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

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .main-wrap {
        padding: 34px 14px 10px;
    }

    .section-head {
        display: block;
    }

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

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

    .movie-card-body h3 {
        font-size: 15px;
        min-height: 43px;
    }

    .movie-line,
    .movie-tags {
        display: none;
    }

    .scroll-row .movie-card {
        width: 170px;
    }

    .dark-panel {
        padding: 20px;
        border-radius: 22px;
    }

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

    .rank-row {
        grid-template-columns: 44px 86px 1fr;
        gap: 10px;
        padding: 10px;
    }

    .rank-row img {
        width: 86px;
        height: 58px;
    }

    .rank-row h2 {
        font-size: 16px;
    }

    .rank-row p {
        display: none;
    }

    .article-card {
        padding: 20px;
    }

    .article-card p {
        font-size: 16px;
    }

    .play-button {
        width: 74px;
        height: 74px;
    }
}
