:root {
    color-scheme: light;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --stone-50: #fafaf9;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --orange-600: #ea580c;
    --orange-500: #f97316;
    --rose-500: #f43f5e;
    --cyan-500: #06b6d4;
    --teal-500: #14b8a6;
    --blue-500: #3b82f6;
    --violet-500: #8b5cf6;
    --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 20px 45px rgba(15, 23, 42, 0.14);
    --shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.22);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #fafaf9 48%, #f1f5f9 100%);
    color: var(--slate-800);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fff;
    background: linear-gradient(90deg, #1e293b 0%, #292524 50%, #1e293b 100%);
    border-bottom: 1px solid rgba(245, 158, 11, 0.24);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.22);
}

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

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

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.32);
    transition: transform 0.3s ease;
}

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

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-text strong {
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1;
    background: linear-gradient(90deg, var(--amber-400), var(--orange-500));
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.brand-text em {
    font-size: 12px;
    color: #cbd5e1;
    font-style: normal;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.desktop-nav::-webkit-scrollbar {
    display: none;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 700;
    color: #e2e8f0;
    white-space: nowrap;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.mobile-nav {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 10px 0 18px;
    display: grid;
    gap: 8px;
}

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

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

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: clamp(620px, 78vh, 780px);
    color: #fff;
    background: linear-gradient(135deg, #020617, #1c1917 50%, #0f172a);
}

.hero-grid-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.24;
    background-image: linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 64px 64px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
    align-items: center;
    gap: clamp(30px, 6vw, 76px);
    padding: clamp(52px, 9vw, 98px) 0;
    opacity: 0;
    transform: translateX(28px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.hero-slide::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.72)), var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: blur(8px) saturate(0.95);
    transform: scale(1.08);
    opacity: 0.35;
    z-index: -1;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 24px;
}

.eyebrow {
    display: inline-flex;
    width: max-content;
    padding: 8px 14px;
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.hero-content h1,
.sub-hero h1,
.detail-copy h1,
.intro-grid h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.hero-content p,
.sub-hero p,
.detail-copy p,
.intro-grid p {
    margin: 0;
    max-width: 820px;
    color: #cbd5e1;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.9;
}

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

.hero-tags span {
    padding: 8px 13px;
    border-radius: 999px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(12px);
    font-size: 13px;
    font-weight: 700;
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 900;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.primary-button {
    color: #fff;
    background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 18px 35px rgba(249, 115, 22, 0.28);
}

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

.ghost-button {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.hero-poster,
.detail-poster {
    position: relative;
    border-radius: 26px;
    padding: 5px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: var(--shadow-lg);
}

.hero-poster::before,
.detail-poster::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.75), rgba(249, 115, 22, 0.32));
    filter: blur(22px);
    opacity: 0.75;
    z-index: -1;
}

.hero-poster img,
.detail-poster img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 21px;
}

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

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

.hero-dot.active {
    width: 38px;
    background: linear-gradient(90deg, var(--amber-400), var(--orange-500));
}

.content-section {
    padding: clamp(52px, 7vw, 88px) 0;
}

.warm-section {
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.rank-section {
    background: linear-gradient(135deg, #f1f5f9, #fafaf9);
}

.intro-band {
    color: #fff;
    background: linear-gradient(135deg, #1e293b, #292524 54%, #0f172a);
}

.intro-grid,
.rank-split,
.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: stretch;
}

.intro-card,
.rank-panel,
.movie-facts,
.watch-card,
.article-body {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
}

.intro-card {
    padding: 28px;
    color: var(--slate-800);
    display: grid;
    align-content: center;
    gap: 8px;
}

.intro-card strong {
    font-size: 28px;
    color: var(--slate-900);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.section-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--teal-500), var(--cyan-500));
    box-shadow: var(--shadow-sm);
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 36px);
    color: var(--slate-900);
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 4px 0 0;
    color: var(--slate-500);
}

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

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

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

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

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

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

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.featured-card {
    grid-column: span 2;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #cbd5e1, #f8fafc);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transform: scale(1.001);
    transition: transform 0.6s ease, filter 0.6s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.09);
    filter: saturate(1.08) contrast(1.04);
}

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.04) 58%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.play-chip {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 1;
    padding: 7px 11px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
    font-size: 12px;
    font-weight: 900;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    min-width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
    box-shadow: 0 12px 22px rgba(244, 63, 94, 0.25);
}

.card-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.card-title {
    color: var(--slate-900);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title:hover {
    color: var(--orange-600);
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--slate-500);
    font-size: 12px;
    font-weight: 700;
}

.card-body p {
    margin: 0;
    min-height: 44px;
    color: var(--slate-600);
    font-size: 13px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row span {
    padding: 5px 8px;
    border-radius: 8px;
    color: var(--slate-600);
    background: var(--slate-100);
    font-size: 12px;
    font-weight: 700;
}

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

.category-tile,
.category-card {
    min-height: 138px;
    padding: 22px;
    display: grid;
    align-content: end;
    gap: 10px;
    border-radius: var(--radius-md);
    color: #fff;
    background: linear-gradient(135deg, #1e293b, #292524 58%, #0f172a);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-tile::before,
.category-card::before {
    content: "";
    position: absolute;
    right: -34px;
    top: -34px;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.75), rgba(249, 115, 22, 0.2));
}

.category-tile:hover,
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.category-tile strong,
.category-card span {
    position: relative;
    font-size: 22px;
    font-weight: 950;
}

.category-tile span,
.category-card p {
    position: relative;
    margin: 0;
    color: #cbd5e1;
    line-height: 1.7;
}

.library-controls {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) repeat(4, minmax(120px, 180px));
    gap: 12px;
    align-items: end;
    padding: 16px;
    margin-bottom: 26px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
}

.search-box {
    display: grid;
    gap: 6px;
    color: var(--slate-500);
    font-size: 13px;
    font-weight: 900;
}

.filter-search,
.filter-select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    padding: 0 14px;
    color: var(--slate-800);
    background: #fff;
    outline: none;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.filter-search:focus,
.filter-select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.empty-result {
    margin-bottom: 24px;
    padding: 18px;
    border-radius: var(--radius-md);
    color: var(--slate-600);
    background: #fff;
    box-shadow: var(--shadow-sm);
    text-align: center;
    font-weight: 800;
}

.rank-split {
    align-items: start;
}

.rank-panel {
    padding: 30px;
    display: grid;
    gap: 18px;
    color: var(--slate-700);
}

.rank-panel h2 {
    margin: 0;
    color: var(--slate-900);
    font-size: 30px;
}

.rank-panel p {
    margin: 0;
    line-height: 1.8;
}

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

.small-rank-list {
    max-height: none;
}

.rank-row {
    display: grid;
    grid-template-columns: 46px 84px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rank-row:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.rank-num {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    font-weight: 950;
}

.rank-row img {
    width: 84px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    background: #e2e8f0;
}

.rank-info {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.rank-info strong {
    color: var(--slate-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.rank-action {
    color: var(--orange-600);
    font-weight: 900;
}

.sub-hero {
    color: #fff;
    background: radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.25), transparent 32%), linear-gradient(135deg, #020617, #1c1917 54%, #0f172a);
    padding: clamp(70px, 9vw, 118px) 0;
}

.sub-hero .section-inner {
    display: grid;
    gap: 18px;
}

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

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

.quick-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 13px;
    font-weight: 800;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #020617;
}

.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(10px) saturate(0.8);
    transform: scale(1.08);
    opacity: 0.42;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.76));
}

.detail-layout {
    position: relative;
    z-index: 1;
    min-height: 560px;
    padding: clamp(58px, 8vw, 100px) 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 500px);
    gap: 42px;
    align-items: center;
}

.detail-copy {
    display: grid;
    gap: 20px;
}

.detail-poster img {
    aspect-ratio: 16 / 9;
}

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

.watch-card {
    overflow: hidden;
    padding: 20px;
}

.watch-card h2,
.movie-facts h2,
.article-body h2 {
    margin: 0 0 18px;
    color: var(--slate-900);
    font-size: 26px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #020617;
    box-shadow: var(--shadow-lg);
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    color: #fff;
    text-align: center;
    cursor: pointer;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(15, 23, 42, 0.22));
}

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

.player-play {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-size: 32px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.35);
}

.player-cover strong {
    font-size: clamp(20px, 3vw, 32px);
}

.player-cover em {
    font-style: normal;
    color: #fde68a;
    font-weight: 900;
}

.movie-facts {
    padding: 24px;
}

.movie-facts dl {
    margin: 0;
    display: grid;
    gap: 12px;
}

.movie-facts dl div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #e2e8f0;
}

.movie-facts dt {
    color: var(--slate-500);
    font-weight: 900;
}

.movie-facts dd {
    margin: 0;
    color: var(--slate-800);
    font-weight: 800;
}

.article-body {
    padding: clamp(24px, 4vw, 42px);
}

.article-body p {
    margin: 0 0 26px;
    color: var(--slate-700);
    font-size: 17px;
    line-height: 2;
}

.compact-card .card-body p {
    display: none;
}

.compact-card .tag-row {
    display: none;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(135deg, #020617, #1c1917 54%, #0f172a);
    border-top: 1px solid rgba(245, 158, 11, 0.22);
}

.footer-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 32px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    gap: 36px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: #fff;
    font-size: 22px;
    font-weight: 950;
}

.footer-brand p {
    max-width: 640px;
    margin: 0;
    line-height: 1.8;
    color: #94a3b8;
}

.footer-links h3 {
    margin: 0 0 14px;
    color: #fff;
}

.footer-links div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
}

.footer-links a:hover {
    color: #fde68a;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    color: #64748b;
    text-align: center;
}

[hidden] {
    display: none !important;
}

.is-card-hidden {
    display: none !important;
}

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

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

    .hero-slide,
    .detail-layout,
    .intro-grid,
    .rank-split,
    .detail-grid,
    .footer-shell {
        grid-template-columns: 1fr;
    }

    .hero-slide {
        align-content: center;
        padding-bottom: 92px;
    }

    .hero-poster,
    .detail-poster {
        max-width: 680px;
    }

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

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

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

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

    .brand-text em {
        display: none;
    }

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

    .hero-slide {
        gap: 28px;
    }

    .hero-content h1,
    .sub-hero h1,
    .detail-copy h1,
    .intro-grid h1 {
        font-size: clamp(32px, 11vw, 48px);
    }

    .hero-actions,
    .quick-links {
        flex-direction: column;
    }

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

    .content-section {
        padding: 44px 0;
    }

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

    .movie-grid,
    .highlight-grid,
    .featured-grid,
    .library-grid,
    .related-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .featured-card {
        grid-column: span 2;
    }

    .card-body {
        padding: 13px;
    }

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

    .card-body p,
    .tag-row {
        display: none;
    }

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

    .rank-row {
        grid-template-columns: 40px 70px minmax(0, 1fr);
    }

    .rank-action {
        display: none;
    }

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

    .detail-poster {
        order: -1;
    }

    .movie-facts dl div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (max-width: 460px) {
    .movie-grid,
    .highlight-grid,
    .featured-grid,
    .library-grid,
    .related-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .featured-card {
        grid-column: span 1;
    }

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