:root {
    color-scheme: light;
    --page-bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --cyan: #06b6d4;
    --amber: #f59e0b;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 14px 35px rgba(15, 23, 42, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--page-bg);
    color: var(--slate-900);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.94);
    color: #ffffff;
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 30px rgba(2, 6, 23, 0.24);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.logo-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

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

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

.desktop-nav a,
.mobile-nav a {
    color: var(--slate-300);
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: #ffffff;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-nav input {
    width: 250px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    outline: none;
    color: #ffffff;
    background: rgba(51, 65, 85, 0.9);
    border-radius: 999px;
    padding: 10px 16px;
}

.header-search input::placeholder,
.mobile-nav input::placeholder {
    color: #94a3b8;
}

.header-search button,
.mobile-nav button,
.large-search button,
.primary-button {
    border: 0;
    color: #ffffff;
    background: var(--blue);
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-nav button:hover,
.large-search button:hover,
.primary-button:hover {
    transform: translateY(-1px);
    background: var(--blue-dark);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.28);
}

.mobile-menu-button {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #ffffff;
    background: rgba(51, 65, 85, 0.8);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    gap: 10px;
    flex-direction: column;
}

.mobile-nav.is-open {
    display: flex;
}

.mobile-nav form {
    display: flex;
    gap: 8px;
}

.mobile-nav input {
    width: 100%;
}

.hero-carousel {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: var(--slate-950);
    color: #ffffff;
}

.hero-track {
    position: relative;
    min-height: 620px;
}

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

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

.hero-image {
    width: 100%;
    height: 100%;
    min-height: 620px;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 20%, rgba(59, 130, 246, 0.28), transparent 34%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.82) 42%, rgba(15, 23, 42, 0.38) 70%, rgba(2, 6, 23, 0.86) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.98) 0%, transparent 30%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: max(32px, calc((100vw - 1200px) / 2));
    width: min(650px, calc(100% - 64px));
    transform: translateY(-50%);
}

.hero-site-title,
.section-kicker {
    display: inline-flex;
    margin-bottom: 12px;
    color: #93c5fd;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-eyebrow {
    margin: 0 0 14px;
    color: #bfdbfe;
    font-weight: 700;
}

.hero-content h1,
.hero-content h2 {
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
}

.hero-summary {
    max-width: 610px;
    margin: 22px 0 0;
    color: #dbeafe;
    font-size: 18px;
}

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

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

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span,
.detail-tags span {
    color: #e0f2fe;
    border: 1px solid rgba(147, 197, 253, 0.35);
    background: rgba(15, 23, 42, 0.46);
    padding: 7px 12px;
}

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

.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.45);
    color: #ffffff;
    background: rgba(15, 23, 42, 0.46);
    padding: 10px 18px;
    font-weight: 700;
    backdrop-filter: blur(12px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover {
    transform: translateY(-1px);
    background: rgba(30, 41, 59, 0.78);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(226, 232, 240, 0.28);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.48);
    font-size: 34px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.hero-carousel:hover .hero-arrow {
    opacity: 1;
}

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

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 36px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.4);
    cursor: pointer;
}

.hero-dot.is-active {
    background: #ffffff;
}

.home-search-panel {
    margin-top: -36px;
    position: relative;
    z-index: 8;
}

.large-search {
    display: flex;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.large-search input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--slate-200);
    outline: none;
    border-radius: 999px;
    padding: 14px 18px;
    background: #ffffff;
}

.section {
    padding: 68px 0;
}

.section-muted {
    background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
}

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

.section-heading h2,
.page-hero h1,
.detail-intro h1 {
    margin: 0;
    color: var(--slate-900);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-heading .section-kicker {
    margin-bottom: 6px;
    color: var(--blue);
}

.section-link {
    color: var(--blue);
    font-weight: 800;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 55px rgba(15, 23, 42, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--slate-800), var(--slate-950));
}

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

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

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

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.9);
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 800;
}

.play-mark {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.72);
    transform: scale(0.88);
    transition: transform 0.2s ease, background 0.2s ease;
}

.movie-card:hover .play-mark {
    transform: scale(1);
    background: var(--blue);
}

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

.movie-title {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: var(--slate-900);
    font-size: 16px;
    font-weight: 850;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-title:hover {
    color: var(--blue);
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    color: var(--slate-500);
    font-size: 12px;
}

.movie-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 6px;
}

.tag-row span {
    color: var(--slate-700);
    background: var(--surface-soft);
    padding: 5px 8px;
}

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

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

.category-card {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    background: var(--slate-900);
}

.category-card img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    opacity: 0.72;
    transition: transform 0.42s ease, opacity 0.42s ease;
}

.category-card:hover img {
    transform: scale(1.08);
    opacity: 0.84;
}

.category-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.86) 100%);
}

.category-card strong,
.category-card em {
    position: absolute;
    left: 20px;
    right: 20px;
    color: #ffffff;
}

.category-card strong {
    bottom: 58px;
    font-size: 22px;
    font-weight: 900;
}

.category-card em {
    bottom: 20px;
    color: #dbeafe;
    font-size: 13px;
    font-style: normal;
}

.ranking-panel,
.category-overview-card,
.text-card,
.aside-card,
.filter-panel {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.ranking-panel {
    position: sticky;
    top: 94px;
    padding: 24px;
}

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

.compact-heading h2 {
    font-size: 28px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px 12px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    background: var(--surface-soft);
    transition: background 0.2s ease, transform 0.2s ease;
}

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

.rank-item span {
    grid-row: span 2;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    font-weight: 900;
}

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

.rank-item em {
    overflow: hidden;
    color: var(--slate-500);
    font-size: 12px;
    font-style: normal;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.page-hero {
    color: #ffffff;
    background:
        radial-gradient(circle at 75% 10%, rgba(37, 99, 235, 0.34), transparent 34%),
        linear-gradient(135deg, var(--slate-950), var(--slate-800));
    padding: 86px 0;
}

.page-hero h1,
.page-hero p {
    color: #ffffff;
}

.page-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    color: #dbeafe;
    font-size: 18px;
}

.slim-hero {
    padding: 72px 0;
}

.category-overview-list {
    display: grid;
    gap: 22px;
}

.category-overview-card {
    padding: 26px;
}

.category-overview-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 10px;
}

.category-overview-card h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
}

.category-overview-card p {
    margin: 0 0 20px;
    color: var(--slate-600);
}

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

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

.mini-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: var(--surface-soft);
    transition: transform 0.2s ease, background 0.2s ease;
}

.mini-card:hover {
    transform: translateY(-2px);
    background: #e0e7ff;
}

.mini-card img {
    width: 64px;
    height: 88px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--slate-800);
}

.mini-card strong,
.mini-card em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-card strong {
    color: var(--slate-900);
    font-weight: 850;
    white-space: nowrap;
}

.mini-card em {
    color: var(--slate-500);
    font-size: 12px;
    font-style: normal;
    margin-top: 5px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 26px;
    padding: 20px;
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--slate-700);
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    min-height: 46px;
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    outline: none;
    background: #ffffff;
    padding: 0 14px;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.filter-selects {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-selects label {
    min-width: 150px;
}

.empty-state {
    margin: 30px 0 0;
    border-radius: var(--radius-md);
    background: #ffffff;
    padding: 28px;
    color: var(--slate-600);
    text-align: center;
}

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

.ranking-feature {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    color: #ffffff;
    background: var(--slate-900);
    box-shadow: var(--shadow-card);
}

.ranking-feature img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    opacity: 0.78;
    transition: transform 0.42s ease;
}

.ranking-feature:hover img {
    transform: scale(1.08);
}

.ranking-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 12%, rgba(2, 6, 23, 0.92) 100%);
}

.ranking-number,
.ranking-feature strong,
.ranking-feature em {
    position: absolute;
    z-index: 2;
    left: 22px;
    right: 22px;
}

.ranking-number {
    top: 20px;
    width: fit-content;
    border-radius: 999px;
    background: var(--amber);
    padding: 6px 12px;
    font-weight: 900;
}

.ranking-feature strong {
    bottom: 54px;
    font-size: 26px;
    font-weight: 900;
}

.ranking-feature em {
    bottom: 24px;
    color: #dbeafe;
    font-style: normal;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 58px 72px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.ranking-row img {
    width: 72px;
    height: 96px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--slate-800);
}

.ranking-row-num {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--slate-800), var(--blue));
    font-weight: 900;
}

.ranking-row-main strong,
.ranking-row-main em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-row-main strong {
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
}

.ranking-row-main em {
    display: -webkit-box;
    margin-top: 5px;
    color: var(--slate-600);
    font-style: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ranking-row-meta {
    color: var(--slate-500);
    font-weight: 700;
    white-space: nowrap;
}

.detail-main {
    background: #f8fafc;
}

.detail-hero {
    color: #ffffff;
    background:
        radial-gradient(circle at 78% 18%, rgba(37, 99, 235, 0.38), transparent 34%),
        linear-gradient(135deg, var(--slate-950), var(--slate-800));
    padding: 52px 0 68px;
}

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

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
    background: var(--slate-800);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #bfdbfe;
    font-weight: 700;
}

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

.detail-intro h1,
.detail-intro .section-kicker {
    color: #ffffff;
}

.detail-one-line {
    max-width: 780px;
    margin: 18px 0 0;
    color: #dbeafe;
    font-size: 19px;
}

.detail-tags {
    margin-top: 20px;
}

.inline-actions .ghost-button {
    color: #ffffff;
}

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

.detail-content {
    display: grid;
    gap: 22px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000000;
    box-shadow: var(--shadow-soft);
}

.video-element {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.2), rgba(2, 6, 23, 0.58));
    cursor: pointer;
}

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

.player-icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--blue);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.36);
    font-size: 32px;
}

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 14px;
    z-index: 3;
    margin: 0;
    color: #fee2e2;
    text-align: center;
    font-weight: 700;
}

.text-card,
.aside-card {
    padding: 24px;
}

.text-card h2,
.aside-card h2 {
    margin: 0 0 14px;
    color: var(--slate-900);
    font-size: 24px;
    font-weight: 900;
}

.text-card p {
    margin: 0;
    color: var(--slate-700);
    font-size: 16px;
}

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

.detail-meta-card div {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--slate-200);
}

.detail-meta-card div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.detail-meta-card dt {
    color: var(--slate-500);
    font-weight: 800;
}

.detail-meta-card dd {
    margin: 0;
    color: var(--slate-900);
    font-weight: 700;
}

.detail-aside {
    position: sticky;
    top: 94px;
    display: grid;
    gap: 18px;
}

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

.quick-links a {
    border-radius: 14px;
    background: var(--surface-soft);
    padding: 12px 14px;
    color: var(--slate-700);
    font-weight: 800;
}

.quick-links a:hover {
    color: #ffffff;
    background: var(--blue);
}

.site-footer {
    color: var(--slate-300);
    background: var(--slate-950);
    padding: 36px 0;
}

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

.footer-inner strong {
    color: #ffffff;
    font-size: 20px;
}

.footer-inner p {
    max-width: 620px;
    margin: 8px 0 0;
}

.footer-inner nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-content: start;
}

.footer-inner a:hover {
    color: #ffffff;
}

@media (max-width: 1100px) {
    .home-grid,
    .full-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .ranking-panel,
    .detail-aside {
        position: static;
    }
}

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

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

    .hero-carousel,
    .hero-track,
    .hero-image {
        min-height: 560px;
    }

    .hero-content {
        left: 24px;
        width: calc(100% - 48px);
    }

    .hero-arrow {
        opacity: 1;
        width: 44px;
        height: 44px;
        font-size: 28px;
    }

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

    .category-grid,
    .ranking-feature-grid,
    .mini-card-grid {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 640px) {
    .container,
    .header-inner,
    .mobile-nav,
    .footer-inner {
        width: min(100% - 24px, 1200px);
    }

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

    .hero-carousel,
    .hero-track,
    .hero-image {
        min-height: 620px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 38px;
    }

    .hero-summary {
        font-size: 16px;
    }

    .hero-prev,
    .hero-next {
        display: none;
    }

    .large-search,
    .mobile-nav form {
        flex-direction: column;
    }

    .section {
        padding: 46px 0;
    }

    .section-heading,
    .category-overview-head,
    .footer-inner {
        align-items: start;
        flex-direction: column;
    }

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

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

    .movie-title {
        font-size: 15px;
    }

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

    .detail-poster {
        max-width: 220px;
    }

    .ranking-row {
        grid-template-columns: 44px 60px minmax(0, 1fr);
    }

    .ranking-row img {
        width: 60px;
        height: 82px;
    }

    .ranking-row-meta {
        grid-column: 3;
    }

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

@media (max-width: 420px) {
    .home-grid,
    .full-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }
}
