* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 42%, #f8fafc 100%);
    color: #111827;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
    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.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

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

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

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.25);
    font-size: 16px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    color: #d1d5db;
    font-size: 15px;
    font-weight: 700;
}

.site-nav a {
    transition: color 0.2s ease;
}

.site-nav a:hover {
    color: #fb923c;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 8px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
}

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

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.hero-slider {
    position: relative;
    min-height: 620px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    filter: saturate(1.06);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.28));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 48px;
    align-items: center;
    padding: 86px 0 110px;
}

.hero-kicker,
.page-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.18);
    border: 1px solid rgba(251, 146, 60, 0.4);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
}

.hero h1 {
    max-width: 780px;
    margin: 22px 0 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 720px;
    margin: 0 0 26px;
    color: #e5e7eb;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

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

.hero-tags span,
.detail-tags span,
.card-tags span {
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #f9fafb;
    font-size: 13px;
}

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

.btn-primary,
.btn-secondary,
.btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 18px 34px rgba(239, 68, 68, 0.25);
}

.btn-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-dark {
    color: #ffffff;
    background: #111827;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 35px rgba(17, 24, 39, 0.18);
}

.hero-panel {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    transform: translateY(14px);
}

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

.hero-panel-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 72px 20px 22px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent);
}

.hero-panel-info strong {
    display: block;
    font-size: 21px;
    margin-bottom: 8px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dot.active {
    width: 34px;
    background: #f97316;
}

.section {
    padding: 72px 0;
}

.section-soft {
    background: linear-gradient(135deg, #fff7ed, #fefce8);
}

.section-dark {
    background: linear-gradient(180deg, #111827, #030712);
    color: #ffffff;
}

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

.section-title {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 3.8vw, 42px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-dark .section-title {
    color: #ffffff;
}

.section-subtitle {
    max-width: 680px;
    margin: 10px 0 0;
    color: #6b7280;
    line-height: 1.8;
}

.section-dark .section-subtitle {
    color: #d1d5db;
}

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

.category-card {
    position: relative;
    min-height: 170px;
    padding: 24px;
    overflow: hidden;
    color: #ffffff;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.13);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -36px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 54px rgba(17, 24, 39, 0.18);
}

.category-card strong {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 12px;
    font-size: 24px;
}

.category-card span {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.accent-red { background: linear-gradient(135deg, #ef4444, #f97316); }
.accent-orange { background: linear-gradient(135deg, #f97316, #f59e0b); }
.accent-blue { background: linear-gradient(135deg, #2563eb, #38bdf8); }
.accent-purple { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.accent-pink { background: linear-gradient(135deg, #ec4899, #fb7185); }
.accent-green { background: linear-gradient(135deg, #16a34a, #22c55e); }
.accent-amber { background: linear-gradient(135deg, #d97706, #f59e0b); }
.accent-cyan { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.accent-indigo { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.accent-yellow { background: linear-gradient(135deg, #ca8a04, #f97316); }

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

.movie-card {
    overflow: hidden;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 42px rgba(17, 24, 39, 0.14);
}

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
    aspect-ratio: 16 / 10;
}

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

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

.movie-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.25s ease;
}

.movie-card:hover .movie-poster::after {
    background: rgba(0, 0, 0, 0.34);
}

.movie-year,
.play-badge {
    position: absolute;
    z-index: 2;
}

.movie-year {
    right: 10px;
    bottom: 10px;
    padding: 4px 8px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.72);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.play-badge {
    left: 50%;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.92);
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-title {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: #111827;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 850;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-title:hover {
    color: #ea580c;
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 40px;
    margin: 8px 0 12px;
    overflow: hidden;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta,
.list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 12px;
}

.movie-meta span:first-child,
.list-meta span {
    padding: 4px 8px;
    background: #f3f4f6;
    border-radius: 999px;
}

.movie-list {
    display: grid;
    gap: 18px;
}

.movie-list-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
    padding: 14px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

.list-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #111827;
    aspect-ratio: 16 / 10;
}

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

.list-thumb span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.18);
    font-size: 28px;
}

.list-title {
    display: block;
    margin: 4px 0 8px;
    font-size: 21px;
    font-weight: 900;
}

.list-title:hover {
    color: #ea580c;
}

.movie-list-card p {
    margin: 0 0 12px;
    color: #6b7280;
    line-height: 1.75;
}

.page-hero {
    padding: 72px 0;
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #1f2937 48%, #ea580c);
}

.page-hero h1 {
    max-width: 820px;
    margin: 18px 0 12px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -0.04em;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #fed7aa;
    font-size: 14px;
    font-weight: 700;
}

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

.search-panel {
    padding: 28px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 14px 42px rgba(17, 24, 39, 0.09);
}

.search-input {
    width: 100%;
    height: 58px;
    padding: 0 22px;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    outline: none;
    font-size: 17px;
}

.search-input:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.18);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.filter-btn {
    padding: 8px 14px;
    color: #374151;
    background: #f3f4f6;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
    color: #ffffff;
    background: #f97316;
}

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

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

.rank-card {
    display: grid;
    grid-template-columns: 54px 128px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

.rank-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    border-radius: 14px;
    font-weight: 950;
}

.rank-thumb {
    overflow: hidden;
    border-radius: 14px;
    background: #111827;
    aspect-ratio: 16 / 10;
}

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

.rank-card h2 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.4;
}

.rank-card h2 a:hover {
    color: #ea580c;
}

.rank-card p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #6b7280;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.player-card,
.detail-card,
.side-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 14px 42px rgba(17, 24, 39, 0.1);
    overflow: hidden;
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.5));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 24px 48px rgba(239, 68, 68, 0.35);
    font-size: 32px;
    cursor: pointer;
}

.player-title {
    padding: 22px 24px;
}

.player-title h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.18;
    font-weight: 950;
}

.player-title p {
    margin: 0;
    color: #6b7280;
    line-height: 1.8;
}

.detail-card {
    padding: 26px;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 900;
}

.detail-card p {
    margin: 0 0 18px;
    color: #374151;
    line-height: 1.95;
}

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

.detail-meta div {
    padding: 14px;
    background: #f9fafb;
    border-radius: 16px;
}

.detail-meta span {
    display: block;
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 6px;
}

.detail-meta strong {
    color: #111827;
}

.detail-tags span {
    color: #374151;
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.side-card {
    padding: 18px;
}

.side-cover {
    overflow: hidden;
    border-radius: 18px;
    background: #111827;
    margin-bottom: 18px;
}

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

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

.related-item {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.related-item img {
    width: 86px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
    background: #111827;
}

.related-item strong {
    display: block;
    margin-bottom: 6px;
    line-height: 1.45;
}

.related-item strong:hover {
    color: #ea580c;
}

.related-item span {
    color: #6b7280;
    font-size: 12px;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(180deg, #111827, #030712);
}

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

.site-footer p {
    max-width: 520px;
    color: #9ca3af;
    line-height: 1.8;
}

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

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

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

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 22px 16px;
    color: #6b7280;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

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

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

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

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        padding: 18px;
        background: rgba(17, 24, 39, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 18px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
    }

    .site-nav.open {
        display: grid;
        gap: 14px;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        padding: 68px 0 110px;
    }

    .hero-panel {
        max-width: 280px;
        margin: 0 auto;
    }

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

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

    .ranking-list {
        grid-template-columns: 1fr;
    }
}

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

    .section {
        padding: 50px 0;
    }

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

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

    .movie-title {
        font-size: 14px;
    }

    .movie-card-body p {
        display: none;
    }

    .movie-list-card,
    .rank-card {
        grid-template-columns: 1fr;
    }

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

    .player-button {
        width: 68px;
        height: 68px;
        font-size: 26px;
    }
}
