:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --cyan-700: #0e7490;
    --cyan-600: #0891b2;
    --cyan-500: #06b6d4;
    --blue-700: #1d4ed8;
    --blue-600: #2563eb;
    --orange-500: #f97316;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-strong: 0 24px 70px rgba(15, 23, 42, 0.24);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    color: var(--slate-800);
    background: linear-gradient(180deg, var(--slate-50) 0%, var(--slate-100) 100%);
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(100% - 32px, 1280px);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.96), rgba(8, 145, 178, 0.96));
    color: var(--white);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(14px);
}

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

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

.brand-text {
    font-size: clamp(19px, 2vw, 26px);
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--cyan-600);
    background: var(--white);
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.2);
    font-size: 15px;
}

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

.nav-link {
    font-weight: 650;
    opacity: 0.92;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #dff9ff;
    opacity: 1;
}

.mobile-toggle {
    display: none;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

.mobile-menu {
    display: none;
    width: min(100% - 32px, 1280px);
    margin: 0 auto;
    padding: 0 0 16px;
}

.mobile-menu.open {
    display: grid;
    gap: 10px;
}

.mobile-link {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 650;
}

.hero-carousel {
    position: relative;
    min-height: 520px;
    height: 64vh;
    overflow: hidden;
    color: var(--white);
    background: var(--slate-900);
}

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

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

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 20%, rgba(6, 182, 212, 0.35), transparent 30%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.62) 46%, rgba(2, 6, 23, 0.1) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 42%);
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
    padding-top: 24px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: max-content;
    max-width: 100%;
    padding: 7px 13px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(8, 145, 178, 0.92);
    font-size: 14px;
    font-weight: 750;
}

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

.hero-copy p {
    margin: 0;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(16px, 1.6vw, 20px);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.primary-button,
.ghost-button,
.section-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 12px;
    font-weight: 750;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: var(--white);
    background: linear-gradient(90deg, var(--cyan-600), var(--blue-600));
    box-shadow: 0 18px 36px rgba(8, 145, 178, 0.3);
}

.primary-button:hover,
.ghost-button:hover,
.section-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.ghost-button {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.block-button {
    width: 100%;
    margin-top: 16px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(2, 6, 23, 0.38);
    transform: translateY(-50%);
    font-size: 36px;
    line-height: 1;
    backdrop-filter: blur(8px);
}

.hero-arrow:hover {
    background: rgba(2, 6, 23, 0.62);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 24px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

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

.hero-dots button.active {
    width: 34px;
    background: var(--white);
}

.search-panel {
    margin-top: 28px;
    padding: 22px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

.search-box {
    display: flex;
    gap: 12px;
}

.search-box input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    outline: none;
    background: var(--white);
}

.search-box input:focus {
    border-color: var(--cyan-500);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.search-box button,
.filter-chip {
    border: 0;
    border-radius: 12px;
    font-weight: 750;
}

.search-box button {
    min-width: 92px;
    color: var(--white);
    background: linear-gradient(90deg, var(--cyan-600), var(--blue-600));
}

.quick-links,
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.quick-links a,
.filter-chip {
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--slate-700);
    background: var(--slate-100);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.quick-links a:hover,
.filter-chip:hover,
.filter-chip.active {
    color: var(--white);
    background: linear-gradient(90deg, var(--cyan-600), var(--blue-600));
    transform: translateY(-1px);
}

.page-section {
    margin-top: 64px;
}

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

.section-head h2 {
    margin: 0;
    color: var(--slate-800);
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.04em;
}

.section-head p {
    margin: 8px 0 0;
    color: var(--slate-500);
    line-height: 1.7;
}

.section-action {
    flex: 0 0 auto;
    color: var(--cyan-700);
    background: var(--white);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.1);
}

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

.movie-card {
    min-width: 0;
}

.movie-card[hidden],
.rank-row[hidden] {
    display: none;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

.movie-card-link:hover .poster-img,
.special-card:hover img,
.category-card:hover img,
.related-card:hover img {
    transform: scale(1.08);
}

.image-missing {
    opacity: 0;
}

.year-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 8px;
    border-radius: 8px;
    color: var(--white);
    background: rgba(2, 6, 23, 0.64);
    font-size: 12px;
    font-weight: 750;
    backdrop-filter: blur(6px);
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--cyan-600);
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.78);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-card-body h3 {
    min-height: 44px;
    margin: 0 0 8px;
    color: var(--slate-800);
    font-size: 16px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-line {
    min-height: 42px;
    margin: 0 0 12px;
    color: var(--slate-600);
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--slate-500);
    font-size: 12px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag-row span {
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--slate-600);
    background: var(--slate-100);
    font-size: 12px;
}

.slider-section {
    position: relative;
}

.slider-tools {
    position: absolute;
    right: 0;
    top: 4px;
    display: flex;
    gap: 10px;
}

.slider-tools button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    color: var(--slate-700);
    background: var(--white);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
    font-size: 26px;
}

.movie-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 280px);
    gap: 24px;
    overflow-x: auto;
    padding: 6px 2px 22px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.movie-slider::-webkit-scrollbar {
    display: none;
}

.category-band {
    padding: 36px;
    border-radius: 24px;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

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

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    padding: 22px;
    border-radius: 18px;
    color: var(--white);
    background: var(--slate-900);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
}

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

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.22));
}

.category-card span,
.category-card p {
    position: relative;
    z-index: 1;
}

.category-card span {
    display: block;
    margin-top: 72px;
    font-size: 23px;
    font-weight: 850;
}

.category-card p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
}

.latest-list {
    display: grid;
    gap: 14px;
    padding: 22px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.latest-item,
.rank-row {
    display: grid;
    align-items: center;
    gap: 16px;
    border-radius: 14px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.latest-item {
    grid-template-columns: 46px 96px minmax(0, 1fr) auto;
    padding: 12px;
}

.latest-item:hover,
.rank-row:hover {
    background: var(--slate-50);
    transform: translateX(4px);
}

.latest-no,
.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 850;
    color: var(--cyan-700);
    background: #e0f7ff;
}

.latest-no {
    width: 40px;
    height: 40px;
}

.latest-item img {
    width: 96px;
    height: 58px;
    object-fit: cover;
    border-radius: 10px;
}

.latest-title {
    min-width: 0;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.latest-meta {
    color: var(--slate-500);
    font-size: 13px;
}

.special-block {
    margin-bottom: 70px;
    padding: 34px;
    border-radius: 24px;
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-800), var(--slate-950));
}

.special-block .section-head h2,
.special-block .section-head p {
    color: var(--white);
}

.special-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 18px;
}

.special-card {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--slate-900);
}

.special-card:first-child {
    grid-row: span 2;
}

.special-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
    transition: transform 0.45s ease;
}

.special-card div {
    position: absolute;
    inset: auto 0 0;
    padding: 22px;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent);
}

.special-card span {
    color: var(--cyan-500);
    font-weight: 800;
    font-size: 13px;
}

.special-card h3 {
    margin: 8px 0;
    font-size: 22px;
}

.special-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sub-hero {
    padding: 78px 0 72px;
    color: var(--white);
    background:
        radial-gradient(circle at 78% 18%, rgba(6, 182, 212, 0.45), transparent 28%),
        linear-gradient(135deg, var(--slate-900), var(--blue-700));
}

.sub-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 4vw, 54px);
    letter-spacing: -0.04em;
}

.sub-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.8;
}

.page-search {
    margin-top: -32px;
}

.empty-state {
    margin-top: 24px;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    color: var(--slate-500);
    background: var(--white);
    box-shadow: var(--shadow);
}

.rank-list {
    display: grid;
    gap: 12px;
    padding: 20px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.rank-row {
    grid-template-columns: 58px 82px minmax(0, 1fr) auto;
    padding: 10px 14px;
}

.rank-number {
    width: 42px;
    height: 42px;
}

.rank-row img {
    width: 82px;
    height: 106px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.rank-main {
    min-width: 0;
}

.rank-main strong {
    display: block;
    margin-bottom: 6px;
    color: var(--slate-800);
    font-size: 17px;
}

.rank-main em {
    display: -webkit-box;
    color: var(--slate-500);
    font-style: normal;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-meta {
    color: var(--slate-500);
    font-size: 13px;
    white-space: nowrap;
}

.detail-page {
    padding: 36px 0 76px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 0.85fr);
    gap: 28px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--slate-500);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--cyan-700);
}

.player-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    background: #000;
    box-shadow: var(--shadow-strong);
}

.player-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.player-start {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    color: var(--cyan-600);
    background: rgba(255, 255, 255, 0.93);
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.player-start span {
    margin-left: 5px;
    font-size: 34px;
}

.player-start:hover {
    transform: translate(-50%, -50%) scale(1.06);
}

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

.detail-card,
.side-card {
    margin-top: 22px;
    padding: 26px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.detail-card h1 {
    margin: 0 0 16px;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.04em;
}

.detail-card h2,
.side-card h2 {
    margin: 28px 0 12px;
    color: var(--slate-800);
    font-size: 21px;
}

.side-card h2 {
    margin-top: 0;
}

.detail-card p {
    margin: 0;
    color: var(--slate-600);
    line-height: 1.9;
    font-size: 16px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.detail-meta span {
    padding: 7px 10px;
    border-radius: 10px;
    color: var(--slate-600);
    background: var(--slate-100);
    font-size: 13px;
    font-weight: 700;
}

.detail-tags {
    margin-bottom: 10px;
}

.detail-side {
    align-self: start;
    position: sticky;
    top: 92px;
}

.poster-card img {
    width: 100%;
    border-radius: 16px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

.related-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 13px;
    transition: background 0.2s ease;
}

.related-card:hover {
    background: var(--slate-50);
}

.related-card img {
    grid-row: span 2;
    width: 74px;
    height: 104px;
    border-radius: 10px;
    object-fit: cover;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
    transition: transform 0.35s ease;
}

.related-card span {
    min-width: 0;
    color: var(--slate-800);
    font-weight: 800;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card em {
    color: var(--slate-500);
    font-size: 12px;
    font-style: normal;
}

.site-footer {
    color: var(--white);
    background: linear-gradient(180deg, var(--slate-800), var(--slate-950));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 34px;
    padding: 48px 0;
}

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

.site-footer h2 {
    margin: 0 0 16px;
    color: var(--cyan-500);
    font-size: 18px;
}

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

.site-footer a {
    display: block;
    margin: 9px 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.site-footer a:hover {
    color: var(--cyan-500);
}

.footer-bottom {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: rgba(255, 255, 255, 0.58);
    font-size: 14px;
}

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

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

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

    .detail-side {
        position: static;
    }

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

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

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

    .hero-carousel {
        min-height: 560px;
        height: auto;
    }

    .hero-slide {
        position: absolute;
    }

    .hero-copy {
        padding: 84px 0 88px;
    }

    .hero-arrow {
        display: none;
    }

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

    .search-box button {
        height: 46px;
    }

    .section-head {
        align-items: start;
        flex-direction: column;
    }

    .slider-tools {
        position: static;
        margin-bottom: 14px;
    }

    .movie-grid,
    .category-grid,
    .category-grid-large,
    .special-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .category-band,
    .special-block {
        padding: 22px;
    }

    .latest-item {
        grid-template-columns: 40px 76px minmax(0, 1fr);
    }

    .latest-meta {
        grid-column: 3;
    }

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

    .rank-meta {
        grid-column: 3;
        white-space: normal;
    }
}

@media (max-width: 520px) {
    .container,
    .nav-shell,
    .mobile-menu {
        width: min(100% - 22px, 1280px);
    }

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

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 34px;
    }

    .movie-grid,
    .category-grid,
    .category-grid-large,
    .special-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .movie-slider {
        grid-auto-columns: minmax(220px, 78vw);
    }

    .detail-card,
    .side-card {
        padding: 20px;
    }

    .player-start {
        width: 68px;
        height: 68px;
    }

    .player-start span {
        font-size: 28px;
    }
}
