:root {
    --mist-50: #f8fafc;
    --mist-100: #f1f5f9;
    --mist-200: #e2e8f0;
    --mist-300: #cbd5e1;
    --mist-500: #64748b;
    --mist-600: #475569;
    --mist-700: #334155;
    --mist-800: #1e293b;
    --mist-900: #0f172a;
    --fog-400: #38bdf8;
    --fog-500: #0ea5e9;
    --fog-600: #0284c7;
    --fog-700: #0369a1;
    --rose-500: #f43f5e;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
    --radius-lg: 18px;
    --radius-md: 14px;
    --max: 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", sans-serif;
    color: var(--mist-900);
    background: linear-gradient(180deg, var(--mist-50) 0%, #ffffff 38%, var(--mist-50) 100%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(203, 213, 225, 0.78);
    backdrop-filter: blur(16px);
}

.site-nav {
    width: min(var(--max), calc(100% - 32px));
    height: 66px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--mist-900);
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    font-size: 13px;
    background: linear-gradient(135deg, var(--fog-600), var(--rose-500));
    box-shadow: 0 12px 24px rgba(2, 132, 199, 0.22);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    position: relative;
    font-size: 15px;
    font-weight: 700;
    color: var(--mist-700);
    transition: color 0.2s ease;
}

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

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

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

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--mist-100);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: var(--mist-700);
}

.mobile-menu {
    display: none;
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 0 18px;
    border-top: 1px solid var(--mist-200);
}

.mobile-menu a {
    display: block;
    padding: 11px 4px;
    color: var(--mist-700);
    font-weight: 700;
}

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

.hero {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
    background: var(--mist-900);
}

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

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

.hero-bg,
.hero-mask,
.detail-backdrop,
.detail-backdrop-mask {
    position: absolute;
    inset: 0;
}

.hero-bg,
.detail-backdrop {
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
}

.hero-mask {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.56) 44%, rgba(15, 23, 42, 0.12) 100%), linear-gradient(0deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0) 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(var(--max), calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 0 130px;
    color: #ffffff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.hero-title,
.detail-intro h1,
.sub-hero h1 {
    max-width: 780px;
    margin: 18px 0 16px;
    font-size: clamp(38px, 6vw, 70px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-summary,
.detail-intro p,
.sub-hero p {
    max-width: 690px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.8;
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 26px;
}

.hero-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

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

.btn-primary,
.btn-ghost,
.more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 19px;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--fog-600), var(--fog-700));
    box-shadow: 0 18px 36px rgba(2, 132, 199, 0.28);
}

.btn-primary:hover,
.btn-ghost:hover,
.more-link:hover {
    transform: translateY(-2px);
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
}

.hero-dots {
    position: absolute;
    z-index: 3;
    right: max(24px, calc((100% - var(--max)) / 2));
    bottom: 88px;
    display: flex;
    align-items: center;
    gap: 9px;
}

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

.hero-dot.active {
    width: 32px;
    background: #ffffff;
}

.hero-category-strip {
    position: absolute;
    left: 50%;
    bottom: 22px;
    z-index: 4;
    width: min(var(--max), calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.hero-category-strip a {
    flex: 0 0 auto;
    padding: 9px 14px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

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

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

.soft-section {
    width: 100%;
    max-width: none;
    padding-left: max(16px, calc((100% - var(--max)) / 2));
    padding-right: max(16px, calc((100% - var(--max)) / 2));
    background: linear-gradient(180deg, var(--mist-50), #ffffff);
}

.section-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.section-title-row.align-start {
    align-items: flex-start;
}

.section-title-row h2,
.filter-panel h2,
.ranking-card h2,
.detail-section h2,
.detail-side h2 {
    margin: 0;
    color: var(--mist-900);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.section-title-row p,
.filter-panel p {
    max-width: 680px;
    margin: 9px 0 0;
    color: var(--mist-600);
    line-height: 1.75;
}

.more-link {
    color: var(--fog-700);
    background: rgba(14, 165, 233, 0.10);
}

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

.category-tile,
.category-overview-card {
    min-height: 145px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.category-tile span,
.category-overview-card strong {
    display: block;
    margin-bottom: 9px;
    color: var(--mist-900);
    font-size: 20px;
    font-weight: 900;
}

.category-tile em,
.category-overview-card em {
    color: var(--mist-600);
    font-size: 14px;
    line-height: 1.7;
    font-style: normal;
}

.category-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    margin-bottom: 16px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: var(--fog-600);
}

.inline-search {
    margin: -6px 0 24px;
}

.inline-search input,
.filter-controls input,
.filter-controls select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--mist-200);
    border-radius: 13px;
    padding: 0 15px;
    color: var(--mist-900);
    font: inherit;
    background: #ffffff;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.inline-search input:focus,
.filter-controls input:focus,
.filter-controls select:focus {
    border-color: rgba(2, 132, 199, 0.55);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.10);
}

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

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

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

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

.movie-card {
    min-width: 0;
}

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

.movie-card-link {
    display: block;
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--mist-200);
    box-shadow: var(--shadow-card);
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0);
    transition: background 0.25s ease;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(2, 132, 199, 0.88);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.75);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-card-link:hover .poster-shade {
    background: rgba(15, 23, 42, 0.34);
}

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

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

.movie-card-body strong {
    display: block;
    overflow: hidden;
    color: var(--mist-900);
    font-size: 16px;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.movie-card-link:hover strong {
    color: var(--fog-700);
}

.movie-meta,
.movie-desc {
    display: block;
    color: var(--mist-600);
    font-size: 13px;
    line-height: 1.55;
}

.movie-desc {
    display: -webkit-box;
    margin-top: 4px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.wide-scroll {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 2px 0 18px;
    scrollbar-width: none;
}

.wide-scroll::-webkit-scrollbar,
.hero-category-strip::-webkit-scrollbar {
    display: none;
}

.wide-card {
    position: relative;
    flex: 0 0 290px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--mist-200);
    box-shadow: var(--shadow-card);
}

.wide-card img,
.square-card img,
.masonry-card img,
.highlight-card img,
.ranking-row img,
.compact-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wide-card::after,
.square-card::after,
.masonry-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.82), transparent 62%);
}

.wide-card span,
.square-card span,
.masonry-card span {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    z-index: 2;
    color: #ffffff;
    font-weight: 900;
}

.highlight-list {
    display: grid;
    gap: 24px;
}

.highlight-card {
    display: grid;
    grid-template-columns: 46% 1fr;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.highlight-card img {
    min-height: 260px;
}

.highlight-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 30px;
}

.highlight-body strong {
    font-size: 26px;
    line-height: 1.2;
    color: var(--mist-900);
}

.highlight-body em,
.highlight-body small {
    color: var(--mist-600);
    font-size: 15px;
    line-height: 1.8;
    font-style: normal;
}

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

.square-card {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--mist-200);
    box-shadow: var(--shadow-card);
}

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

.masonry-grid {
    columns: 3 220px;
    column-gap: 18px;
}

.masonry-card {
    position: relative;
    display: block;
    break-inside: avoid;
    margin: 0 0 18px;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--mist-200);
    box-shadow: var(--shadow-card);
}

.masonry-card img {
    min-height: 180px;
}

.ranking-card {
    position: sticky;
    top: 86px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--mist-200);
}

.ranking-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.ranking-head h2 {
    font-size: 24px;
}

.ranking-head a {
    color: var(--fog-700);
    font-weight: 800;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 13px;
    background: var(--mist-50);
    transition: transform 0.2s ease, background 0.2s ease;
}

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

.rank-num {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #ffffff;
    background: var(--fog-600);
    font-weight: 900;
}

.rank-item strong,
.rank-item em {
    grid-column: 2;
}

.rank-item strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-item em {
    margin-top: -8px;
    color: var(--mist-600);
    font-size: 12px;
    font-style: normal;
}

.sub-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.28), transparent 34%), linear-gradient(135deg, var(--mist-900), #082f49);
    color: #ffffff;
}

.sub-hero > div {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 88px 0 92px;
}

.sub-hero span {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-weight: 800;
}

.sub-hero h1 {
    margin-bottom: 12px;
}

.sub-hero p {
    margin-bottom: 0;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: 24px;
    align-items: center;
    margin-bottom: 28px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid var(--mist-200);
    box-shadow: var(--shadow-card);
}

.slim-filter {
    margin-bottom: 32px;
}

.filter-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 12px;
}

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

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

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

.ranking-row {
    display: grid;
    grid-template-columns: 70px 96px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid var(--mist-200);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.ranking-number {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--fog-600), var(--rose-500));
    font-size: 20px;
    font-weight: 900;
}

.ranking-row img {
    width: 96px;
    height: 128px;
    border-radius: 12px;
    background: var(--mist-200);
}

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

.ranking-copy strong {
    margin-bottom: 7px;
    color: var(--mist-900);
    font-size: 20px;
}

.ranking-copy em,
.ranking-copy small {
    color: var(--mist-600);
    line-height: 1.7;
    font-style: normal;
}

.detail-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: var(--mist-900);
    color: #ffffff;
}

.detail-backdrop {
    filter: blur(3px);
    opacity: 0.72;
}

.detail-backdrop-mask {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.30)), linear-gradient(0deg, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0) 54%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0 78px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 8px 0 56px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}

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

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

.detail-poster {
    width: 240px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.detail-main {
    padding-top: 48px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
    aspect-ratio: 16 / 9;
}

.movie-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.20));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-play {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--fog-600);
    box-shadow: 0 20px 50px rgba(2, 132, 199, 0.38);
    font-size: 25px;
}

.player-overlay strong {
    max-width: 80%;
    text-align: center;
    font-size: clamp(20px, 3vw, 34px);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    margin-top: 32px;
}

.detail-content,
.detail-side {
    min-width: 0;
}

.detail-section,
.detail-side {
    padding: 26px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid var(--mist-200);
    box-shadow: var(--shadow-card);
}

.detail-section + .detail-section {
    margin-top: 20px;
}

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

.detail-section p {
    margin: 0;
    color: var(--mist-700);
    line-height: 1.9;
    font-size: 16px;
}

.meta-section dl {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.meta-section div {
    padding: 14px;
    border-radius: 13px;
    background: var(--mist-50);
}

.meta-section dt {
    margin-bottom: 5px;
    color: var(--mist-500);
    font-size: 13px;
}

.meta-section dd {
    margin: 0;
    color: var(--mist-900);
    font-weight: 800;
}

.compact-list {
    display: grid;
    gap: 13px;
}

.compact-card {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.compact-card img {
    width: 78px;
    height: 104px;
    border-radius: 11px;
    background: var(--mist-200);
}

.compact-card strong,
.compact-card em {
    display: block;
}

.compact-card strong {
    overflow: hidden;
    margin-bottom: 6px;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--mist-900);
}

.compact-card em {
    display: -webkit-box;
    overflow: hidden;
    color: var(--mist-600);
    font-size: 13px;
    line-height: 1.55;
    font-style: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.site-footer {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.76);
    background: var(--mist-900);
}

.footer-inner {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
    padding: 48px 0 32px;
}

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

.site-footer p {
    margin: 0;
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 15px;
    color: #ffffff;
    font-size: 18px;
}

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

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

.copyright {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    text-align: center;
    font-size: 13px;
}

@media (max-width: 1024px) {
    .nav-links {
        gap: 16px;
    }

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

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

    .layout-two,
    .detail-layout,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .ranking-card {
        position: static;
    }
}

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

    .menu-toggle {
        display: flex;
    }

    .hero {
        min-height: 620px;
    }

    .hero-content {
        padding-bottom: 150px;
    }

    .hero-dots {
        left: 16px;
        right: auto;
        bottom: 98px;
    }

    .section-title-row,
    .ranking-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .highlight-card,
    .detail-intro,
    .footer-inner,
    .ranking-row {
        grid-template-columns: 1fr;
    }

    .highlight-card img {
        min-height: 220px;
    }

    .detail-poster {
        width: 190px;
    }

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

@media (max-width: 560px) {
    .site-nav {
        width: calc(100% - 24px);
    }

    .site-logo span:last-child {
        font-size: 18px;
    }

    .hero-title,
    .detail-intro h1,
    .sub-hero h1 {
        font-size: 34px;
    }

    .hero-summary,
    .detail-intro p,
    .sub-hero p {
        font-size: 15px;
    }

    .section {
        width: calc(100% - 24px);
        padding: 50px 0;
    }

    .soft-section {
        width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    .movie-grid,
    .category-movie-grid,
    .compact-grid,
    .related-grid,
    .category-grid,
    .category-overview-grid,
    .square-grid {
        gap: 14px;
    }

    .movie-card-body strong {
        font-size: 14px;
    }

    .movie-meta,
    .movie-desc {
        font-size: 12px;
    }

    .wide-card {
        flex-basis: 240px;
    }

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

    .meta-section dl {
        grid-template-columns: 1fr;
    }
}
