* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #0f172a;
    background: #f8fafc;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #1e293b 0%, #0f172a 100%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: opacity 0.25s ease;
}

.brand:hover {
    opacity: 0.82;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.28);
}

.brand-copy {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-subtitle {
    color: #cbd5e1;
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    color: #e2e8f0;
    font-weight: 600;
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #34d399;
}

.nav-toggle {
    display: none;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 12px;
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #0f172a;
}

.mobile-nav.is-open {
    display: grid;
}

.mobile-nav-link {
    padding: 14px 24px;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-link.is-active,
.mobile-nav-link:hover {
    color: #34d399;
}

.hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #1e293b 0%, #334155 46%, #065f46 100%);
}

.hero-glow {
    position: absolute;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    filter: blur(24px);
    opacity: 0.22;
    pointer-events: none;
}

.hero-glow-one {
    left: -120px;
    top: 30px;
    background: #10b981;
}

.hero-glow-two {
    right: -160px;
    bottom: -120px;
    background: #38bdf8;
}

.hero-layout {
    position: relative;
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 42px;
    align-items: center;
    min-height: 640px;
    padding: 64px 0;
}

.hero-copy-main h1 {
    max-width: 760px;
    margin: 16px 0 22px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.06;
    letter-spacing: -0.05em;
}

.hero-copy-main p {
    max-width: 680px;
    color: #dbeafe;
    font-size: 19px;
}

.section-kicker {
    display: inline-flex;
    color: #059669;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero .section-kicker,
.page-hero .section-kicker,
.detail-hero .section-kicker {
    color: #6ee7b7;
}

.search-panel {
    display: flex;
    gap: 12px;
    max-width: 680px;
    margin-top: 28px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    backdrop-filter: blur(16px);
}

.search-panel input {
    flex: 1;
    min-width: 0;
    color: #ffffff;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 12px 14px;
}

.search-panel input::placeholder {
    color: rgba(255, 255, 255, 0.68);
}

.search-panel button,
.primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    color: #ffffff;
    border: 0;
    background: #059669;
    border-radius: 14px;
    padding: 0 22px;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(5, 150, 105, 0.3);
    transition: transform 0.25s ease, background 0.25s ease;
}

.search-panel button:hover,
.primary-link:hover {
    background: #047857;
    transform: translateY(-2px);
}

.secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0 22px;
    font-weight: 800;
    transition: transform 0.25s ease, background 0.25s ease;
}

.secondary-link:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

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

.hero-quick-links a {
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.22);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    transition: color 0.25s ease, border 0.25s ease;
}

.hero-quick-links a:hover {
    color: #6ee7b7;
    border-color: rgba(110, 231, 183, 0.4);
}

.hero-carousel {
    position: relative;
    min-height: 540px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 26px 55px rgba(0, 0, 0, 0.32);
    background: #020617;
}

.hero-slide {
    display: none;
    position: absolute;
    inset: 0;
}

.hero-slide.is-active {
    display: block;
    animation: fadeUp 0.55s ease both;
}

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

.hero-slide-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.88));
}

.hero-slide-copy {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
}

.hero-slide-copy h2 {
    margin: 10px 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
}

.hero-slide-copy p {
    color: #dbeafe;
    margin-bottom: 18px;
}

.eyebrow {
    display: inline-flex;
    color: #bbf7d0;
    font-size: 13px;
    font-weight: 800;
}

.hero-tags {
    margin-bottom: 18px;
}

.hero-tags span {
    display: inline-flex;
    color: #d1fae5;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(110, 231, 183, 0.24);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
}

.hero-dots {
    position: absolute;
    right: 22px;
    top: 22px;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
}

.hero-dot.is-active {
    width: 30px;
    background: #34d399;
}

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

.category-overview {
    padding: 56px 0;
    background: linear-gradient(90deg, #ecfdf5, #f0fdfa);
}

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

.section-heading h2 {
    margin: 6px 0 0;
    color: #1e293b;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
}

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

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

.movie-grid .movie-card.large {
    grid-column: span 2;
}

.movie-card {
    min-width: 0;
}

.movie-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 45px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #cbd5e1;
}

.movie-card.large .poster-wrap {
    height: 360px;
}

.movie-card.related .poster-wrap {
    height: 210px;
}

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

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

.type-badge,
.rank-number {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.72);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.rank-number {
    left: 12px;
    right: auto;
    background: #059669;
}

.poster-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: end;
    gap: 10px;
    color: #ffffff;
    padding: 18px;
    background: linear-gradient(180deg, transparent 20%, rgba(2, 6, 23, 0.82) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.poster-overlay span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
}

.play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: #ffffff;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 18px 28px rgba(16, 185, 129, 0.28);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

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

.card-body h3 {
    overflow: hidden;
    margin: 0 0 8px;
    color: #1e293b;
    font-size: 18px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.movie-link:hover .card-body h3 {
    color: #059669;
}

.card-body p {
    display: -webkit-box;
    min-height: 46px;
    margin: 0 0 14px;
    overflow: hidden;
    color: #64748b;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.tag-list span {
    color: #475569;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 700;
}

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

.category-tile {
    display: block;
    min-height: 160px;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 36px rgba(15, 23, 42, 0.14);
}

.category-tile span {
    display: block;
    margin-bottom: 10px;
    color: #064e3b;
    font-size: 22px;
    font-weight: 900;
}

.category-tile p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.category-card {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    color: #ffffff;
    border-radius: 24px;
    background: #0f172a;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.category-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.05), rgba(2, 6, 23, 0.84));
}

.category-card-copy {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
}

.category-card-copy strong {
    display: block;
    margin-bottom: 8px;
    font-size: 24px;
}

.category-card-copy em {
    color: #dbeafe;
    font-style: normal;
    font-size: 14px;
}

.page-hero,
.detail-hero {
    color: #ffffff;
    background: linear-gradient(135deg, #1e293b 0%, #334155 48%, #047857 100%);
    padding: 56px 0;
}

.page-hero h1,
.detail-main h1 {
    margin: 10px 0 14px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
}

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

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

.breadcrumb a:hover {
    color: #6ee7b7;
}

.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid #e2e8f0;
    outline: 0;
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px 14px;
}

.filter-bar select {
    max-width: 180px;
}

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

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

.ranking-row a {
    display: grid;
    grid-template-columns: 58px 86px 1fr 28px;
    gap: 16px;
    align-items: center;
    min-height: 118px;
    padding: 14px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ranking-row a:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.ranking-index {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #ffffff;
    background: #059669;
    border-radius: 14px;
    font-weight: 900;
}

.ranking-row img {
    width: 86px;
    height: 86px;
    object-fit: cover;
    border-radius: 14px;
    background: #cbd5e1;
}

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

.ranking-info strong {
    display: block;
    overflow: hidden;
    color: #1e293b;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-info em {
    display: block;
    color: #059669;
    font-style: normal;
    font-size: 13px;
    font-weight: 800;
}

.ranking-info span {
    display: block;
    overflow: hidden;
    color: #64748b;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-arrow {
    color: #94a3b8;
    font-size: 32px;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    background: #020617;
    border-radius: 26px;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.34);
}

.player-shell video {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: contain;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 16px;
    color: #ffffff;
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.82));
    text-align: center;
    font-size: 22px;
    font-weight: 900;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.35);
}

.player-controls {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.player-shell:hover .player-controls,
.player-shell.is-playing .player-controls {
    opacity: 1;
    pointer-events: auto;
}

.player-controls button {
    color: #ffffff;
    border: 0;
    background: rgba(15, 23, 42, 0.72);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.player-status {
    position: absolute;
    left: 20px;
    top: 18px;
    color: #fecaca;
    font-size: 14px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
}

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

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

.detail-main {
    padding: 34px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.detail-main h1 {
    color: #1e293b;
}

.detail-main .lead {
    color: #475569;
    font-size: 19px;
    font-weight: 700;
}

.detail-main h2 {
    margin: 30px 0 12px;
    color: #1e293b;
    font-size: 26px;
}

.detail-main p {
    color: #334155;
    font-size: 17px;
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.meta-line span {
    color: #065f46;
    background: #ecfdf5;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 800;
}

.detail-tags {
    margin: 12px 0 20px;
}

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

.site-footer {
    color: #cbd5e1;
    background: #0f172a;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 34px;
    padding: 52px 0;
}

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

.site-footer p {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
}

.site-footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a:hover {
    color: #34d399;
}

.footer-bottom {
    padding: 18px;
    color: #64748b;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    text-align: center;
    font-size: 13px;
}

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

@media (max-width: 1100px) {
    .movie-grid,
    .category-grid,
    .category-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .hero-carousel {
        min-height: 500px;
    }

    .detail-poster {
        display: none;
    }
}

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

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

    .hero-layout {
        min-height: auto;
        padding: 48px 0;
    }

    .hero-carousel {
        min-height: 420px;
    }

    .movie-grid,
    .category-grid,
    .category-card-grid,
    .ranking-list.compact,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .movie-grid .movie-card.large {
        grid-column: span 1;
    }

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

    .filter-bar,
    .search-panel {
        flex-direction: column;
    }

    .filter-bar select {
        max-width: none;
    }

    .player-shell,
    .player-shell video {
        min-height: 320px;
    }
}

@media (max-width: 560px) {
    .container,
    .content-section {
        width: min(100% - 24px, 1180px);
    }

    .brand-title {
        font-size: 20px;
    }

    .brand-subtitle {
        font-size: 11px;
    }

    .hero-copy-main h1 {
        font-size: 38px;
    }

    .hero-copy-main p,
    .page-hero p {
        font-size: 16px;
    }

    .movie-grid,
    .category-grid,
    .category-card-grid,
    .ranking-list.compact,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .ranking-arrow {
        display: none;
    }

    .poster-wrap,
    .movie-card.large .poster-wrap,
    .movie-card.related .poster-wrap {
        height: 260px;
    }

    .hero-slide-copy {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }

    .player-controls {
        flex-wrap: wrap;
    }
}
