:root {
    --color-silver: #c0c0c0;
    --color-silver-light: #e8e8e8;
    --color-silver-dark: #a8a8a8;
    --color-moonlight: #f5f5f7;
    --color-night-blue: #1a1f35;
    --color-deep-blue: #0f1419;
    --color-star-white: #ffffff;
    --color-accent-silver: #d4d4d8;
    --color-text-primary: #f8fafc;
    --color-text-secondary: #cbd5e1;
    --color-text-light: #94a3b8;
    --gradient-silver: linear-gradient(135deg, #e8e8e8 0%, #c0c0c0 100%);
    --gradient-moonlight: linear-gradient(180deg, #0f1419 0%, #1a1f35 48%, #2a3347 100%);
    --gradient-shine: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.35);
    --radius-xl: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #e2e8f0;
    background: var(--gradient-moonlight);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.moonlight-bg {
    background: var(--gradient-moonlight);
}

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

.text-gradient {
    color: transparent;
    background-image: linear-gradient(135deg, #f8fafc, #a8b0c4 72%);
    -webkit-background-clip: text;
    background-clip: text;
}

.glass-effect {
    background: rgba(15, 20, 25, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.silver-border {
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.fade-in {
    animation: fade-in 0.45s ease both;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-header {
    position: fixed;
    z-index: 50;
    top: 0;
    right: 0;
    left: 0;
    border-bottom: 1px solid rgba(100, 116, 139, 0.35);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 800;
    white-space: nowrap;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #dbe4f2;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    box-shadow: 0 0 24px rgba(192, 192, 192, 0.22);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #cbd5e1;
    font-size: 15px;
}

.main-nav a:hover,
.footer-links a:hover {
    color: #ffffff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.header-search input,
.search-box input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(100, 116, 139, 0.55);
    border-radius: 999px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    padding: 10px 16px;
}

.header-search input:focus,
.search-box input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(226, 232, 240, 0.75);
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.14);
}

.mobile-toggle {
    display: none;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 8px 11px;
}

.mobile-panel {
    display: none;
    padding: 0 0 18px;
}

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

.mobile-panel nav {
    display: grid;
    gap: 12px;
    padding-top: 10px;
}

.page-main {
    min-height: 72vh;
    padding-top: 76px;
}

.hero-slider {
    position: relative;
    min-height: clamp(640px, 88vh, 900px);
    overflow: hidden;
    background: #0f1419;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 3s ease;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
    align-items: center;
    gap: clamp(28px, 4vw, 64px);
    min-height: clamp(640px, 88vh, 900px);
    padding: 68px 0 56px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 8px 14px;
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    font-size: 14px;
}

.hero-title {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 82px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-desc {
    max-width: 760px;
    margin: 0 0 24px;
    color: #d6dce8;
    font-size: clamp(16px, 1.8vw, 21px);
}

.hero-meta,
.movie-meta,
.detail-meta,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
    font-size: 14px;
}

.meta-pill,
.tag,
.rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 18px;
    color: #0f172a;
    background: var(--gradient-silver);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.34);
}

.btn-secondary {
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.58);
}

.hero-poster-rack {
    position: relative;
    display: grid;
    grid-template-columns: 0.78fr 1fr;
    gap: 16px;
    align-items: end;
}

.hero-poster-main,
.hero-poster-small {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
}

.hero-poster-main img,
.hero-poster-small img,
.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-poster-main {
    aspect-ratio: 2 / 3;
}

.hero-poster-small {
    aspect-ratio: 2 / 3;
    opacity: 0.82;
    transform: translateY(-38px);
}

.hero-controls {
    position: absolute;
    right: 0;
    bottom: 34px;
    left: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.hero-dot {
    width: 38px;
    height: 5px;
    padding: 0;
    background: rgba(255, 255, 255, 0.32);
    border: 0;
    border-radius: 999px;
}

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

.section-block {
    padding: 62px 0;
}

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

.section-heading h1,
.section-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.15;
}

.section-heading p,
.page-lead {
    max-width: 820px;
    margin: 8px 0 0;
    color: #94a3b8;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(226, 232, 240, 0.38);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.32);
}

.movie-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #111827;
}

.movie-poster img {
    transition: transform 0.5s ease;
}

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

.poster-gradient {
    position: absolute;
    inset: auto 0 0;
    height: 55%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
}

.movie-score {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    color: #111827;
    background: #f8fafc;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.movie-info {
    padding: 14px 14px 16px;
}

.movie-info h3 {
    display: -webkit-box;
    min-height: 46px;
    margin: 0 0 8px;
    overflow: hidden;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.42;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-info p {
    display: -webkit-box;
    min-height: 42px;
    margin: 10px 0 0;
    overflow: hidden;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.category-card {
    position: relative;
    min-height: 178px;
    overflow: hidden;
    padding: 22px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.72));
    border: 1px solid rgba(148, 163, 184, 0.20);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.category-card::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    right: -44px;
    bottom: -44px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 68%);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 8px;
    color: #ffffff;
}

.category-card p {
    margin: 0 0 18px;
    color: #b6c1d2;
    font-size: 14px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 66px 86px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: rgba(15, 23, 42, 0.48);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
}

.rank-number {
    color: #f8fafc;
    font-size: 28px;
    font-weight: 900;
    text-align: center;
}

.rank-thumb {
    overflow: hidden;
    width: 72px;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
}

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

.rank-title {
    margin: 0 0 4px;
    color: #ffffff;
    font-size: 18px;
}

.search-hero,
.page-hero,
.detail-top {
    padding: 58px 0 28px;
}

.search-box {
    display: flex;
    gap: 12px;
    max-width: 840px;
    margin-top: 22px;
}

.search-box input {
    padding: 14px 18px;
    border-radius: 18px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 180px));
    gap: 12px;
    margin: 24px 0 30px;
    padding: 14px;
    background: rgba(15, 23, 42, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
}

.filter-panel input,
.filter-panel select {
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 14px;
}

.result-count {
    color: #cbd5e1;
    margin-bottom: 16px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #94a3b8;
    font-size: 14px;
}

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

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

.detail-card,
.sidebar-card,
.content-card {
    background: rgba(15, 23, 42, 0.48);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.detail-card {
    overflow: hidden;
}

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

.video-player {
    width: 100%;
    height: 100%;
    background: #020617;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #0f172a;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.12), rgba(2, 6, 23, 0.58));
    border: 0;
    font-size: clamp(18px, 3vw, 32px);
    font-weight: 900;
}

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

.play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    background: var(--gradient-silver);
    border-radius: 999px;
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.38);
}

.detail-body {
    padding: clamp(22px, 3vw, 34px);
}

.detail-body h1 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(30px, 4.8vw, 54px);
    line-height: 1.1;
}

.detail-section {
    margin-top: 28px;
}

.detail-section h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 24px;
}

.detail-section p {
    margin: 0;
    color: #cbd5e1;
    font-size: 16px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.sidebar-card {
    padding: 18px;
}

.sidebar-card h2,
.sidebar-card h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

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

.sidebar-mini {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 10px;
    align-items: center;
}

.sidebar-mini img {
    width: 58px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 10px;
}

.sidebar-mini strong {
    display: block;
    color: #f8fafc;
    font-size: 14px;
    line-height: 1.35;
}

.sidebar-mini span {
    color: #94a3b8;
    font-size: 12px;
}

.pagination-note {
    margin-top: 28px;
    color: #94a3b8;
    text-align: center;
}

.site-footer {
    margin-top: 54px;
    padding: 42px 0;
    background: rgba(2, 6, 23, 0.36);
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(160px, 0.7fr));
    gap: 26px;
}

.footer-title {
    margin: 0 0 10px;
    color: #ffffff;
    font-weight: 800;
}

.footer-text,
.footer-links {
    color: #94a3b8;
    font-size: 14px;
}

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

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

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

    .mobile-toggle {
        display: inline-flex;
    }

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

    .hero-content {
        align-items: end;
        padding-top: 96px;
    }

    .hero-poster-rack {
        max-width: 520px;
    }

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

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

    .rank-row .rank-badge {
        grid-column: 3;
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .section-container {
        width: min(100% - 22px, 1280px);
    }

    .header-inner {
        min-height: 64px;
    }

    .page-main {
        padding-top: 64px;
    }

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

    .hero-poster-rack {
        grid-template-columns: 1fr 0.72fr;
    }

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

    .movie-info {
        padding: 12px;
    }

    .movie-info h3 {
        font-size: 14px;
    }

    .section-block {
        padding: 42px 0;
    }

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

    .search-box,
    .filter-panel {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .rank-row {
        grid-template-columns: 44px 58px minmax(0, 1fr);
        gap: 10px;
    }

    .rank-number {
        font-size: 20px;
    }
}
