:root {
    --color-blue-50: #eff6ff;
    --color-blue-100: #dbeafe;
    --color-blue-500: #3b82f6;
    --color-blue-600: #2563eb;
    --color-blue-700: #1d4ed8;
    --color-teal-500: #14b8a6;
    --color-teal-600: #0d9488;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.18);
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
}

.nav-shell {
    max-width: var(--max-width);
    height: 72px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    font-weight: 800;
    color: var(--color-gray-900);
}

.brand-invert {
    color: #ffffff;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-blue-600), var(--color-teal-500));
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.brand-mark svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.brand-text {
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

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

.nav-link {
    padding: 10px 12px;
    border-radius: 999px;
    color: var(--color-gray-700);
    font-size: 0.95rem;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--color-blue-600);
    background: var(--color-blue-50);
}

.header-search {
    width: 280px;
    height: 42px;
    display: flex;
    align-items: center;
    border: 1px solid var(--color-gray-200);
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff;
}

.header-search input {
    width: 100%;
    min-width: 0;
    height: 100%;
    border: 0;
    padding: 0 14px;
    outline: 0;
    color: var(--color-gray-800);
}

.header-search button,
.mobile-search button {
    height: 100%;
    border: 0;
    padding: 0 16px;
    color: #ffffff;
    background: var(--color-blue-600);
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--color-blue-50);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--color-blue-600);
}

.mobile-menu {
    display: none;
    padding: 12px 20px 20px;
    border-top: 1px solid var(--color-gray-200);
    background: #ffffff;
}

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

.mobile-nav-link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--color-gray-700);
    font-weight: 700;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: var(--color-blue-600);
    background: var(--color-blue-50);
}

.mobile-search {
    display: flex;
    overflow: hidden;
    height: 44px;
    margin-top: 12px;
    border: 1px solid var(--color-gray-200);
    border-radius: 14px;
}

.mobile-search input {
    flex: 1;
    border: 0;
    padding: 0 12px;
    outline: 0;
}

.hero-slider {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 52%, #0f172a 100%);
}

.hero-slider::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image: linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
    background-size: 32px 32px;
}

.hero-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    right: -140px;
    top: 100px;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.32);
    filter: blur(20px);
}

.hero-inner {
    position: relative;
    max-width: var(--max-width);
    min-height: 680px;
    margin: 0 auto;
    padding: 70px 20px 84px;
}

.hero-slide {
    display: none;
    min-height: 526px;
    grid-template-columns: minmax(0, 1.06fr) minmax(280px, 0.72fr);
    align-items: center;
    gap: 52px;
}

.hero-slide.is-active {
    display: grid;
    animation: fadeIn 0.45s ease both;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    filter: blur(2px) saturate(1.15);
}

.hero-slide-content,
.hero-poster {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #bfdbfe;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-slide h1,
.sub-hero h1,
.detail-intro h1 {
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 5.2rem);
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.hero-slide p {
    max-width: 680px;
    margin: 22px 0 0;
    color: #dbeafe;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions,
.detail-actions,
.sub-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-light {
    color: var(--color-blue-700);
    background: #ffffff;
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
}

.btn-primary {
    color: #ffffff;
    background: var(--color-blue-600);
}

.btn-outline {
    color: var(--color-blue-600);
    border-color: var(--color-blue-600);
    background: #ffffff;
}

.hero-poster {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: 30px;
    box-shadow: var(--shadow-xl);
    transform: rotate(2deg);
    background: rgba(255, 255, 255, 0.12);
}

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

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-poster span {
    position: absolute;
    right: 18px;
    top: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 900;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(12px);
}

.slider-dots {
    position: absolute;
    left: 20px;
    bottom: 42px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 36px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

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

.feature-strip {
    max-width: var(--max-width);
    margin: -58px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.feature-item {
    min-height: 116px;
    padding: 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(14px);
}

.feature-item strong {
    display: block;
    color: var(--color-blue-600);
    font-size: 2rem;
    line-height: 1;
}

.feature-item span {
    display: block;
    margin-top: 10px;
    color: var(--color-gray-600);
    font-weight: 700;
}

.page-section {
    padding: 76px 0;
    background: #ffffff;
}

.muted-section {
    background: var(--color-gray-100);
}

.section-dark {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-gray-900), var(--color-gray-800));
}

.section-shell {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.55rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--color-gray-600);
}

.section-dark .section-heading p {
    color: #cbd5e1;
}

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

.section-dark .section-more {
    color: #bfdbfe;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: var(--shadow-md);
}

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--color-blue-600), var(--color-teal-500));
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.06));
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.movie-year,
.movie-play {
    position: absolute;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
}

.movie-year {
    top: 12px;
    right: 12px;
}

.movie-play {
    left: 12px;
    bottom: 12px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--color-gray-500);
    font-size: 0.82rem;
    font-weight: 700;
}

.movie-card h2 {
    margin: 10px 0 8px;
    color: var(--color-gray-900);
    font-size: 1.08rem;
    line-height: 1.28;
}

.movie-card h2 a:hover {
    color: var(--color-blue-600);
}

.movie-card p {
    min-height: 48px;
    margin: 0;
    color: var(--color-gray-600);
    font-size: 0.92rem;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--color-blue-700);
    background: var(--color-blue-50);
    font-size: 0.78rem;
    font-weight: 800;
}

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

.category-tile {
    min-height: 230px;
    padding: 28px;
    border-radius: var(--radius-lg);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, background 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.14);
}

.tile-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 56px;
    padding: 0 10px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-blue-600), var(--color-teal-500));
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.32);
}

.category-tile strong,
.category-tile em {
    display: block;
}

.category-tile strong {
    margin-top: 24px;
    font-size: 1.28rem;
}

.category-tile em {
    margin-top: 10px;
    color: #d1d5db;
    font-style: normal;
}

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

.ranking-panel,
.side-card,
.content-card,
.player-card,
.stat-card-list {
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.ranking-panel {
    position: sticky;
    top: 96px;
    padding: 20px;
}

.panel-heading h2,
.side-card h2,
.content-card h2,
.stat-card-list h2 {
    margin: 0 0 6px;
    font-size: 1.35rem;
    line-height: 1.2;
}

.panel-heading p {
    margin: 0 0 18px;
    color: var(--color-gray-600);
}

.compact-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid var(--color-gray-200);
}

.compact-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-blue-600), var(--color-teal-500));
}

.compact-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compact-info {
    min-width: 0;
}

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

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

.compact-info em {
    margin: 3px 0;
    color: var(--color-gray-500);
    font-style: normal;
    font-size: 0.82rem;
}

.compact-info span {
    color: var(--color-gray-600);
    font-size: 0.86rem;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-badge {
    position: absolute;
    left: 8px;
    top: 8px;
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-size: 0.86rem;
    font-weight: 900;
}

.cta-section {
    padding: 70px 20px 92px;
    background: #ffffff;
}

.cta-card {
    max-width: 880px;
    margin: 0 auto;
    padding: 56px;
    border-radius: var(--radius-xl);
    text-align: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-blue-600), var(--color-teal-600));
    box-shadow: var(--shadow-xl);
}

.cta-card h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.cta-card p {
    max-width: 620px;
    margin: 18px auto 0;
    color: #dbeafe;
    font-size: 1.08rem;
}

.cta-card .hero-actions {
    justify-content: center;
}

.sub-hero {
    padding: 78px 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-blue-600), var(--color-teal-600));
}

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.filter-panel input,
.filter-panel select,
.search-page-form input {
    height: 46px;
    border: 1px solid var(--color-gray-200);
    border-radius: 12px;
    padding: 0 14px;
    color: var(--color-gray-800);
    background: #ffffff;
    outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-page-form input:focus {
    border-color: var(--color-blue-500);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
}

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

.filter-count {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--color-gray-500);
    font-size: 0.92rem;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 38px;
}

.pagination a,
.pagination span {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 12px;
    color: var(--color-gray-700);
    background: #ffffff;
    border: 1px solid var(--color-gray-200);
    font-weight: 800;
}

.pagination .is-current {
    color: #ffffff;
    background: var(--color-blue-600);
    border-color: var(--color-blue-600);
}

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

.category-overview-card {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    border-radius: var(--radius-lg);
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-blue-600), var(--color-teal-500));
    box-shadow: var(--shadow-md);
}

.category-overview-card img,
.category-overview-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.category-overview-card img {
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.category-overview-shade {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.18));
}

.category-overview-card .tile-count,
.category-overview-card strong,
.category-overview-card em {
    position: relative;
    z-index: 2;
}

.category-overview-card strong {
    margin-top: 18px;
    font-size: 1.25rem;
}

.category-overview-card em {
    margin-top: 8px;
    color: #dbeafe;
    font-style: normal;
    font-size: 0.92rem;
}

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

.stat-card-list {
    padding: 24px;
}

.stat-card-list ul {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
}

.stat-card-list li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid var(--color-gray-200);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
}

.ranking-table th,
.ranking-table td {
    padding: 14px;
    border-bottom: 1px solid var(--color-gray-200);
    text-align: left;
    vertical-align: middle;
}

.ranking-table th {
    color: var(--color-gray-600);
    background: var(--color-gray-50);
    font-size: 0.88rem;
}

.table-rank {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--color-blue-700);
    background: var(--color-blue-50);
    font-weight: 900;
}

.rank-title {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.rank-title img {
    width: 82px;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--color-blue-600), var(--color-teal-500));
}

.rank-title strong,
.rank-title em {
    display: block;
}

.rank-title em {
    margin-top: 4px;
    color: var(--color-gray-500);
    font-style: normal;
    font-size: 0.86rem;
}

.ranking-hero-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.ranking-hero-card {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    border-radius: var(--radius-lg);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.ranking-hero-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.ranking-hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.1));
}

.ranking-hero-card strong,
.ranking-hero-card em,
.ranking-hero-card .rank-badge {
    position: relative;
    z-index: 2;
}

.ranking-hero-card strong {
    font-size: 1.3rem;
}

.ranking-hero-card em {
    color: #dbeafe;
    font-style: normal;
}

.rank-badge.big {
    width: 50px;
    height: 50px;
    left: 18px;
    top: 18px;
    font-size: 1.15rem;
}

.search-page-form {
    display: grid;
    grid-template-columns: minmax(260px, 560px) auto;
    gap: 12px;
    margin-top: 28px;
}

.search-status {
    margin-bottom: 24px;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    color: var(--color-gray-700);
    background: var(--color-blue-50);
    font-weight: 700;
}

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

.detail-bg,
.detail-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.detail-bg {
    object-fit: cover;
    opacity: 0.35;
    filter: blur(1px) saturate(1.15);
}

.detail-overlay {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.48));
}

.detail-shell {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    min-height: 560px;
    margin: 0 auto;
    padding: 64px 20px;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 46px;
    align-items: center;
}

.detail-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--color-blue-600), var(--color-teal-500));
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-poster span {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 7px 11px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.48);
    font-weight: 900;
}

.detail-intro p {
    max-width: 760px;
    margin: 22px 0 0;
    color: #dbeafe;
    font-size: 1.18rem;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

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

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

.player-card {
    overflow: hidden;
    margin-bottom: 24px;
}

.player-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.24));
    cursor: pointer;
}

.player-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.play-icon {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-blue-600), var(--color-teal-500));
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.42);
}

.play-icon::before {
    content: "";
    margin-left: 6px;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 23px solid #ffffff;
}

.player-overlay strong {
    font-size: 1.4rem;
}

.player-overlay em {
    margin-top: 8px;
    color: #dbeafe;
    font-style: normal;
}

.content-card {
    padding: 28px;
    margin-bottom: 24px;
}

.content-card p {
    margin: 14px 0 0;
    color: var(--color-gray-700);
    font-size: 1.02rem;
}

.detail-sidebar {
    position: sticky;
    top: 96px;
}

.side-card {
    padding: 22px;
    margin-bottom: 22px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 18px 0 0;
}

.side-card dt {
    color: var(--color-gray-500);
    font-weight: 700;
}

.side-card dd {
    margin: 0;
    color: var(--color-gray-900);
}

.site-footer {
    color: #d1d5db;
    background: var(--color-gray-900);
}

.footer-shell {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 52px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 34px;
}

.footer-brand p {
    max-width: 360px;
    color: #9ca3af;
}

.footer-column h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 1rem;
}

.footer-column a {
    display: block;
    margin-top: 9px;
    color: #9ca3af;
}

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

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 18px 20px 28px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-size: 0.9rem;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

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

    .mobile-toggle {
        display: block;
        margin-left: auto;
    }

    .hero-slide,
    .hero-slide.is-active,
    .detail-shell {
        grid-template-columns: 1fr;
    }

    .hero-inner,
    .hero-slide,
    .hero-slide.is-active {
        min-height: auto;
    }

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

    .hero-poster,
    .detail-poster {
        max-width: 340px;
        margin: 0 auto;
    }

    .feature-strip,
    .stats-grid,
    .ranking-hero-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .filter-panel,
    .search-page-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .nav-shell {
        height: 64px;
    }

    .brand-text {
        font-size: 1.05rem;
    }

    .hero-inner,
    .detail-shell {
        padding: 44px 16px 72px;
    }

    .feature-strip,
    .movie-grid,
    .category-tile-grid,
    .category-overview-grid,
    .stats-grid,
    .ranking-hero-grid {
        grid-template-columns: 1fr;
    }

    .feature-strip {
        margin-top: 0;
        padding-top: 20px;
    }

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

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

    .page-section {
        padding: 54px 0;
    }

    .sub-hero {
        padding: 54px 0;
    }

    .cta-card {
        padding: 34px 22px;
    }

    .rank-title {
        grid-template-columns: 62px minmax(0, 1fr);
    }

    .rank-title img {
        width: 62px;
    }
}
