:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: #111827;
    --bg-card-strong: #1e293b;
    --border: rgba(148, 163, 184, 0.18);
    --border-strong: rgba(251, 191, 36, 0.35);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --muted-soft: #94a3b8;
    --amber: #f59e0b;
    --amber-light: #fbbf24;
    --amber-dark: #d97706;
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.42);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.16), transparent 32rem),
        radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.12), transparent 28rem),
        var(--bg);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Microsoft YaHei",
        sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(2, 6, 23, 0.84);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--amber-light), #f97316);
    color: white;
    box-shadow: 0 16px 30px rgba(245, 158, 11, 0.28);
}

.brand-name {
    font-size: 1.16rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    color: var(--muted);
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-link {
    position: relative;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    border-radius: 999px;
    background: var(--amber-light);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.84);
    color: white;
    cursor: pointer;
}

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

.mobile-nav {
    display: none;
    padding: 10px 18px 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.96);
}

.mobile-nav.is-open {
    display: grid;
    gap: 8px;
    animation: slideDown 0.25s ease-out;
}

.mobile-nav .nav-link {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.56);
}

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

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transform: scale(1.015);
    transition:
        opacity 0.7s ease,
        transform 0.9s ease;
    pointer-events: none;
}

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

.hero-image,
.detail-backdrop {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.22)),
        linear-gradient(0deg, rgba(2, 6, 23, 1), transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(100% - 32px, var(--container));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 120px 0 110px;
}

.hero-kicker,
.detail-meta,
.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--muted);
}

.hero-kicker span,
.detail-meta span,
.movie-meta-line span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 3px 10px;
    border: 1px solid rgba(251, 191, 36, 0.26);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
}

.hero-content h1 {
    max-width: 780px;
    margin: 18px 0 14px;
    font-size: clamp(2.5rem, 6vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 28px;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-actions,
.search-controls,
.section-heading,
.compact-heading,
.detail-content-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.primary-button,
.secondary-button,
.ghost-link,
.category-action,
.filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.primary-button {
    min-height: 48px;
    padding: 0 24px;
    background: var(--amber);
    color: white;
    box-shadow: 0 16px 30px rgba(245, 158, 11, 0.22);
}

.primary-button:hover {
    background: var(--amber-dark);
    transform: translateY(-2px) scale(1.02);
}

.secondary-button,
.ghost-link {
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.58);
    color: white;
}

.secondary-button:hover,
.ghost-link:hover {
    border-color: var(--border-strong);
    color: var(--amber-light);
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.62);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background 0.2s ease;
}

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

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

.hero-dot.is-active {
    width: 32px;
    background: var(--amber-light);
}

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

.content-section,
.search-panel,
.player-section,
.detail-article,
.detail-side-card {
    margin: 44px 0;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow);
}

.search-panel {
    margin-top: -54px;
    position: relative;
    z-index: 20;
    backdrop-filter: blur(18px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    color: var(--amber-light);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading h2,
.ranking-header h2,
.detail-info h1,
.sub-hero h1,
.detail-article h2,
.detail-side-card h2 {
    margin: 4px 0 0;
    line-height: 1.1;
}

.section-heading p,
.sub-hero p,
.detail-one-line {
    margin: 8px 0 0;
    color: var(--muted);
}

.search-controls {
    margin-top: 24px;
    align-items: stretch;
    flex-wrap: wrap;
}

.movie-search-input {
    min-width: min(100%, 360px);
    flex: 1;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.64);
    color: white;
    outline: none;
}

.movie-search-input:focus {
    border-color: var(--amber-light);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.1);
}

.filter-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-button {
    min-height: 42px;
    padding: 0 16px;
    background: rgba(30, 41, 59, 0.92);
    color: var(--muted);
}

.filter-button:hover,
.filter-button.active {
    background: var(--amber);
    color: white;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.88);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px) scale(1.015);
    border-color: rgba(251, 191, 36, 0.32);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.38);
}

.movie-card.is-hidden {
    display: none;
}

.poster-link,
.poster-wrap {
    display: block;
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(30, 41, 59, 0.9)),
        #111827;
}

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

.poster-wrap.image-missing::after {
    content: attr(data-title);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    color: rgba(255, 255, 255, 0.86);
    text-align: center;
    font-weight: 800;
    letter-spacing: 0.04em;
}

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

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

.play-chip,
.rank-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    font-weight: 800;
}

.play-chip {
    left: 12px;
    bottom: 12px;
    min-height: 32px;
    padding: 0 12px;
    background: rgba(245, 158, 11, 0.92);
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.movie-card:hover .play-chip {
    opacity: 1;
    transform: translateY(0);
}

.rank-badge {
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #facc15, #f97316);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.28);
}

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

.movie-meta-line {
    gap: 6px;
    font-size: 0.72rem;
}

.movie-meta-line span {
    min-height: 22px;
    padding: 2px 7px;
}

.movie-card h3 {
    margin: 10px 0 6px;
    font-size: 1rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.movie-card p {
    min-height: 42px;
    margin: 0;
    color: var(--muted-soft);
    font-size: 0.86rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: var(--muted);
    font-size: 0.72rem;
}

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

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

.category-card {
    position: relative;
    min-height: 176px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.18), transparent 16rem),
        rgba(15, 23, 42, 0.9);
    transition:
        transform 0.24s ease,
        border-color 0.24s ease,
        background 0.24s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-strong);
    background:
        radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.26), transparent 16rem),
        rgba(30, 41, 59, 0.94);
}

.category-index {
    color: var(--amber-light);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.category-card h3 {
    margin: 16px 0 8px;
    font-size: 1.3rem;
}

.category-card p {
    margin: 0;
    color: var(--muted);
}

.category-action {
    margin-top: 18px;
    color: var(--amber-light);
}

.two-column-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.ranking-panel,
.detail-side-card {
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(2, 6, 23, 0.44);
    padding: 22px;
}

.ranking-list,
.wide-ranking-list {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.ranking-item,
.wide-ranking-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.68);
    color: var(--muted);
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.ranking-item:hover,
.wide-ranking-item:hover {
    transform: translateX(4px);
    background: rgba(245, 158, 11, 0.14);
    color: white;
}

.ranking-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--amber-light);
    font-weight: 900;
}

.ranking-title {
    display: block;
    color: white;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-meta {
    color: var(--muted-soft);
    font-size: 0.86rem;
}

.full-button {
    width: 100%;
}

.sub-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.18), transparent 40%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.84));
}

.sub-hero-inner {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 78px 0 96px;
}

.sub-hero h1 {
    max-width: 820px;
    margin-top: 8px;
    font-size: clamp(2.1rem, 5vw, 4.2rem);
    letter-spacing: -0.04em;
}

.sub-hero p {
    max-width: 720px;
    font-size: 1.08rem;
}

.ranking-layout {
    display: grid;
    gap: 28px;
}

.wide-ranking-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 16px;
}

.wide-ranking-item h3 {
    margin: 0 0 4px;
}

.wide-ranking-item p {
    margin: 0;
    color: var(--muted-soft);
}

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

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    background: #020617;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.42;
    filter: blur(1px);
}

.detail-backdrop-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, #020617, rgba(2, 6, 23, 0.48), #020617),
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.62));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 44px 0 64px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 0.95rem;
}

.breadcrumb a:hover {
    color: var(--amber-light);
}

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

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

.detail-info h1 {
    max-width: 880px;
    margin: 12px 0 16px;
    font-size: clamp(2rem, 5vw, 4.5rem);
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 780px;
    font-size: 1.16rem;
}

.detail-meta {
    margin: 22px 0;
}

.large-tags span {
    min-height: 28px;
    padding: 3px 11px;
    font-size: 0.82rem;
}

.detail-info .primary-button {
    margin-top: 24px;
}

.detail-page-wrap {
    margin-top: -34px;
    position: relative;
    z-index: 5;
}

.player-section {
    background: rgba(2, 6, 23, 0.78);
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: black;
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: black;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    background:
        radial-gradient(circle, rgba(245, 158, 11, 0.22), transparent 28%),
        rgba(2, 6, 23, 0.42);
    color: white;
    font-weight: 900;
    cursor: pointer;
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

.play-circle {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--amber);
    box-shadow: 0 16px 34px rgba(245, 158, 11, 0.32);
    font-size: 2rem;
}

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

.player-message {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 12px;
    z-index: 5;
    min-height: 0;
    margin: 0;
    color: var(--muted);
    text-align: center;
    pointer-events: none;
}

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

.detail-article,
.detail-side-card {
    margin-top: 0;
}

.detail-article p {
    color: var(--muted);
    font-size: 1.02rem;
}

.review-heading {
    margin-top: 28px;
}

.detail-side-card dl {
    display: grid;
    gap: 12px;
    margin: 18px 0 24px;
}

.detail-side-card div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.detail-side-card dt {
    color: var(--muted-soft);
}

.detail-side-card dd {
    margin: 0;
    color: white;
}

.site-footer {
    margin-top: 72px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(2, 6, 23, 0.72);
}

.footer-inner {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 1fr 1fr;
    gap: 36px;
}

.footer-brand p,
.footer-column a {
    color: var(--muted);
}

.footer-column h3 {
    margin: 0 0 14px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 9px;
}

.footer-column a:hover {
    color: var(--amber-light);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1180px) {
    .desktop-nav {
        gap: 12px;
        font-size: 0.88rem;
    }

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

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

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

    .mobile-menu-toggle {
        display: block;
    }

    .hero-slider {
        min-height: 560px;
    }

    .hero-content {
        padding: 100px 0 92px;
    }

    .hero-arrow {
        display: none;
    }

    .section-heading,
    .compact-heading,
    .search-controls,
    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .two-column-layout,
    .detail-content-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 220px minmax(0, 1fr);
    }

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

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

    .brand-mark {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .hero-slider {
        min-height: 520px;
    }

    .hero-shade {
        background:
            linear-gradient(0deg, rgba(2, 6, 23, 1), rgba(2, 6, 23, 0.38)),
            rgba(2, 6, 23, 0.42);
    }

    .content-section,
    .search-panel,
    .player-section,
    .detail-article,
    .detail-side-card {
        padding: 20px;
        border-radius: 22px;
    }

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

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

    .movie-card p {
        min-height: 38px;
        font-size: 0.8rem;
    }

    .wide-ranking-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .wide-ranking-item .ranking-meta {
        grid-column: 2;
    }

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

    .detail-poster {
        width: min(68vw, 250px);
    }

    .detail-hero {
        min-height: auto;
    }
}

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

    .hero-actions,
    .primary-button,
    .secondary-button,
    .ghost-link {
        width: 100%;
    }

    .hero-dot.is-active {
        width: 24px;
    }
}
