:root {
    --stone-950: #0c0a09;
    --stone-900: #1c1917;
    --stone-850: #231f1c;
    --stone-800: #292524;
    --stone-700: #44403c;
    --stone-600: #57534e;
    --stone-500: #78716c;
    --stone-300: #d6d3d1;
    --stone-200: #e7e5e4;
    --stone-100: #f5f5f4;
    --stone-50: #fafaf9;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --amber-100: #fef3c7;
    --white: #ffffff;
    --black: #000000;
    --shadow-soft: 0 20px 45px rgba(28, 25, 23, 0.14);
    --shadow-deep: 0 28px 90px rgba(0, 0, 0, 0.32);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--stone-900);
    background: linear-gradient(180deg, var(--stone-50) 0%, #ffffff 52%, #fff9ed 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(28, 25, 23, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 34px rgba(28, 25, 23, 0.12);
}

.header-inner {
    width: min(100% - 32px, var(--container));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.site-header.is-scrolled .site-logo {
    color: var(--stone-900);
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-400), var(--amber-700));
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.38);
}

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

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

.nav-link {
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    font-weight: 650;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-header.is-scrolled .nav-link {
    color: var(--stone-700);
}

.nav-link:hover,
.nav-link.active {
    color: var(--amber-400);
    transform: translateY(-1px);
}

.site-header.is-scrolled .nav-link:hover,
.site-header.is-scrolled .nav-link.active {
    color: var(--amber-700);
}

.site-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.site-header.is-scrolled .site-search {
    background: var(--stone-100);
    border-color: var(--stone-200);
}

.site-search input {
    width: 220px;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 8px 12px 8px 16px;
}

.site-header.is-scrolled .site-search input {
    color: var(--stone-900);
}

.site-search input::placeholder {
    color: rgba(255, 255, 255, 0.64);
}

.site-header.is-scrolled .site-search input::placeholder {
    color: var(--stone-500);
}

.site-search button,
.primary-btn,
.secondary-btn,
.outline-btn {
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.site-search button,
.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    box-shadow: 0 12px 26px rgba(217, 119, 6, 0.3);
}

.site-search button {
    padding: 8px 16px;
}

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

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

.outline-btn {
    color: var(--amber-700);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(217, 119, 6, 0.24);
}

.primary-btn:hover,
.secondary-btn:hover,
.outline-btn:hover,
.site-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(180, 83, 9, 0.28);
}

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

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

.site-header.is-scrolled .menu-toggle span {
    background: var(--stone-900);
}

.hero {
    position: relative;
    min-height: clamp(620px, 82vh, 880px);
    overflow: hidden;
    color: #ffffff;
    background: var(--stone-950);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
    transition: opacity 0.7s ease, transform 0.9s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(12, 10, 9, 0.92) 0%, rgba(12, 10, 9, 0.74) 44%, rgba(12, 10, 9, 0.22) 100%),
                linear-gradient(0deg, rgba(12, 10, 9, 0.86) 0%, rgba(12, 10, 9, 0.12) 52%, rgba(12, 10, 9, 0.55) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(100% - 32px, var(--container));
    min-height: clamp(620px, 82vh, 880px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: end;
    gap: 56px;
    padding: 130px 0 104px;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow,
.hero-pills,
.movie-meta,
.tag-row,
.category-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.eyebrow span,
.hero-pills span,
.tag-row span,
.category-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 750;
}

.eyebrow span,
.hero-pills span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 7px 12px;
    backdrop-filter: blur(10px);
}

.eyebrow span:first-child,
.hero-pills span:first-child {
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    border-color: transparent;
}

.hero h1 {
    margin: 18px 0 18px;
    max-width: 840px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.045em;
    text-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.hero-copy p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 22px);
}

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

.hero-poster-panel {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-deep);
    transform: translateY(18px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.hero-poster-panel::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 46%;
    background: linear-gradient(0deg, rgba(12, 10, 9, 0.76), transparent);
}

.hero-controls {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 32px;
    width: min(100% - 32px, var(--container));
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-dot {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hero-dot strong,
.hero-dot small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hero-dot strong {
    font-size: 14px;
}

.hero-dot small {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.hero-dot.is-active,
.hero-dot:hover {
    color: #ffffff;
    background: rgba(245, 158, 11, 0.72);
    transform: translateY(-2px);
}

.main-section,
.page-main {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

.main-section {
    padding: 72px 0 0;
}

.page-main {
    padding: 56px 0 80px;
}

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

.section-heading h2,
.page-title h1,
.detail-copy h1 {
    margin: 0;
    color: var(--stone-900);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-heading h2 {
    font-size: clamp(28px, 3vw, 42px);
}

.section-heading p,
.page-title p,
.detail-copy p,
.movie-card-body p,
.category-card p,
.rank-card p {
    color: var(--stone-600);
}

.section-heading p {
    max-width: 680px;
    margin: 8px 0 0;
}

.section-more {
    color: var(--amber-700);
    font-weight: 800;
    white-space: nowrap;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid rgba(214, 211, 209, 0.72);
    box-shadow: 0 8px 24px rgba(28, 25, 23, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: var(--shadow-soft);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--stone-800), var(--stone-950));
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.06);
    opacity: 0.82;
}

.play-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    background: rgba(245, 158, 11, 0.92);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

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

.movie-meta {
    color: var(--stone-500);
    font-size: 12px;
    font-weight: 750;
}

.movie-meta span:not(:last-child)::after {
    content: "•";
    margin-left: 8px;
    color: var(--stone-300);
}

.movie-card h3 {
    margin: 9px 0 8px;
    color: var(--stone-900);
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--amber-700);
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
}

.tag-row span,
.category-tags span {
    color: var(--amber-700);
    background: var(--amber-100);
    padding: 5px 9px;
}

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

.category-card {
    display: block;
    min-height: 172px;
    padding: 24px;
    border-radius: var(--radius-lg);
    color: var(--stone-900);
    background: linear-gradient(145deg, #ffffff, #fff8e6);
    border: 1px solid rgba(245, 158, 11, 0.18);
    box-shadow: 0 10px 24px rgba(28, 25, 23, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 24px;
}

.category-card p {
    margin: 0;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 54px 92px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(214, 211, 209, 0.72);
    box-shadow: 0 8px 22px rgba(28, 25, 23, 0.07);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-card:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 158, 11, 0.38);
}

.rank-num {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber-400), var(--amber-700));
}

.rank-card img {
    width: 92px;
    height: 122px;
    border-radius: 16px;
    object-fit: cover;
    background: var(--stone-800);
}

.rank-card h3 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.3;
}

.rank-card p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
}

.page-title {
    margin-bottom: 34px;
    padding: 36px;
    border-radius: var(--radius-xl);
    color: #ffffff;
    background: radial-gradient(circle at 10% 0%, rgba(251, 191, 36, 0.36), transparent 32%), linear-gradient(135deg, var(--stone-950), var(--stone-800));
    box-shadow: var(--shadow-soft);
}

.page-title h1 {
    color: #ffffff;
    font-size: clamp(34px, 4vw, 56px);
}

.page-title p {
    max-width: 760px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 17px;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 220px 220px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(214, 211, 209, 0.75);
    box-shadow: 0 8px 22px rgba(28, 25, 23, 0.07);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--stone-200);
    border-radius: 16px;
    outline: 0;
    color: var(--stone-900);
    background: var(--stone-50);
    padding: 0 16px;
}

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

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 42px;
}

.pagination a,
.pagination span {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 14px;
    color: var(--stone-700);
    background: #ffffff;
    border: 1px solid var(--stone-200);
    font-weight: 800;
}

.pagination .current,
.pagination a:hover {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
}

.detail-hero {
    position: relative;
    color: #ffffff;
    background: var(--stone-950);
    overflow: hidden;
}

.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(12px) saturate(1.1);
    transform: scale(1.08);
    opacity: 0.42;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(12, 10, 9, 0.95), rgba(12, 10, 9, 0.74), rgba(12, 10, 9, 0.4));
}

.detail-inner {
    position: relative;
    z-index: 1;
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 40px;
    align-items: end;
    padding: 88px 0 64px;
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-deep);
    background: var(--stone-800);
}

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

.detail-copy h1 {
    color: #ffffff;
    font-size: clamp(36px, 5vw, 68px);
}

.detail-copy p {
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.detail-actions {
    margin-top: 28px;
}

.watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 28px;
    align-items: start;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #000000;
    box-shadow: var(--shadow-soft);
}

.video-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #ffffff;
    border: 0;
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.24), rgba(0, 0, 0, 0.58));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    font-size: 34px;
    background: linear-gradient(135deg, var(--amber-400), var(--amber-700));
    box-shadow: 0 18px 40px rgba(245, 158, 11, 0.42);
}

.play-overlay strong {
    font-size: 18px;
}

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

.detail-panel,
.text-panel {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid rgba(214, 211, 209, 0.74);
    box-shadow: 0 8px 22px rgba(28, 25, 23, 0.07);
}

.detail-panel h2,
.text-panel h2 {
    margin: 0 0 14px;
    color: var(--stone-900);
    font-size: 24px;
}

.detail-panel p,
.text-panel p {
    margin: 0;
    color: var(--stone-700);
}

.info-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.info-list div {
    display: flex;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--stone-100);
}

.info-list dt {
    width: 64px;
    flex: 0 0 auto;
    color: var(--stone-500);
    font-weight: 800;
}

.info-list dd {
    margin: 0;
    color: var(--stone-900);
}

.text-stack {
    display: grid;
    gap: 22px;
    margin-top: 28px;
}

.no-results {
    display: none;
    padding: 32px;
    border-radius: 22px;
    color: var(--stone-600);
    background: #ffffff;
    border: 1px solid var(--stone-200);
    text-align: center;
}

.no-results.is-visible {
    display: block;
}

.site-footer {
    margin-top: 80px;
    color: rgba(255, 255, 255, 0.72);
    background: var(--stone-950);
}

.footer-inner {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 44px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

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

.footer-inner p {
    max-width: 620px;
    margin: 10px 0 0;
}

.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links a:hover {
    color: var(--amber-400);
}

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

    .hero-content {
        grid-template-columns: 1fr 280px;
        gap: 32px;
    }

    .site-search input {
        width: 180px;
    }
}

@media (max-width: 860px) {
    .menu-toggle {
        display: block;
    }

    .nav-wrap {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        padding: 18px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow-soft);
    }

    .nav-wrap.is-open {
        display: grid;
        gap: 16px;
    }

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

    .nav-link,
    .site-header.is-scrolled .nav-link {
        color: var(--stone-800);
    }

    .site-search {
        width: 100%;
        background: var(--stone-100);
        border-color: var(--stone-200);
    }

    .site-search input {
        width: 100%;
        color: var(--stone-900);
    }

    .site-search input::placeholder {
        color: var(--stone-500);
    }

    .hero-content {
        grid-template-columns: 1fr;
        align-items: center;
        padding: 118px 0 130px;
    }

    .hero-poster-panel {
        display: none;
    }

    .hero-controls {
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .hero-dot {
        min-width: 160px;
    }

    .movie-grid,
    .category-grid,
    .rank-list,
    .watch-layout,
    .detail-inner,
    .filter-panel {
        grid-template-columns: 1fr;
    }

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

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

    .footer-inner,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .header-inner {
        width: min(100% - 24px, var(--container));
        min-height: 66px;
    }

    .main-section,
    .page-main,
    .detail-inner,
    .hero-content,
    .footer-inner,
    .hero-controls {
        width: min(100% - 24px, var(--container));
    }

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

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

    .movie-card h3 {
        font-size: 15px;
    }

    .movie-card-body p,
    .tag-row {
        display: none;
    }

    .rank-card {
        grid-template-columns: 42px 72px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-card img {
        width: 72px;
        height: 98px;
    }

    .page-title {
        padding: 26px;
    }
}
