:root {
    --bg: #0f172a;
    --bg-deep: #020617;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --line: rgba(148, 163, 184, 0.18);
    --line-bright: rgba(34, 211, 238, 0.28);
    --text: #f8fafc;
    --muted: #94a3b8;
    --cyan: #22d3ee;
    --cyan-deep: #0891b2;
    --blue: #2563eb;
    --pink: #f472b6;
    --amber: #f59e0b;
    --shadow: 0 24px 70px rgba(2, 6, 23, 0.48);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --site-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.18), transparent 30%),
        radial-gradient(circle at 80% 0%, rgba(37, 99, 235, 0.18), transparent 28%),
        linear-gradient(180deg, #0f172a 0%, #0b1120 42%, #020617 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(18px);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(2, 6, 23, 0.92);
    box-shadow: 0 18px 60px rgba(2, 6, 23, 0.38);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #06121f;
    background: linear-gradient(135deg, var(--cyan), #67e8f9 42%, var(--pink));
    box-shadow: 0 0 32px rgba(34, 211, 238, 0.42);
}

.logo-text {
    font-size: 18px;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

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

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: #fff;
    background: rgba(34, 211, 238, 0.14);
    transform: translateY(-1px);
}

.header-search {
    display: flex;
    align-items: center;
    width: 270px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.68);
    overflow: hidden;
}

.header-search input,
.mobile-search input,
.large-search input,
.filter-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.header-search input {
    padding: 10px 0 10px 16px;
}

.header-search button,
.mobile-search button {
    border: 0;
    color: #07111f;
    padding: 10px 15px;
    font-weight: 800;
    background: var(--cyan);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.82);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--text);
}

.mobile-nav {
    display: none;
    width: min(var(--site-width), calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.96);
}

.mobile-search {
    display: flex;
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
}

.mobile-search input {
    padding: 12px 16px;
}

.hero-carousel {
    position: relative;
    width: min(var(--site-width), calc(100% - 32px));
    min-height: 690px;
    margin: 28px auto 0;
    border: 1px solid var(--line-bright);
    border-radius: 36px;
    overflow: hidden;
    background: var(--panel-strong);
    box-shadow: var(--shadow);
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    opacity: 0;
    pointer-events: none;
    background-image:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.82) 44%, rgba(2, 6, 23, 0.48)),
        var(--hero-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-shade,
.detail-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 16%, rgba(34, 211, 238, 0.24), transparent 30%),
        linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(2, 6, 23, 0.88));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) 360px;
    gap: 56px;
    align-items: center;
    padding: 64px;
}

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

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 8px 13px;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 999px;
    color: #a5f3fc;
    background: rgba(8, 145, 178, 0.12);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    letter-spacing: -0.05em;
    line-height: 1.02;
}

.hero-copy h1,
.hero-copy h2 {
    max-width: 820px;
    font-size: clamp(42px, 6vw, 82px);
}

.hero-copy p,
.page-hero p,
.detail-one-line {
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

.hero-copy p {
    max-width: 650px;
    margin: 24px 0 0;
}

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

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.card-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    color: #cffafe;
    background: rgba(15, 23, 42, 0.7);
    font-size: 12px;
    font-weight: 700;
}

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

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

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

.btn.primary {
    color: #06121f;
    background: linear-gradient(135deg, var(--cyan), #67e8f9);
    box-shadow: 0 15px 38px rgba(34, 211, 238, 0.32);
}

.btn.ghost {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
}

.btn.soft {
    color: #cffafe;
    border-color: rgba(34, 211, 238, 0.18);
    background: rgba(8, 145, 178, 0.13);
}

.btn.small {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
}

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.84);
    box-shadow: 0 28px 80px rgba(2, 6, 23, 0.55);
    transform: rotate(2deg);
}

.hero-poster::after,
.detail-poster::after,
.card-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(2, 6, 23, 0.72));
    pointer-events: none;
}

.hero-poster img,
.detail-poster img,
.card-poster img,
.rank-row-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-controls {
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 26px;
    z-index: 4;
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    gap: 14px;
    align-items: center;
}

.hero-arrow {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    color: var(--text);
    background: rgba(15, 23, 42, 0.82);
    font-size: 30px;
    line-height: 1;
}

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

.hero-thumb {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.74);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.hero-thumb.is-active {
    border-color: rgba(34, 211, 238, 0.65);
    background: rgba(8, 145, 178, 0.28);
}

.hero-thumb img {
    width: 42px;
    height: 58px;
    flex: 0 0 auto;
    border-radius: 12px;
    object-fit: cover;
}

.hero-thumb span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 800;
}

.hero-orb {
    position: absolute;
    z-index: 1;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.32;
    pointer-events: none;
}

.orb-a {
    top: 12%;
    right: 8%;
    background: var(--cyan);
}

.orb-b {
    bottom: 16%;
    left: 14%;
    background: var(--pink);
}

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

.content-section {
    padding: 78px 0 0;
}

.flat-section {
    padding-top: 32px;
}

.section-heading,
.category-block-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section-heading h2,
.category-block-head h2,
.story-panel h2,
.info-panel h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-heading p,
.category-block-head p {
    max-width: 640px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.section-link {
    flex: 0 0 auto;
    color: #a5f3fc;
    font-weight: 900;
}

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

.category-tile {
    min-height: 190px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(8, 47, 73, 0.48));
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.45);
    box-shadow: 0 22px 70px rgba(2, 6, 23, 0.45);
}

.category-tile span {
    display: block;
    margin-bottom: 10px;
    color: var(--cyan);
    font-weight: 900;
}

.category-tile strong {
    display: block;
    color: #e2e8f0;
    line-height: 1.6;
    font-size: 14px;
}

.category-covers {
    display: flex;
    margin-top: 18px;
}

.category-covers img {
    width: 54px;
    height: 76px;
    border: 2px solid rgba(15, 23, 42, 0.92);
    border-radius: 12px;
    object-fit: cover;
    margin-left: -14px;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.35);
}

.category-covers img:first-child {
    margin-left: 0;
}

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

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

.movie-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.74);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: rgba(2, 6, 23, 0.72);
}

.card-poster img {
    transition: transform 0.35s ease;
}

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

.play-dot {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #06121f;
    background: var(--cyan);
    box-shadow: 0 12px 26px rgba(34, 211, 238, 0.32);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    color: #06121f;
    background: linear-gradient(135deg, var(--amber), #fde68a);
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: #93c5fd;
    font-size: 12px;
    font-weight: 800;
}

.card-meta span {
    display: inline-flex;
    align-items: center;
}

.card-meta span + span::before {
    content: "·";
    margin-right: 6px;
    color: #475569;
}

.card-body h3 {
    margin: 8px 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.compact-card .card-body h3 {
    font-size: 16px;
}

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

.card-tags {
    gap: 6px;
}

.card-tags span {
    min-height: 24px;
    padding: 4px 8px;
    font-size: 11px;
}

.page-main {
    padding: 34px 0 88px;
}

.page-hero,
.detail-hero {
    position: relative;
    border: 1px solid var(--line-bright);
    border-radius: 34px;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 10%, rgba(34, 211, 238, 0.22), transparent 30%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(8, 47, 73, 0.54));
    box-shadow: var(--shadow);
}

.page-hero {
    padding: 62px;
}

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

.search-hero {
    min-height: 340px;
}

.page-hero h1 {
    max-width: 880px;
    font-size: clamp(40px, 6vw, 76px);
}

.page-hero p {
    max-width: 760px;
    margin: 22px 0 0;
}

.large-search,
.filter-search {
    max-width: 720px;
    margin-top: 26px;
    border: 1px solid rgba(34, 211, 238, 0.32);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.48);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.large-search input,
.filter-search input {
    padding: 17px 22px;
    font-size: 16px;
}

.category-block {
    padding-top: 54px;
}

.filter-panel {
    margin-top: 26px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
}

.sticky-filter {
    position: sticky;
    top: 92px;
    z-index: 20;
    backdrop-filter: blur(16px);
}

.filter-panel .filter-search {
    max-width: none;
    margin: 0 0 14px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chips button {
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #cbd5e1;
    padding: 9px 13px;
    background: rgba(2, 6, 23, 0.24);
}

.filter-chips button.is-active,
.filter-chips button:hover {
    color: #06121f;
    border-color: transparent;
    background: var(--cyan);
}

.rank-list {
    list-style: none;
    display: grid;
    gap: 14px;
    margin: 34px 0 0;
    padding: 0;
}

.rank-row {
    display: grid;
    grid-template-columns: 70px 86px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
}

.rank-num {
    font-size: 24px;
    font-weight: 950;
    color: var(--cyan);
    text-align: center;
}

.rank-row-poster {
    width: 86px;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    overflow: hidden;
}

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

.rank-row-main p {
    margin: 0 0 8px;
    color: #cbd5e1;
    line-height: 1.6;
}

.detail-main {
    padding-bottom: 88px;
}

.detail-hero {
    min-height: 560px;
    margin-top: 28px;
    background-image:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.84) 52%, rgba(2, 6, 23, 0.48)),
        var(--detail-bg);
    background-size: cover;
    background-position: center;
}

.detail-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    min-height: 560px;
    padding: 58px;
}

.detail-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    overflow: hidden;
    background: rgba(2, 6, 23, 0.72);
    box-shadow: 0 28px 80px rgba(2, 6, 23, 0.55);
}

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

.breadcrumb a {
    color: #a5f3fc;
}

.detail-info h1 {
    max-width: 850px;
    font-size: clamp(40px, 6vw, 72px);
}

.detail-one-line {
    max-width: 800px;
    margin: 22px 0 0;
}

.player-section,
.detail-content,
.detail-pager {
    margin-top: 42px;
}

.compact-heading {
    margin-bottom: 18px;
}

.movie-player {
    position: relative;
    border: 1px solid rgba(34, 211, 238, 0.32);
    border-radius: 28px;
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #06121f;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.26), rgba(2, 6, 23, 0.68));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-overlay span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--cyan);
    box-shadow: 0 18px 46px rgba(34, 211, 238, 0.32);
    font-size: 34px;
    padding-left: 6px;
}

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

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
}

.story-panel,
.info-panel {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.72);
}

.story-panel h2,
.info-panel h2 {
    margin-bottom: 14px;
    font-size: 28px;
}

.story-panel p {
    margin: 0;
    color: #dbeafe;
    line-height: 2;
    font-size: 16px;
}

.info-panel {
    grid-row: span 2;
}

.info-panel dl {
    display: grid;
    gap: 14px;
    margin: 0;
}

.info-panel div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.info-panel dt {
    color: var(--muted);
}

.info-panel dd {
    margin: 0;
    color: #e2e8f0;
}

.detail-pager {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.detail-pager a {
    flex: 1;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: #cffafe;
    background: rgba(15, 23, 42, 0.72);
    font-weight: 800;
}

.site-footer {
    margin-top: 90px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.58);
}

.footer-inner {
    width: min(var(--site-width), calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner p {
    max-width: 620px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.footer-links a {
    color: #a5f3fc;
    font-weight: 800;
}

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

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

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

    .hero-carousel {
        min-height: 720px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 34px;
        padding: 46px;
    }

    .hero-poster {
        width: min(300px, 62vw);
        transform: none;
    }

    .hero-thumbs {
        grid-template-columns: repeat(5, 1fr);
        overflow-x: auto;
    }

    .hero-thumb span {
        display: none;
    }

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

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

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

    .detail-poster {
        width: min(320px, 66vw);
    }

    .info-panel {
        grid-row: auto;
    }
}

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

    .logo-text {
        font-size: 16px;
    }

    .hero-carousel,
    .page-main,
    .content-section,
    .detail-main {
        width: min(100% - 24px, var(--site-width));
    }

    .hero-carousel {
        min-height: 680px;
        margin-top: 18px;
        border-radius: 26px;
    }

    .hero-slides {
        min-height: 590px;
    }

    .hero-content {
        padding: 30px;
    }

    .hero-copy h1,
    .hero-copy h2,
    .page-hero h1,
    .detail-info h1 {
        font-size: 38px;
    }

    .hero-copy p,
    .page-hero p,
    .detail-one-line {
        font-size: 16px;
    }

    .hero-controls {
        left: 18px;
        right: 18px;
        bottom: 18px;
        grid-template-columns: 42px 1fr 42px;
    }

    .hero-arrow {
        width: 42px;
        height: 42px;
    }

    .page-hero,
    .detail-layout {
        padding: 30px;
    }

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

    .section-heading,
    .category-block-head,
    .footer-inner,
    .detail-pager {
        display: grid;
    }

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

    .rank-row .btn {
        grid-column: 2 / 4;
    }

    .story-panel,
    .info-panel {
        padding: 22px;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

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

    .hero-thumb img {
        width: 34px;
        height: 48px;
    }

    .card-poster {
        max-height: 520px;
    }
}
