:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: #1e293b;
    --bg-card-2: #111827;
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #64748b;
    --line: rgba(148, 163, 184, 0.22);
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --accent-soft: rgba(245, 158, 11, 0.16);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #020617 0%, #0f172a 50%, #020617 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.brand:hover {
    transform: scale(1.03);
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    position: relative;
    box-shadow: 0 0 32px rgba(245, 158, 11, 0.35);
}

.brand-mark::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 10px;
    border-left: 12px solid white;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.12;
}

.brand-text strong {
    font-size: 22px;
    letter-spacing: 0.04em;
}

.brand-text span {
    color: #fde68a;
    font-size: 12px;
    opacity: 0.88;
}

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

.nav-link {
    color: #e2e8f0;
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.header-search {
    position: relative;
    width: min(270px, 26vw);
}

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.88);
    color: white;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
    padding: 11px 46px 11px 16px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(245, 158, 11, 0.8);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.header-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    color: #cbd5e1;
    background: transparent;
}

.header-search button:hover {
    color: var(--accent);
}

.menu-button {
    display: none;
    border: 0;
    color: white;
    background: rgba(30, 41, 59, 0.75);
    border-radius: 12px;
    width: 42px;
    height: 42px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding: 16px;
}

.mobile-panel.open {
    display: block;
}

.mobile-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-bottom: 14px;
}

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

.mobile-search button,
.primary-button,
.ghost-button {
    border: 0;
    border-radius: 999px;
    font-weight: 750;
    white-space: nowrap;
}

.mobile-search button,
.primary-button {
    color: white;
    background: var(--accent);
}

.mobile-search button {
    padding: 0 18px;
}

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

.mobile-link {
    color: #e2e8f0;
    font-weight: 650;
    padding: 10px 0;
}

.mobile-link.active,
.mobile-link:hover {
    color: var(--accent);
}

.mobile-category-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.mobile-category-row a {
    padding: 7px 10px;
    border-radius: 999px;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.12);
}

.hero {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    background: var(--bg-soft);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.65s ease, transform 1.2s ease;
}

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

.hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
    padding: 110px 0 88px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    color: white;
    background: var(--accent);
    font-size: 14px;
    font-weight: 750;
}

.hero-kicker {
    padding: 9px 18px;
    margin-bottom: 18px;
}

.section-kicker {
    padding: 7px 13px;
    margin-bottom: 12px;
}

.hero h1,
.hero h2 {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 660px;
    margin: 0;
    color: #e2e8f0;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

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

.hero-meta span,
.detail-meta span {
    padding: 8px 12px;
    color: #e5e7eb;
    border: 1px solid rgba(226, 232, 240, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.52);
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.24);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px) scale(1.02);
}

.primary-button:hover {
    background: var(--accent-dark);
}

.ghost-button {
    color: white;
    background: rgba(15, 23, 42, 0.48);
    border: 1px solid rgba(226, 232, 240, 0.24);
    box-shadow: none;
}

.ghost-button:hover {
    border-color: rgba(245, 158, 11, 0.7);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    color: white;
    background: rgba(0, 0, 0, 0.52);
    font-size: 38px;
    line-height: 1;
    backdrop-filter: blur(10px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 34px;
    background: var(--accent);
}

.section {
    padding: 72px 0;
}

.section-tight {
    padding-top: 58px;
}

.section-muted {
    background: rgba(15, 23, 42, 0.54);
}

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

.section-heading h2,
.page-hero h1,
.story-panel h2,
.side-panel h2 {
    margin: 0;
    color: white;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -0.03em;
}

.section-heading > a {
    color: #fde68a;
    font-weight: 700;
}

.featured-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 24px;
}

.featured-large .poster-wrap {
    min-height: 380px;
}

.featured-side {
    display: grid;
    gap: 18px;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.22);
    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.34);
    box-shadow: var(--shadow);
}

.card-link {
    display: block;
    height: 100%;
}

.poster-wrap {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: #111827;
}

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-wrap::after {
    opacity: 1;
}

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

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

.category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 10px;
    color: white;
    background: var(--accent);
    font-size: 12px;
    font-weight: 750;
}

.play-hover {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border-radius: 999px;
    color: white;
    background: var(--accent);
    box-shadow: 0 18px 50px rgba(245, 158, 11, 0.36);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

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

.movie-card-body h2 {
    margin: 0 0 10px;
    color: white;
    font-size: 18px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.movie-card:hover h2 {
    color: #fbbf24;
}

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

.card-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.card-tag-row span {
    padding: 4px 7px;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 999px;
    font-size: 12px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted-2);
    font-size: 12px;
}

.card-category-link {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    color: #fde68a;
    font-size: 12px;
    font-weight: 700;
}

.horizontal-card .card-link {
    display: grid;
    grid-template-columns: 145px 1fr;
}

.horizontal-card .poster-wrap {
    height: auto;
    min-height: 170px;
}

.horizontal-card .movie-card-body h2 {
    font-size: 17px;
}

.horizontal-card .card-category-link {
    display: none;
}

.horizontal-strip {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 0 0 16px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.horizontal-strip::-webkit-scrollbar {
    display: none;
}

.strip-item {
    flex: 0 0 300px;
}

.scroll-actions {
    display: flex;
    gap: 10px;
}

.scroll-actions button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    color: white;
    background: #334155;
    font-size: 26px;
    line-height: 1;
    transition: background 0.2s ease;
}

.scroll-actions button:hover {
    background: #475569;
}

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

.category-card {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.92));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

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

.category-card strong {
    color: white;
    font-size: 22px;
}

.category-card span {
    color: var(--muted);
    line-height: 1.7;
}

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

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

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

.rank-card {
    display: grid;
    grid-template-columns: auto 74px 1fr;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.72);
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.ranking-list .rank-card {
    grid-template-columns: 58px 92px 1fr;
}

.rank-card:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(51, 65, 85, 0.9);
}

.rank-index {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: white;
    border-radius: 999px;
    background: var(--accent);
    font-weight: 850;
}

.rank-card img {
    width: 74px;
    height: 92px;
    object-fit: cover;
    border-radius: 10px;
}

.ranking-list .rank-card img {
    width: 92px;
    height: 120px;
}

.rank-card strong {
    display: block;
    margin-bottom: 7px;
    color: white;
}

.rank-card em {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.page-hero {
    position: relative;
    padding: 88px 0 52px;
    background:
        radial-gradient(circle at 16% 20%, rgba(245, 158, 11, 0.22), transparent 30%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
}

.slim-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 6vw, 64px);
    letter-spacing: -0.04em;
}

.slim-hero p {
    max-width: 760px;
    margin: 0;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

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

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

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.inline-links a,
.tag-cloud a {
    padding: 7px 10px;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.08);
    font-size: 13px;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 12px;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.76);
}

.search-filter-bar {
    grid-template-columns: minmax(220px, 1fr) 180px 150px 180px;
}

.filter-bar input,
.filter-bar select {
    min-height: 48px;
    padding: 0 16px;
    border-radius: 999px;
}

.detail-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
}

.detail-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.42)),
        linear-gradient(180deg, rgba(2, 6, 23, 0.16), #020617);
}

.detail-hero-inner {
    position: relative;
    padding: 62px 0 70px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

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

.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-one-line {
    max-width: 820px;
    margin: 0;
    color: #e2e8f0;
    font-size: 20px;
    line-height: 1.75;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
}

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

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: black;
    box-shadow: var(--shadow);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: white;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.72));
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 18px 60px rgba(245, 158, 11, 0.42);
    font-size: 36px;
}

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

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

.story-panel,
.side-panel {
    margin-top: 24px;
    padding: 26px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
}

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

.story-panel p {
    margin: 0 0 24px;
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.9;
}

.story-panel p:last-child {
    margin-bottom: 0;
}

.side-panel {
    position: sticky;
    top: 100px;
}

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

.side-rank-list .rank-card {
    grid-template-columns: 70px 1fr;
}

.side-rank-list .rank-card .rank-index {
    display: none;
}

.side-rank-list .rank-card img {
    width: 70px;
    height: 92px;
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, #0f172a, #020617);
    color: #cbd5e1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 38px;
    padding: 54px 0 34px;
}

.footer-brand {
    margin-bottom: 14px;
    color: white;
    font-size: 22px;
    font-weight: 850;
}

.site-footer p {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: white;
    font-size: 18px;
}

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

.footer-links a {
    color: var(--muted);
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: var(--muted-2);
    font-size: 14px;
}

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

    .menu-button {
        display: inline-grid;
        place-items: center;
    }

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

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

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

    .side-panel {
        position: static;
    }
}

@media (max-width: 780px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .header-inner {
        min-height: 66px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .brand-text strong {
        font-size: 18px;
    }

    .brand-text span {
        display: none;
    }

    .hero,
    .hero-content {
        min-height: 560px;
    }

    .hero-copy {
        padding: 92px 0 82px;
    }

    .hero-control {
        display: none;
    }

    .section {
        padding: 52px 0;
    }

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

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

    .poster-wrap {
        height: 250px;
    }

    .horizontal-card .card-link {
        grid-template-columns: 118px 1fr;
    }

    .horizontal-card .poster-wrap {
        min-height: 150px;
    }

    .strip-item {
        flex-basis: 245px;
    }

    .filter-bar,
    .search-filter-bar {
        grid-template-columns: 1fr;
    }

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

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

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

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

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

    .poster-wrap {
        height: 320px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .primary-button,
    .ghost-button {
        width: 100%;
    }

    .rank-card,
    .ranking-list .rank-card {
        grid-template-columns: auto 74px 1fr;
    }
}
