:root {
    --site-orange: #f97316;
    --site-red: #ef4444;
    --site-pink: #ec4899;
    --site-dark: #111827;
    --site-muted: #6b7280;
    --site-line: #e5e7eb;
    --site-bg: #f9fafb;
    --site-card: #ffffff;
}

body {
    background: var(--site-bg);
    color: var(--site-dark);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(18px);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #111827;
}

.site-logo::before,
.footer-logo::before {
    content: "";
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--site-orange), var(--site-red), var(--site-pink));
    box-shadow: 0 16px 32px rgba(239, 68, 68, 0.28);
}

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

.nav-link,
.mobile-link {
    color: #374151;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover {
    color: var(--site-orange);
    background: #fff7ed;
}

.mobile-menu-button {
    width: 42px;
    height: 42px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border-radius: 12px;
    background: #f3f4f6;
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #111827;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 10px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.12);
}

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

.hero-slider {
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

.hero-slide {
    display: none;
    min-height: 640px;
    position: relative;
    isolation: isolate;
}

.hero-slide.is-active {
    display: block;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    z-index: -3;
    background: linear-gradient(135deg, #111827, #7f1d1d 48%, #0f172a);
}

.hero-slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
    filter: blur(1px) saturate(1.08);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.62) 48%, rgba(15, 23, 42, 0.18)), linear-gradient(0deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.1) 45%, rgba(15, 23, 42, 0.82));
}

.hero-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) 360px;
    align-items: center;
    gap: 54px;
    padding: 54px 0;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #ffedd5;
    background: rgba(249, 115, 22, 0.16);
    border: 1px solid rgba(251, 146, 60, 0.36);
    font-weight: 800;
}

.hero-title {
    max-width: 780px;
    color: #ffffff;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.06em;
    margin: 24px 0 18px;
}

.hero-desc {
    max-width: 720px;
    color: #e5e7eb;
    font-size: 20px;
    line-height: 1.75;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 30px;
}

.hero-meta span,
.tag-pill,
.category-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-meta span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.btn-primary,
.btn-secondary,
.btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-orange), var(--site-red));
    box-shadow: 0 18px 35px rgba(239, 68, 68, 0.28);
}

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

.btn-light {
    color: #111827;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-light:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(135deg, #1f2937, #7c2d12);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.42);
    aspect-ratio: 2 / 3;
}

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

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.38));
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.44);
    border: 0;
    transition: width 0.25s ease, background 0.25s ease;
}

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

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

.page-section.compact {
    padding: 34px 0;
}

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

.section-heading h1,
.section-heading h2 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.04em;
    color: #111827;
}

.section-heading p {
    color: var(--site-muted);
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.7;
}

.section-link {
    color: var(--site-orange);
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--site-line);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.search-panel input,
.search-panel select {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid var(--site-line);
    border-radius: 16px;
    color: #111827;
    background: #f9fafb;
    outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
    border-color: var(--site-orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

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

.filter-button {
    padding: 9px 14px;
    border-radius: 999px;
    color: #374151;
    background: #ffffff;
    border: 1px solid var(--site-line);
    font-weight: 800;
}

.filter-button.active,
.filter-button:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-orange), var(--site-red));
    border-color: transparent;
}

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

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 22px;
    background: var(--site-card);
    border: 1px solid rgba(229, 231, 235, 0.88);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.35);
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.14);
}

.cover-link {
    display: block;
}

.cover-box {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #111827, #7c2d12 55%, #be123c);
}

.cover-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.94);
    opacity: 0;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
    transition: all 0.24s ease;
}

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

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-orange), var(--site-red));
    font-weight: 950;
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.3);
}

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

.movie-title {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #111827;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 900;
}

.movie-title:hover {
    color: var(--site-orange);
}

.movie-meta {
    color: #f97316;
    font-size: 13px;
    font-weight: 800;
    margin-top: 8px;
}

.movie-desc {
    display: -webkit-box;
    min-height: 42px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.55;
    margin-top: 8px;
}

.movie-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    color: #9ca3af;
    font-size: 12px;
}

.category-chip {
    color: #ea580c;
    background: #fff7ed;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 164px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 10px;
    padding: 22px;
    border-radius: 24px;
    color: #ffffff;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 65px rgba(15, 23, 42, 0.25);
}

.category-card::before {
    content: "";
    position: absolute;
    right: -35px;
    top: -35px;
    width: 130px;
    height: 130px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.category-card h2,
.category-card h3 {
    position: relative;
    font-size: 24px;
    font-weight: 950;
}

.category-card p {
    position: relative;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
}

.gradient-guochan {
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.gradient-movie {
    background: linear-gradient(135deg, #3b82f6, #4f46e5);
}

.gradient-series {
    background: linear-gradient(135deg, #a855f7, #db2777);
}

.gradient-suspense {
    background: linear-gradient(135deg, #374151, #111827);
}

.gradient-romance {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.gradient-action {
    background: linear-gradient(135deg, #ef4444, #ea580c);
}

.gradient-fantasy {
    background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.gradient-comedy-animation {
    background: linear-gradient(135deg, #22c55e, #059669);
}

.gradient-documentary-variety {
    background: linear-gradient(135deg, #eab308, #f97316);
}

.gradient-europe-america {
    background: linear-gradient(135deg, #6366f1, #7c3aed);
}

.gradient-japan-korea {
    background: linear-gradient(135deg, #14b8a6, #0891b2);
}

.gradient-drama {
    background: linear-gradient(135deg, #475569, #1e293b);
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--site-line);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
    transform: translateX(4px);
    border-color: rgba(249, 115, 22, 0.35);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
}

.rank-num {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-orange), var(--site-red));
    font-weight: 950;
}

.rank-title {
    min-width: 0;
    overflow: hidden;
    color: #111827;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-meta {
    color: var(--site-muted);
    font-size: 13px;
    white-space: nowrap;
}

.detail-hero {
    background: linear-gradient(135deg, #0f172a, #7f1d1d 55%, #111827);
    color: #ffffff;
}

.detail-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 38px;
    padding: 58px 0;
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #111827, #7c2d12);
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.35);
}

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

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    margin-bottom: 18px;
}

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

.detail-title {
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.detail-one {
    max-width: 780px;
    margin-top: 18px;
    color: #e5e7eb;
    font-size: 19px;
    line-height: 1.75;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-weight: 800;
}

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

.tag-pill {
    color: #ffedd5;
    background: rgba(249, 115, 22, 0.16);
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.player-wrap {
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 24px 68px rgba(15, 23, 42, 0.25);
}

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

.player-frame video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.18), rgba(0, 0, 0, 0.62));
    color: #ffffff;
    z-index: 3;
}

.play-overlay.hidden {
    display: none;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--site-orange), var(--site-red));
    font-size: 34px;
    box-shadow: 0 24px 56px rgba(239, 68, 68, 0.35);
}

.content-card {
    padding: 28px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid var(--site-line);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.content-card h2 {
    color: #111827;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 950;
    margin-bottom: 14px;
}

.content-card p {
    color: #374151;
    font-size: 16px;
    line-height: 1.9;
    margin-top: 12px;
}

.no-result {
    display: none;
    padding: 36px;
    border-radius: 22px;
    background: #ffffff;
    color: var(--site-muted);
    text-align: center;
    border: 1px solid var(--site-line);
}

.no-result.show {
    display: block;
}

.site-footer {
    margin-top: 30px;
    background: #111827;
    color: #d1d5db;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 32px;
    padding: 42px 0;
}

.footer-logo {
    color: #ffffff;
    margin-bottom: 14px;
}

.footer-inner p {
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-content: start;
    gap: 10px;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
    background: rgba(249, 115, 22, 0.86);
}

@media (max-width: 1024px) {
    .hero-inner,
    .detail-inner,
    .rank-layout {
        grid-template-columns: 1fr;
    }

    .hero-poster,
    .detail-cover {
        max-width: 340px;
    }

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

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

    .mobile-menu-button {
        display: inline-flex;
    }

    .hero-slide,
    .hero-inner {
        min-height: auto;
    }

    .hero-inner {
        padding: 46px 0 82px;
        gap: 30px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-desc,
    .detail-one {
        font-size: 16px;
    }

    .hero-poster,
    .detail-cover {
        max-width: 260px;
    }

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

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

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

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

    .rank-meta {
        grid-column: 2;
    }

    .detail-inner {
        padding: 34px 0;
    }

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

@media (max-width: 460px) {
    .header-inner,
    .page-section,
    .detail-inner,
    .hero-inner,
    .footer-inner {
        width: min(100% - 24px, 1180px);
    }

    .movie-grid,
    .movie-grid.dense,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .movie-card {
        border-radius: 18px;
    }
}
