:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --primary: #059669;
    --primary-dark: #047857;
    --secondary: #0891b2;
    --accent: #f59e0b;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, rgba(16, 185, 129, 0.14), transparent 28rem),
        radial-gradient(circle at 90% 8%, rgba(8, 145, 178, 0.15), transparent 30rem),
        linear-gradient(180deg, #f8fafc 0%, #eef7f4 44%, #f8fafc 100%);
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
}

.header-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 12px 28px rgba(5, 150, 105, 0.28);
    font-size: 15px;
}

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

.desktop-nav a,
.mobile-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #334155;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    background: rgba(5, 150, 105, 0.12);
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.header-search {
    width: min(320px, 30vw);
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.header-search input,
.mobile-nav input,
.big-search input,
.tool-row input {
    border: 0;
    outline: 0;
    min-width: 0;
    background: transparent;
    color: var(--text);
}

.header-search input {
    flex: 1;
    padding: 11px 0 11px 16px;
}

.header-search button,
.mobile-nav button,
.big-search button {
    border: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-weight: 800;
    padding: 11px 18px;
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 22px;
}

.mobile-nav {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

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

.mobile-nav form {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
}

.mobile-nav input {
    flex: 1;
    padding: 12px 16px;
}

.hero-slider {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease, transform 0.65s ease;
    background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.54), rgba(2, 6, 23, 0.84)), var(--hero-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.14), rgba(2, 6, 23, 0.72)),
        radial-gradient(circle at 74% 36%, rgba(16, 185, 129, 0.25), transparent 24rem);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    min-height: 70vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center;
    gap: 54px;
    padding: 80px 0;
    color: #fff;
}

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

.hero-kicker,
.section-heading span,
.page-hero span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #10b981;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 18px 0 18px;
    font-size: clamp(40px, 7vw, 78px);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.hero-copy p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.9;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 800;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 18px 42px rgba(5, 150, 105, 0.3);
}

.btn.glass {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-poster {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
    aspect-ratio: 2 / 3;
    transform: rotate(2deg);
    background: linear-gradient(135deg, #0f172a, #064e3b);
}

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

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-poster span {
    position: absolute;
    inset: auto 22px 22px auto;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
    font-weight: 900;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
    width: 36px;
    background: #10b981;
}

.section {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0;
}

.search-band {
    padding: 56px 0 30px;
}

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

.section-heading.centered {
    display: block;
    text-align: center;
    max-width: 820px;
    margin: 0 auto 24px;
}

.section-heading.compact {
    margin-bottom: 20px;
}

.section-heading h2,
.page-hero h1 {
    margin: 8px 0 0;
    color: var(--text);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.section-heading p,
.page-hero p,
.category-card-large p,
.category-tile em {
    color: var(--muted);
    line-height: 1.8;
}

.section-more {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--primary-dark);
    font-weight: 900;
}

.big-search {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--shadow);
}

.big-search input {
    flex: 1;
    padding: 18px 24px;
    font-size: 16px;
}

.big-search button {
    padding: 0 30px;
}

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

.movie-card {
    position: relative;
    min-width: 0;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.14);
    border-color: rgba(16, 185, 129, 0.35);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #0f766e);
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(2, 6, 23, 0.74));
}

.year-badge,
.rank-badge {
    position: absolute;
    top: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.year-badge {
    right: 10px;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(8px);
}

.rank-badge {
    left: 10px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.play-float {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    transform: translate(-50%, -50%) scale(0.82);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-dark);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-weight: 900;
}

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

.card-body {
    padding: 14px;
}

.card-title {
    display: block;
    color: var(--text);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-meta {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-body p {
    min-height: 44px;
    margin: 10px 0 12px;
    color: #475569;
    font-size: 13px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row span {
    background: rgba(5, 150, 105, 0.1);
    color: var(--primary-dark);
    font-size: 11px;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
    gap: 30px;
    align-items: start;
}

.category-grid,
.category-overview-grid {
    display: grid;
    gap: 18px;
}

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

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

.category-tile,
.category-card-large {
    position: relative;
    min-height: 188px;
    overflow: hidden;
    border-radius: 24px;
    padding: 24px;
    color: #fff;
    background-image: linear-gradient(135deg, rgba(2, 6, 23, 0.88), rgba(5, 150, 105, 0.72)), var(--tile-image);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease;
}

.category-card-large {
    min-height: 260px;
}

.category-tile:hover,
.category-card-large:hover {
    transform: translateY(-5px);
}

.category-tile span,
.category-card-large span {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 12px;
    font-weight: 900;
}

.category-tile strong,
.category-card-large h2 {
    display: block;
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.1;
}

.category-tile em,
.category-card-large p {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-style: normal;
    font-size: 14px;
}

.rank-panel {
    padding: 24px;
    border-radius: 28px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 30px 56px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: var(--surface-soft);
    transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    background: #e6fffb;
}

.rank-number {
    color: var(--accent);
    font-size: 18px;
    font-weight: 900;
    text-align: center;
}

.rank-item img {
    width: 56px;
    height: 76px;
    border-radius: 12px;
    object-fit: cover;
    background: #0f172a;
}

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

.rank-text strong,
.rank-text em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-text strong {
    font-weight: 900;
}

.rank-text em {
    margin-top: 5px;
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
}

.rank-score {
    color: var(--primary-dark);
    font-weight: 900;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #020617, #064e3b 52%, #0e7490);
}

.page-hero {
    padding: 86px max(16px, calc((100vw - 1240px) / 2)) 74px;
}

.page-hero h1,
.page-hero p {
    color: #fff;
    max-width: 780px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.78);
    margin: 16px 0 0;
    font-size: 18px;
}

.compact-hero {
    min-height: 300px;
}

.rank-hero {
    background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.35), transparent 22rem), linear-gradient(135deg, #020617, #064e3b 60%, #111827);
}

.tool-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.tool-row.standalone {
    align-items: stretch;
    flex-direction: column;
}

.tool-row input {
    flex: 1;
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--surface-soft);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-buttons button {
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    color: #334155;
    background: var(--surface-soft);
    font-weight: 800;
    cursor: pointer;
}

.filter-buttons button.active,
.filter-buttons button:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 34px;
}

.pagination a,
.pagination span {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: #334155;
    font-weight: 900;
}

.pagination a.active,
.pagination a:hover {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.breadcrumb {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
    margin-bottom: 24px;
}

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

.detail-hero {
    background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.88)), var(--detail-image);
    background-size: cover;
    background-position: center;
}

.detail-shade {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(3px);
}

.detail-inner {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

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

.detail-poster {
    width: 100%;
    border-radius: 26px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: #0f172a;
}

.detail-info h1 {
    margin: 16px 0;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1;
    letter-spacing: -0.065em;
}

.detail-info p {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.9;
    font-size: 18px;
    max-width: 840px;
}

.detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
}

.detail-stats span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.76);
}

.detail-stats strong {
    color: #fff;
}

.detail-section {
    padding-bottom: 24px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 34px 90px rgba(2, 6, 23, 0.28);
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 0;
    color: #fff;
    background: radial-gradient(circle at 50% 45%, rgba(5, 150, 105, 0.28), rgba(2, 6, 23, 0.78));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.player-overlay span {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 24px 56px rgba(5, 150, 105, 0.34);
    font-size: 26px;
}

.player-overlay strong {
    font-size: 24px;
}

.player-overlay em {
    color: rgba(255, 255, 255, 0.72);
    font-style: normal;
}

.player-shell.is-playing .player-overlay {
    display: none;
    pointer-events: none;
}

.player-status {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 4;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

.content-card {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
    letter-spacing: -0.035em;
}

.content-card h2:not(:first-child) {
    margin-top: 28px;
}

.content-card p {
    color: #334155;
    font-size: 16px;
    line-height: 2;
}

.info-table {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.info-table div {
    padding: 16px;
    border-radius: 18px;
    background: var(--surface-soft);
}

.info-table span,
.info-table strong {
    display: block;
}

.info-table span {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.info-table strong {
    color: var(--text);
    line-height: 1.5;
}

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

[data-card].hidden-by-filter {
    display: none;
}

.site-footer {
    margin-top: 40px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
}

.footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr);
    gap: 32px;
}

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

.footer-inner p {
    max-width: 700px;
    color: var(--muted);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: start;
}

.footer-links a {
    padding: 9px 12px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: #334155;
    font-weight: 800;
}

.footer-copy {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: var(--muted);
    font-size: 14px;
}

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

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

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

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 62px 0 90px;
    }

    .hero-poster {
        max-width: 240px;
        transform: none;
    }

    .split-section,
    .detail-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

    .info-table {
        grid-template-columns: 1fr 1fr;
    }

    .tool-row {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .header-inner {
        height: 64px;
    }

    .site-logo {
        font-size: 19px;
    }

    .hero-slider,
    .hero-content {
        min-height: 78vh;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

    .hero-copy p,
    .page-hero p,
    .detail-info p {
        font-size: 15px;
    }

    .section {
        padding: 42px 0;
    }

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

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

    .big-search {
        border-radius: 24px;
        flex-direction: column;
    }

    .big-search button {
        min-height: 52px;
    }

    .card-body {
        padding: 12px;
    }

    .card-title {
        font-size: 14px;
    }

    .card-body p {
        font-size: 12px;
    }

    .detail-inner {
        padding: 48px 0;
    }

    .content-card {
        padding: 22px;
    }

    .info-table {
        grid-template-columns: 1fr;
    }

    .player-shell {
        border-radius: 20px;
    }
}
