:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --teal-600: #0d9488;
    --cyan-600: #0891b2;
    --amber-500: #f59e0b;
    --rose-500: #f43f5e;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white: #ffffff;
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.16);
    --shadow-lg: 0 28px 75px rgba(15, 23, 42, 0.24);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: var(--slate-800);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 45%, #eefcf7 100%);
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--emerald-600), var(--teal-600), var(--cyan-600));
    box-shadow: var(--shadow-sm);
}

.nav-shell {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-mark {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--emerald-600);
    background: var(--white);
    border-radius: 999px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.22);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(4deg);
}

.brand-text strong {
    display: block;
    font-size: 23px;
    letter-spacing: 0.06em;
}

.brand-text small {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    margin-top: 2px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 auto;
    white-space: nowrap;
}

.desktop-nav a {
    position: relative;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    background: var(--white);
    transform: scaleX(0);
    transition: transform 0.22s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--white);
}

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

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
}

.header-search input,
.mobile-search input {
    width: 190px;
    color: var(--white);
    border: none;
    outline: none;
    background: transparent;
    padding: 8px 8px 8px 12px;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

.header-search button,
.mobile-search button,
.primary-button,
.secondary-button {
    border: none;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-search button {
    padding: 8px 14px;
    color: var(--emerald-700);
    background: var(--white);
}

.header-search button:hover,
.mobile-search button:hover,
.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--white);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding: 16px;
    background: linear-gradient(135deg, var(--emerald-600), var(--cyan-600));
}

.mobile-nav nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
}

.hero-slider {
    position: relative;
    height: 540px;
    overflow: hidden;
    color: var(--white);
    background: var(--slate-900);
}

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

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, var(--slate-800), var(--emerald-700));
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.82), rgba(15, 23, 42, 0.54), rgba(15, 23, 42, 0.12));
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(circle at 24% 72%, rgba(16, 185, 129, 0.28), transparent 34%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 540px;
}

.hero-copy {
    width: min(680px, 100%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: var(--white);
    background: rgba(5, 150, 105, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}

.hero-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(40px, 8vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 660px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(16px, 2.4vw, 21px);
    line-height: 1.8;
}

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

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
}

.primary-button {
    color: var(--white);
    background: var(--emerald-600);
    box-shadow: 0 16px 34px rgba(5, 150, 105, 0.28);
}

.primary-button:hover {
    background: var(--emerald-700);
}

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

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

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

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

.section {
    padding: 58px 0;
}

.section-soft {
    background: linear-gradient(180deg, var(--white), var(--slate-50));
}

.section-dark {
    color: var(--white);
    background: linear-gradient(180deg, var(--slate-800), var(--slate-900));
}

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    letter-spacing: -0.03em;
}

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

.section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.66);
}

.text-link {
    display: inline-flex;
    align-items: center;
    color: var(--emerald-600);
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.42);
    box-shadow: var(--shadow-md);
}

.poster-link {
    display: block;
}

.poster-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--slate-800), var(--emerald-700));
}

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

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

.type-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.type-badge {
    right: 12px;
    padding: 6px 10px;
    color: var(--emerald-700);
    background: rgba(255, 255, 255, 0.92);
}

.rank-badge {
    left: 12px;
    padding: 6px 10px;
    color: var(--white);
    background: var(--rose-500);
}

.play-ring {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: var(--emerald-700);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

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

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

.movie-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 48px;
    margin: 0 0 8px;
    color: var(--slate-800);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card:hover .movie-title {
    color: var(--emerald-700);
}

.movie-desc {
    display: -webkit-box;
    overflow: hidden;
    min-height: 44px;
    margin: 0 0 14px;
    color: var(--slate-600);
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.movie-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

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

.tag-row span,
.detail-tags span {
    display: inline-flex;
    padding: 5px 9px;
    color: var(--emerald-700);
    background: var(--emerald-50);
    border: 1px solid var(--emerald-100);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.feature-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.9fr);
    gap: 28px;
}

.ranking-panel {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.ranking-panel h3 {
    margin: 0;
    padding: 22px 22px 12px;
    font-size: 24px;
}

.ranking-list {
    display: grid;
    gap: 0;
}

.ranking-item {
    display: grid;
    grid-template-columns: 46px 58px 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px 18px;
    border-top: 1px solid var(--slate-100);
    transition: background 0.2s ease;
}

.ranking-item:hover {
    background: var(--emerald-50);
}

.ranking-number {
    color: var(--emerald-600);
    font-size: 20px;
    font-weight: 900;
}

.ranking-item img {
    width: 58px;
    height: 78px;
    object-fit: cover;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--slate-800), var(--emerald-700));
}

.ranking-text strong,
.ranking-text small {
    display: block;
}

.ranking-text strong {
    overflow: hidden;
    color: var(--slate-800);
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-text small {
    overflow: hidden;
    margin-top: 5px;
    color: var(--slate-500);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 22px;
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-800), var(--emerald-700));
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--shadow-lg);
}

.category-card::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 130px;
    height: 130px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.category-icon {
    display: inline-grid;
    width: 54px;
    height: 54px;
    place-items: center;
    margin-bottom: 16px;
    color: var(--emerald-700);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 18px;
    font-weight: 900;
}

.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    font-size: 22px;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.65;
}

.category-card small {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 800;
}

.page-hero {
    color: var(--white);
    background: radial-gradient(circle at 15% 20%, rgba(52, 211, 153, 0.28), transparent 32%),
        linear-gradient(135deg, var(--emerald-600), var(--teal-600), var(--slate-900));
    padding: 58px 0;
}

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

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumb {
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 14px 0;
    list-style: none;
    color: var(--slate-500);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--emerald-700);
    font-weight: 700;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 160px 160px 180px;
    gap: 12px;
    margin-bottom: 28px;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    outline: none;
    background: var(--slate-50);
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.category-result-count {
    margin: -8px 0 22px;
    color: var(--slate-500);
    font-weight: 700;
}

.player-section {
    background: #000000;
    padding: 32px 0;
}

.player-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.player-box video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.35));
    transition: opacity 0.25s ease;
}

.player-box.playing .player-overlay {
    opacity: 0;
}

.big-play {
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    color: var(--emerald-700);
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 34px;
    pointer-events: auto;
    box-shadow: var(--shadow-md);
    transition: transform 0.22s ease;
}

.big-play:hover {
    transform: scale(1.08);
}

.player-status {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 2;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
    pointer-events: none;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.8fr);
    gap: 30px;
    padding: 38px 0 58px;
}

.detail-main,
.detail-side,
.content-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.detail-main {
    padding: 28px;
}

.detail-title {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.18;
    letter-spacing: -0.04em;
}

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

.detail-actions .secondary-button {
    color: var(--emerald-700);
    background: var(--emerald-50);
    border: 1px solid var(--emerald-200);
}

.detail-actions .secondary-button:hover {
    background: var(--emerald-100);
}

.detail-section {
    margin-top: 28px;
    padding-top: 26px;
    border-top: 1px solid var(--slate-200);
}

.detail-section h2,
.detail-section h3 {
    margin: 0 0 14px;
}

.detail-section p {
    color: var(--slate-700);
    line-height: 1.9;
}

.info-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
}

.info-table div {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 10px;
    padding: 13px 14px;
    border-bottom: 1px solid var(--slate-100);
}

.info-table div:nth-last-child(-n+2) {
    border-bottom: none;
}

.info-table strong {
    color: var(--slate-500);
}

.detail-side {
    height: max-content;
    padding: 22px;
}

.side-block + .side-block {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--slate-200);
}

.side-block h3 {
    margin: 0 0 14px;
    font-size: 20px;
}

.side-category-list {
    display: grid;
    gap: 10px;
}

.side-category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.side-category-list a:hover {
    background: var(--emerald-50);
    border-color: var(--emerald-200);
}

.related-section {
    padding: 0 0 64px;
}

.search-empty,
.search-count {
    padding: 18px 20px;
    margin-bottom: 22px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
}

.site-map-list {
    columns: 4 220px;
    column-gap: 28px;
    padding: 0;
    list-style: none;
}

.site-map-list li {
    break-inside: avoid;
    margin: 0 0 8px;
}

.site-map-list a {
    color: var(--slate-700);
}

.site-map-list a:hover {
    color: var(--emerald-700);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.3fr) 1fr 1fr;
    gap: 32px;
    padding: 42px 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 22px;
}

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

.site-footer h3 {
    margin: 0 0 16px;
    color: var(--white);
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.68);
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 18px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom button {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    padding: 9px 14px;
    cursor: pointer;
}

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

    .menu-toggle {
        display: block;
    }

    body.menu-open .mobile-nav {
        display: block;
    }

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

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

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

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

    .brand-text small {
        display: none;
    }

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

    .section {
        padding: 42px 0;
    }

    .section-head {
        display: block;
    }

    .section-head .text-link {
        margin-top: 12px;
    }

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

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

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

    .filter-panel {
        grid-template-columns: 1fr;
    }

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

    .info-table div:nth-last-child(-n+2) {
        border-bottom: 1px solid var(--slate-100);
    }

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

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

@media (max-width: 520px) {
    .nav-shell {
        min-height: 66px;
    }

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

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

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

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

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

    .poster-frame {
        aspect-ratio: 16 / 10;
    }

    .ranking-item {
        grid-template-columns: 40px 52px 1fr;
    }

    .detail-main {
        padding: 20px;
    }
}
