* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    margin: 0;
    color: #ffffff;
    background: linear-gradient(180deg, #111827 0%, #020617 45%, #111827 100%);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(17, 24, 39, 0.88);
    border-bottom: 1px solid rgba(55, 65, 81, 0.72);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark,
.footer-brand span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    background: #fbbf24;
    border-radius: 999px;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.48);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    padding: 9px 14px;
    color: #d1d5db;
    border-radius: 999px;
    transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 1px solid rgba(75, 85, 99, 0.8);
    background: rgba(31, 41, 55, 0.82);
    border-radius: 12px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #ffffff;
    border-radius: 2px;
}

.hero-carousel {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: #020617;
}

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.9s ease;
    pointer-events: none;
}

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 18%, rgba(251, 191, 36, 0.22), transparent 34%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.72) 48%, rgba(0, 0, 0, 0.18) 100%),
        linear-gradient(180deg, rgba(17, 24, 39, 0.2) 0%, rgba(2, 6, 23, 0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: 1180px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fbbf24;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-kicker {
    margin-bottom: 18px;
    font-size: 18px;
}

.hero-kicker span {
    animation: pulseGlow 1.6s ease-in-out infinite;
}

.hero-content h1 {
    max-width: 760px;
    margin: 0 0 22px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.05em;
    text-shadow: 0 14px 38px rgba(0, 0, 0, 0.42);
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 30px;
    color: #d1d5db;
    font-size: clamp(18px, 2.1vw, 22px);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 32px;
}

.hero-meta span {
    padding: 8px 14px;
    color: #f9fafb;
    background: rgba(17, 24, 39, 0.78);
    border: 1px solid rgba(251, 191, 36, 0.24);
    border-radius: 999px;
}

.hero-actions,
.spotlight-card {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.button-primary,
.button-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.25s ease, background 0.25s ease, border 0.25s ease;
}

.button-primary {
    color: #111827;
    background: #fbbf24;
    box-shadow: 0 14px 35px rgba(251, 191, 36, 0.35);
}

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

.button-primary:hover {
    background: #f59e0b;
}

.button-ghost {
    color: #ffffff;
    border: 1px solid rgba(251, 191, 36, 0.38);
    background: rgba(17, 24, 39, 0.58);
}

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

.hero-dot {
    width: 36px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
    width: 54px;
    background: #fbbf24;
}

.section {
    padding: 72px 0;
}

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

.section-title-row h2,
.page-hero h1,
.spotlight-card h2 {
    margin: 4px 0 0;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.1;
}

.section-more {
    color: #fbbf24;
    font-weight: 800;
}

.soft-section {
    padding: 48px;
    border: 1px solid rgba(75, 85, 99, 0.52);
    border-radius: 30px;
    background: linear-gradient(90deg, rgba(31, 41, 55, 0.72), rgba(17, 24, 39, 0.15));
}

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

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

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

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

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

.movie-card,
.movie-row-card,
.category-card,
.category-overview-card,
.detail-content-card,
.poster-card,
.side-card,
.ranking-row {
    border: 1px solid rgba(75, 85, 99, 0.58);
    background: rgba(31, 41, 55, 0.9);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.movie-card,
.category-card,
.category-overview-card,
.detail-content-card,
.poster-card,
.side-card {
    border-radius: 18px;
    overflow: hidden;
}

.movie-cover-link,
.minimal-link,
.row-link {
    display: block;
    height: 100%;
}

.movie-cover-wrap {
    position: relative;
    height: 255px;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #78350f);
}

.movie-card-large .movie-cover-wrap {
    height: 310px;
}

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

.movie-card:hover .movie-cover,
.movie-card-minimal:hover img,
.movie-row-card:hover img {
    transform: scale(1.08);
}

.movie-pill,
.movie-duration {
    position: absolute;
    z-index: 2;
    padding: 5px 9px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.72);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.movie-pill {
    left: 12px;
    top: 12px;
}

.movie-duration {
    right: 12px;
    bottom: 12px;
}

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

.movie-card-body h3,
.minimal-link h3,
.row-link h3,
.poster-card h2,
.side-card h2 {
    margin: 0;
    color: #ffffff;
    line-height: 1.35;
}

.movie-card-body h3,
.minimal-link h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-body h3 {
    min-height: 48px;
    font-size: 18px;
}

.movie-card-body p,
.minimal-link p,
.row-link p,
.category-card p,
.category-overview-card p,
.poster-card p,
.spotlight-card p,
.page-hero p,
.detail-content-card p {
    color: #d1d5db;
}

.movie-card-body p {
    min-height: 52px;
    margin: 10px 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #9ca3af;
    font-size: 14px;
}

.movie-meta-line span:first-child {
    color: #fbbf24;
    font-weight: 800;
}

.minimal-cover {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #111827, #78350f);
}

.minimal-cover span {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 8px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.74);
    border-radius: 8px;
    font-size: 12px;
}

.minimal-link h3 {
    min-height: 44px;
    margin-top: 12px;
    font-size: 16px;
}

.minimal-link p {
    margin: 5px 0 0;
    color: #9ca3af;
    font-size: 13px;
}

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

.row-link {
    display: grid;
    grid-template-columns: 138px 1fr;
    gap: 18px;
    padding: 14px;
}

.row-link img {
    height: 178px;
    border-radius: 14px;
}

.row-link h3 {
    font-size: 21px;
}

.row-link p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.category-card,
.category-overview-card {
    padding: 24px;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.95), rgba(120, 53, 15, 0.35));
}

.category-card > a,
.category-overview-head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.category-icon,
.category-overview-head span {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    background: #fbbf24;
    border-radius: 14px;
}

.category-card h3,
.category-overview-card h2 {
    margin: 0 0 7px;
    color: #ffffff;
    font-size: 24px;
}

.category-card p,
.category-overview-card p {
    margin: 0;
}

.category-samples {
    margin-top: 18px;
    display: grid;
    gap: 8px;
}

.category-samples a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 11px;
    color: #d1d5db;
    background: rgba(17, 24, 39, 0.5);
    border-radius: 10px;
}

.category-samples a:hover,
.side-related-list a:hover,
.ranking-row a:hover {
    color: #fbbf24;
}

.spotlight-section {
    position: relative;
}

.spotlight-section::before {
    content: "";
    position: absolute;
    inset: 36px 0 auto;
    height: 260px;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(120, 53, 15, 0.35), transparent);
    pointer-events: none;
}

.spotlight-card {
    position: relative;
    z-index: 1;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 34px;
    border: 1px solid rgba(251, 191, 36, 0.18);
    border-radius: 28px;
    background: linear-gradient(90deg, rgba(120, 53, 15, 0.82), rgba(113, 63, 18, 0.44));
}

.page-main {
    min-height: 70vh;
    padding-bottom: 64px;
}

.page-hero {
    padding: 58px 0 32px;
}

.page-hero h1 {
    font-size: clamp(40px, 6vw, 62px);
}

.page-hero p {
    max-width: 780px;
    margin: 14px 0 0;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: #9ca3af;
    font-size: 14px;
}

.breadcrumb a {
    color: #fbbf24;
}

.filter-panel {
    margin-bottom: 28px;
    padding: 18px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 16px;
    border: 1px solid rgba(75, 85, 99, 0.62);
    border-radius: 18px;
    background: rgba(17, 24, 39, 0.75);
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: #d1d5db;
    font-weight: 700;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    color: #ffffff;
    border: 1px solid rgba(75, 85, 99, 0.9);
    border-radius: 12px;
    outline: none;
    background: rgba(31, 41, 55, 0.92);
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(251, 191, 36, 0.78);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.1);
}

.ranking-hero {
    position: relative;
    min-height: 380px;
    overflow: hidden;
    margin-bottom: 42px;
    background: #020617;
}

.ranking-hero img {
    width: 100%;
    height: 430px;
    object-fit: cover;
}

.ranking-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.45)), linear-gradient(180deg, transparent, #020617);
}

.ranking-hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.ranking-hero-content h1 {
    margin: 6px 0 10px;
    font-size: clamp(40px, 6vw, 66px);
}

.ranking-hero-content p {
    max-width: 640px;
    color: #d1d5db;
    font-size: 18px;
}

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

.ranking-row {
    border-radius: 16px;
    overflow: hidden;
}

.ranking-row a {
    display: grid;
    grid-template-columns: 64px 76px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
}

.ranking-number {
    color: #fbbf24;
    font-size: 24px;
    font-weight: 900;
}

.ranking-row img {
    width: 76px;
    height: 96px;
    object-fit: cover;
    border-radius: 10px;
}

.ranking-main {
    display: grid;
    gap: 5px;
}

.ranking-main strong {
    color: #ffffff;
    font-size: 18px;
}

.ranking-main em {
    color: #9ca3af;
    font-style: normal;
}

.ranking-score {
    color: #fbbf24;
    font-weight: 900;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    padding-top: 34px;
}

.player-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: 20px;
    background: #000000;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.65));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-start span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    background: rgba(251, 191, 36, 0.94);
    border-radius: 999px;
    font-size: 34px;
    box-shadow: 0 0 45px rgba(251, 191, 36, 0.55);
    transform: translateX(3px);
}

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

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

.detail-content-card h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.16;
}

.detail-one-line {
    margin: 14px 0 18px;
    font-size: 18px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 24px;
}

.detail-tags span {
    padding: 6px 11px;
    color: #fef3c7;
    background: rgba(120, 53, 15, 0.58);
    border: 1px solid rgba(251, 191, 36, 0.18);
    border-radius: 999px;
    font-size: 13px;
}

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

.detail-meta-grid div {
    padding: 14px;
    border-radius: 14px;
    background: rgba(17, 24, 39, 0.66);
}

.detail-meta-grid span,
.detail-meta-grid strong {
    display: block;
}

.detail-meta-grid span {
    color: #9ca3af;
    font-size: 13px;
}

.detail-meta-grid strong {
    color: #ffffff;
    font-size: 17px;
}

.detail-content-card h2 {
    margin: 28px 0 12px;
    font-size: 26px;
}

.poster-card {
    padding: 16px;
}

.poster-card img {
    height: 430px;
    border-radius: 14px;
}

.poster-card h2 {
    margin-top: 14px;
    font-size: 22px;
}

.poster-card a {
    display: inline-flex;
    margin-top: 12px;
    color: #fbbf24;
    font-weight: 800;
}

.side-card {
    margin-top: 20px;
    padding: 20px;
}

.side-related-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.side-related-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(75, 85, 99, 0.58);
}

.side-related-list em {
    color: #fbbf24;
    font-style: normal;
    font-weight: 800;
}

.site-footer {
    margin-top: 40px;
    padding: 54px 0 28px;
    color: #d1d5db;
    background: #111827;
    border-top: 1px solid rgba(75, 85, 99, 0.62);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 32px;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

.footer-grid a {
    display: block;
    margin: 8px 0;
    color: #d1d5db;
}

.footer-grid a:hover {
    color: #fbbf24;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto 0;
    padding-top: 22px;
    color: #9ca3af;
    text-align: center;
    border-top: 1px solid rgba(75, 85, 99, 0.58);
}

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

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(251, 191, 36, 0));
    }
    50% {
        transform: scale(1.12);
        filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.9));
    }
}

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

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

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

    .poster-card img {
        height: 360px;
    }
}

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

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid rgba(75, 85, 99, 0.82);
        border-radius: 18px;
        background: rgba(17, 24, 39, 0.98);
    }

    .nav-links.open {
        display: flex;
    }

    .hero-carousel {
        height: 560px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .section {
        padding: 48px 0;
    }

    .soft-section {
        padding: 28px;
    }

    .movie-grid,
    .movie-grid-large,
    .catalog-grid,
    .minimal-grid,
    .search-grid,
    .category-grid,
    .category-overview-grid,
    .row-card-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

@media (max-width: 560px) {
    .container,
    .header-inner,
    .hero-content,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 24px, 1180px);
    }

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

    .hero-carousel {
        height: 540px;
    }

    .hero-meta {
        gap: 8px;
    }

    .hero-actions,
    .spotlight-card,
    .section-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid,
    .movie-grid-large,
    .catalog-grid,
    .minimal-grid,
    .search-grid,
    .category-grid,
    .category-overview-grid,
    .row-card-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .row-link {
        grid-template-columns: 110px 1fr;
    }

    .row-link img {
        height: 150px;
    }

    .ranking-row a {
        grid-template-columns: 44px 60px 1fr;
    }

    .ranking-score {
        grid-column: 3;
    }

    .detail-content-card {
        padding: 22px;
    }

    .player-start span {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }
}
