* {
    box-sizing: border-box;
}

:root {
    --sky: #0ea5e9;
    --blue: #2563eb;
    --cyan: #06b6d4;
    --indigo: #4f46e5;
    --purple: #7c3aed;
    --pink: #ec4899;
    --rose: #f43f5e;
    --amber: #f59e0b;
    --orange: #f97316;
    --green: #10b981;
    --emerald: #059669;
    --slate: #334155;
    --text: #1f2937;
    --muted: #64748b;
    --line: #e5e7eb;
    --panel: #ffffff;
    --soft: #f8fafc;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.10);
    --radius: 22px;
}

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(--text);
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 36%, #f8fafc 100%);
}

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

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

button,
input {
    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: 50;
    background: linear-gradient(90deg, var(--sky), var(--blue), var(--cyan));
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(14, 116, 144, 0.24);
}

.nav-shell {
    max-width: 1240px;
    height: 66px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--blue);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
    transition: transform 0.25s ease;
}

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

.brand-text {
    font-size: 21px;
    white-space: nowrap;
}

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

.desktop-nav > a,
.nav-dropdown > a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    font-weight: 700;
    opacity: 0.95;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: #fef3c7;
    opacity: 1;
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    padding: 8px;
    border-radius: 16px;
    background: #ffffff;
    color: #334155;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.dropdown-panel a {
    display: block;
    padding: 10px 14px;
    border-radius: 12px;
    color: #334155;
    font-weight: 650;
}

.dropdown-panel a:hover {
    background: #e0f2fe;
    color: #0369a1;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-search {
    position: relative;
    width: min(260px, 26vw);
}

.nav-search input,
.mobile-search input,
.large-search input,
.filter-panel input {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    padding: 12px 44px 12px 18px;
    color: #0f172a;
    box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.16);
}

.nav-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.filter-panel input:focus {
    box-shadow: 0 0 0 3px rgba(254, 240, 138, 0.56), inset 0 0 0 1px rgba(14, 165, 233, 0.32);
}

.nav-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--blue);
    cursor: pointer;
    transform: translateY(-50%);
    font-size: 22px;
}

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

.mobile-nav {
    display: none;
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 22px 18px;
    background: rgba(255, 255, 255, 0.98);
    color: #334155;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.mobile-nav.open {
    display: grid;
    gap: 8px;
}

.mobile-nav a {
    padding: 11px 14px;
    border-radius: 12px;
    font-weight: 700;
}

.mobile-nav a:hover {
    background: #e0f2fe;
    color: #0369a1;
}

.mobile-search {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.mobile-search input {
    padding-right: 18px;
}

.mobile-search button,
.large-search button,
.filter-panel button {
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    font-weight: 800;
    cursor: pointer;
}

.hero-slider {
    position: relative;
    height: min(72vh, 620px);
    min-height: 500px;
    overflow: hidden;
    background: #020617;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px) saturate(1.16);
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.46), transparent 38%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.74) 46%, rgba(14, 165, 233, 0.26)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 52%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    height: 100%;
    margin: 0 auto;
    padding: 54px 22px 74px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 360px;
    align-items: center;
    gap: 46px;
    color: #ffffff;
}

.hero-kicker,
.page-hero span,
.detail-category,
.card-category {
    display: inline-flex;
    width: max-content;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-kicker {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.16);
    color: #cffafe;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hero-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(40px, 6vw, 74px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 710px;
    margin: 0;
    color: #e0f2fe;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.7;
}

.hero-meta,
.detail-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta {
    margin: 24px 0;
}

.hero-meta span,
.detail-meta span,
.card-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: #f8fafc;
    padding: 7px 12px;
    font-weight: 700;
}

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

.primary-button,
.ghost-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    font-weight: 850;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button {
    padding: 0 24px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
    transform: translateY(-2px) scale(1.02);
}

.ghost-button {
    padding: 0 22px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero-poster {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) translateY(-5px);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.hero-poster span,
.play-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--blue);
    box-shadow: var(--shadow-soft);
}

.hero-poster span {
    left: 50%;
    top: 50%;
    width: 72px;
    height: 72px;
    transform: translate(-50%, -50%);
    font-size: 28px;
}

.hero-controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 30px;
    backdrop-filter: blur(10px);
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.2s ease, background 0.2s ease;
}

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

.quick-search-panel,
.content-section,
.detail-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 22px;
    padding-right: 22px;
}

.quick-search-panel {
    position: relative;
    z-index: 8;
    margin-top: -34px;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    gap: 24px;
    align-items: center;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    padding-top: 22px;
    padding-bottom: 22px;
    backdrop-filter: blur(18px);
}

.quick-search-panel span {
    display: block;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.quick-search-panel strong {
    display: block;
    margin-top: 5px;
    font-size: 22px;
}

.quick-search-panel form,
.large-search,
.filter-panel {
    display: flex;
    gap: 10px;
}

.quick-search-panel input,
.large-search input,
.filter-panel input {
    flex: 1;
}

.quick-search-panel button {
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    font-weight: 850;
    cursor: pointer;
}

.content-section {
    padding-top: 62px;
    padding-bottom: 10px;
}

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

.section-heading h2,
.ranking-title h2,
.detail-card h1,
.prose-card h2,
.side-info-card h2 {
    margin: 0;
    color: #0f172a;
}

.section-heading h2,
.ranking-title h2 {
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-link {
    min-width: max-content;
    padding: 0 18px;
    color: var(--blue);
    background: #e0f2fe;
}

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

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

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.poster-wrap img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

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

.play-badge {
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-score {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.62);
    font-weight: 850;
    backdrop-filter: blur(8px);
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}

.card-category,
.detail-category {
    padding: 6px 10px;
    color: #0369a1;
    background: #e0f2fe;
}

.card-body strong {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.35;
    color: #0f172a;
}

.card-desc {
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    margin-top: 12px;
    gap: 6px;
}

.card-meta span {
    background: #f1f5f9;
    color: #64748b;
    padding: 5px 8px;
    font-size: 12px;
}

.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag-chip {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 9px;
    color: #475569;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 700;
}

.wide-card {
    flex-direction: row;
}

.wide-card .poster-wrap {
    width: 42%;
    flex-shrink: 0;
}

.wide-card .poster-wrap img {
    height: 100%;
    aspect-ratio: 4 / 3;
}

.mini-card .card-desc,
.mini-card .card-tags {
    display: none;
}

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

.category-tile,
.category-overview-card,
.page-hero,
.podium-card {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.category-tile {
    min-height: 150px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile span {
    font-size: 24px;
    font-weight: 900;
}

.category-tile strong {
    max-width: 92%;
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.92;
}

.gradient-cyan-blue {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.gradient-blue-indigo {
    background: linear-gradient(135deg, var(--blue), var(--indigo));
}

.gradient-green-emerald {
    background: linear-gradient(135deg, var(--green), var(--emerald));
}

.gradient-indigo-purple {
    background: linear-gradient(135deg, var(--indigo), var(--purple));
}

.gradient-red-purple {
    background: linear-gradient(135deg, #dc2626, var(--purple));
}

.gradient-pink-rose {
    background: linear-gradient(135deg, var(--pink), var(--rose));
}

.gradient-amber-orange {
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

.gradient-slate-sky {
    background: linear-gradient(135deg, var(--slate), var(--sky));
}

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

.ranking-panel,
.detail-card,
.side-cover-card,
.side-info-card,
.ranking-table,
.filter-panel,
.large-search,
.search-status {
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.ranking-panel {
    padding: 22px;
}

.sticky-panel {
    position: sticky;
    top: 88px;
}

.ranking-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ranking-title a {
    color: var(--blue);
    font-weight: 800;
}

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

.compact-card {
    position: relative;
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 12px;
    align-items: center;
    border-radius: 16px;
    padding: 8px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
    background: #f8fafc;
    transform: translateX(3px);
}

.compact-card img {
    width: 82px;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    object-fit: cover;
}

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

.compact-card strong {
    color: #0f172a;
    line-height: 1.35;
}

.compact-card em {
    margin: 3px 0;
    color: #64748b;
    font-style: normal;
    font-size: 13px;
}

.compact-card small {
    color: #94a3b8;
}

.rank-number {
    position: absolute;
    left: 2px;
    top: 2px;
    z-index: 2;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--rose));
    font-weight: 900;
    font-size: 12px;
}

.page-hero {
    min-height: 290px;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.page-hero > div {
    max-width: 1240px;
    margin: 0 auto;
    padding: 56px 22px;
    width: 100%;
}

.page-hero span {
    padding: 7px 12px;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.16);
}

.page-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(38px, 5vw, 58px);
    letter-spacing: -0.04em;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
}

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

.detail-breadcrumb {
    color: #64748b;
    margin: 28px 0 18px;
}

.detail-breadcrumb a:hover {
    color: var(--blue);
}

.category-overview-card {
    min-height: 260px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-overview-card h2 {
    margin: 8px 0 12px;
    font-size: 28px;
}

.category-overview-card p {
    margin: 0;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
}

.category-preview-posters {
    display: flex;
    gap: 8px;
    margin-top: 22px;
}

.category-preview-posters img {
    width: 31%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.18);
}

.filter-panel {
    margin-bottom: 22px;
    padding: 14px;
}

.filter-panel input {
    background: #f8fafc;
    padding-right: 18px;
}

.empty-filter-result {
    display: none;
    margin-top: 18px;
    text-align: center;
    color: #64748b;
    font-weight: 800;
}

.empty-filter-result.show {
    display: block;
}

.podium-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 28px;
}

.podium-card {
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    background: #020617;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.podium-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.78;
    transition: transform 0.3s ease;
}

.podium-card:hover img {
    transform: scale(1.06);
}

.podium-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 24%, rgba(2, 6, 23, 0.86));
}

.podium-card span,
.podium-card h2,
.podium-card p {
    position: relative;
    z-index: 2;
}

.podium-card span {
    width: max-content;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 900;
}

.podium-card h2 {
    margin: 14px 0 8px;
    font-size: 28px;
}

.podium-card p {
    margin: 0;
    color: #e2e8f0;
    line-height: 1.65;
}

.ranking-table {
    overflow: hidden;
}

.ranking-row {
    display: grid;
    grid-template-columns: 54px 120px 1fr 90px;
    gap: 16px;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease;
}

.ranking-row:hover {
    background: #f8fafc;
}

.ranking-row b {
    color: var(--blue);
    font-size: 22px;
}

.ranking-row img {
    width: 120px;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    object-fit: cover;
}

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

.ranking-row strong {
    font-size: 17px;
    color: #0f172a;
}

.ranking-row em {
    margin-top: 5px;
    color: #64748b;
    font-style: normal;
}

.ranking-row small {
    color: #0ea5e9;
    font-weight: 900;
    text-align: right;
}

.search-page {
    padding-bottom: 70px;
}

.large-search {
    padding: 16px;
    margin-bottom: 18px;
}

.large-search input {
    background: #f8fafc;
    padding-right: 18px;
}

.search-status {
    padding: 18px 22px;
    color: #64748b;
    font-weight: 800;
    margin-bottom: 22px;
}

.detail-shell {
    padding-top: 1px;
}

.detail-layout {
    margin-bottom: 30px;
}

.video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 28px 60px rgba(2, 6, 23, 0.32);
}

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

.player-play-button {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.18), rgba(2, 6, 23, 0.52));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-play-button span {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--blue);
    font-size: 34px;
    box-shadow: var(--shadow);
}

.player-play-button strong {
    font-size: 18px;
}

.video-frame.playing .player-play-button {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-card {
    margin-top: 24px;
    padding: 24px;
}

.detail-title-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.detail-title-row h1 {
    margin-top: 12px;
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -0.04em;
}

.score-box {
    min-width: 108px;
    border-radius: 20px;
    padding: 14px;
    text-align: center;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
    color: var(--blue);
}

.score-box strong,
.score-box span {
    display: block;
}

.score-box strong {
    font-size: 30px;
}

.score-box span {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.detail-meta {
    margin: 18px 0;
}

.detail-meta span {
    background: #f1f5f9;
    color: #475569;
}

.one-line {
    margin: 0;
    color: #334155;
    font-size: 18px;
    line-height: 1.8;
}

.prose-card h2,
.side-info-card h2 {
    margin-bottom: 14px;
    font-size: 24px;
}

.prose-card p {
    margin: 0;
    color: #475569;
    font-size: 17px;
    line-height: 2;
}

.detail-side {
    display: grid;
    gap: 22px;
    position: sticky;
    top: 88px;
}

.side-cover-card,
.side-info-card {
    padding: 18px;
}

.side-cover-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 16px;
}

.full-width {
    width: 100%;
}

.side-info-card dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px 10px;
    margin: 0;
}

.side-info-card dt {
    color: #94a3b8;
    font-weight: 850;
}

.side-info-card dd {
    margin: 0;
    color: #334155;
    font-weight: 700;
}

.related-section {
    padding-top: 20px;
    padding-bottom: 70px;
}

.site-footer {
    margin-top: 58px;
    color: #e5e7eb;
    background: linear-gradient(180deg, #1f2937, #020617);
}

.footer-grid {
    max-width: 1240px;
    margin: 0 auto;
    padding: 48px 22px 30px;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 28px;
}

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

.footer-grid p {
    margin: 14px 0 0;
    color: #cbd5e1;
    line-height: 1.75;
}

.footer-grid h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

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

.footer-links a {
    color: #cbd5e1;
}

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

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 22px 28px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.24);
    color: #94a3b8;
}

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

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content,
    .split-layout,
    .category-layout,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-poster,
    .ranking-panel,
    .detail-side,
    .sticky-panel {
        position: static;
    }

    .hero-poster {
        display: none;
    }

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

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

@media (max-width: 760px) {
    .nav-shell {
        height: 62px;
        padding: 0 16px;
    }

    .brand-text {
        font-size: 18px;
    }

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

    .hero-content {
        padding: 64px 18px 82px;
    }

    .quick-search-panel,
    .quick-search-panel form,
    .large-search,
    .filter-panel,
    .footer-bottom,
    .detail-title-row {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .quick-search-panel,
    .content-section,
    .detail-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

    .movie-grid.three-col,
    .movie-grid.two-col,
    .movie-grid.four-col,
    .category-grid,
    .category-overview-grid,
    .podium-grid {
        grid-template-columns: 1fr;
    }

    .wide-card {
        flex-direction: column;
    }

    .wide-card .poster-wrap {
        width: 100%;
    }

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

    .ranking-row {
        grid-template-columns: 42px 84px 1fr;
    }

    .ranking-row small {
        display: none;
    }

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

    .side-info-card dl {
        grid-template-columns: 64px 1fr;
    }
}
