* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: #111827;
    background: #f9fafb;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(120deg, #0d9488, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
    background: linear-gradient(135deg, #14b8a6, #2563eb);
    box-shadow: 0 10px 25px rgba(20, 184, 166, 0.28);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: #374151;
    font-weight: 650;
}

.main-nav a,
.nav-dropdown > a {
    transition: color 0.2s ease;
}

.main-nav a:hover,
.nav-dropdown:hover > a {
    color: #0d9488;
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: -18px;
    width: 210px;
    padding: 10px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.dropdown-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
}

.dropdown-panel a:hover {
    color: #0d9488;
    background: #f0fdfa;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search input,
.big-search input,
.filter-bar input,
.filter-bar select {
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 11px 16px;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.big-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

.nav-search button,
.big-search button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #0d9488, #2563eb);
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    color: #0f172a;
    background: #f1f5f9;
}

.mobile-nav {
    display: none;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

.mobile-nav a {
    display: block;
    padding: 14px 24px;
    color: #334155;
    font-weight: 650;
}

.hero {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    background: #0f172a;
}

.hero-track,
.hero-slide {
    min-height: 660px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.65fr);
    gap: 48px;
    align-items: center;
    width: 100%;
    padding: 84px max(28px, calc((100vw - 1280px) / 2 + 24px)) 116px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, #0d9488, #2563eb 55%, #4338ca);
}

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

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.58) 52%, rgba(15, 23, 42, 0.2));
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 1;
}

.hero-kicker,
.eyebrow {
    margin: 0 0 12px;
    color: #14b8a6;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 760px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-content h2 {
    margin: 24px 0 12px;
    color: #dffdfa;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.2;
}

.hero-content p {
    max-width: 720px;
    margin: 0;
    color: #dbeafe;
    font-size: 19px;
}

.hero-tags,
.tag-row,
.detail-meta,
.movie-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-tags {
    margin-top: 26px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 12px;
    border-radius: 999px;
    color: #0f766e;
    background: #ccfbf1;
    font-size: 13px;
    font-weight: 700;
}

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

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

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    color: #ffffff;
    background: linear-gradient(135deg, #0d9488, #2563eb);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.22);
}

.btn.ghost {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.08);
}

.btn.ghost:hover {
    color: #0f766e;
    background: #ffffff;
}

.hero-poster {
    align-self: stretch;
    min-height: 430px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.35), rgba(37, 99, 235, 0.35));
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.45);
}

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

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #0d9488;
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
}

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

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

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

.stat-strip {
    position: relative;
    z-index: 3;
    max-width: 1120px;
    margin: -64px auto 0;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    padding: 28px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    text-align: center;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card strong {
    display: block;
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 34px;
    line-height: 1;
}

.stat-card span {
    color: #64748b;
    font-weight: 700;
}

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px;
}

.muted-section {
    max-width: none;
    background: #f1f5f9;
}

.muted-section > .section-head,
.muted-section > .category-grid,
.muted-section > .movie-grid {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

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

.section-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.15;
}

.section-link {
    color: #0d9488;
    font-weight: 800;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

.movie-card {
    min-width: 0;
    border-radius: 22px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.featured-card {
    grid-column: span 2;
    grid-row: span 2;
}

.poster-frame,
.rank-cover,
.category-covers,
.hero-poster {
    position: relative;
}

.poster-frame {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #0d9488 48%, #2563eb);
}

.poster-frame img,
.rank-cover img,
.category-covers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.play-dot {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #0d9488;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.24);
    opacity: 0;
    transform: scale(0.75);
    transition: all 0.24s ease;
}

.movie-card:hover .play-dot {
    opacity: 1;
    transform: scale(1);
}

.year-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    font-size: 12px;
    font-weight: 800;
}

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

.movie-card h3,
.rank-info h3,
.side-card h2 {
    margin: 0;
    color: #0f172a;
    line-height: 1.35;
}

.movie-card h3 {
    font-size: 18px;
}

.movie-card p,
.rank-info p,
.side-card p,
.category-card p,
.page-hero p,
.detail-card p {
    color: #64748b;
}

.movie-card p {
    min-height: 50px;
    margin: 10px 0 14px;
    font-size: 14px;
}

.movie-meta,
.detail-meta {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.movie-meta span + span::before,
.detail-meta span + span::before {
    content: "•";
    margin-right: 8px;
    color: #cbd5e1;
}

.tag-row {
    margin-top: 14px;
}

.category-grid,
.category-overview {
    display: grid;
    gap: 22px;
}

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

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

.category-tile,
.category-card a {
    display: block;
    min-height: 170px;
    padding: 24px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-card a:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.category-tile span,
.category-card h2 {
    display: block;
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 22px;
    font-weight: 850;
}

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

.category-covers {
    height: 148px;
    margin: -24px -24px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    overflow: hidden;
    border-radius: 26px 26px 0 0;
    background: linear-gradient(135deg, #0d9488, #2563eb);
}

.page-hero {
    padding: 92px max(24px, calc((100vw - 1280px) / 2 + 24px));
    color: #ffffff;
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.22), transparent 26%),
        linear-gradient(135deg, #0d9488, #2563eb 58%, #4338ca);
}

.page-hero h1 {
    max-width: 860px;
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
}

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

.compact-hero {
    padding-top: 74px;
    padding-bottom: 74px;
}

.category-hero .btn.ghost,
.search-hero .btn.ghost {
    color: #ffffff;
}

.small-actions {
    margin-top: 24px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px 180px;
    gap: 14px;
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.07);
}

.filter-bar select {
    appearance: none;
}

.empty-state {
    display: none;
    padding: 52px;
    border-radius: 24px;
    color: #64748b;
    background: #ffffff;
    text-align: center;
}

.empty-state.show {
    display: block;
}

.big-search {
    max-width: 720px;
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.big-search input {
    flex: 1;
    border-radius: 18px;
    padding: 16px 18px;
}

.big-search button {
    border-radius: 18px;
    padding: 0 28px;
    font-weight: 800;
}

.ranking-section {
    display: grid;
    gap: 42px;
}

.rank-block {
    padding: 28px;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 14px 44px rgba(15, 23, 42, 0.08);
}

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

.rank-item a {
    display: grid;
    grid-template-columns: 56px 128px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: #f8fafc;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item a:hover {
    background: #ecfeff;
    transform: translateX(4px);
}

.rank-num {
    color: #64748b;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.top-rank .rank-num {
    color: #0d9488;
}

.rank-cover {
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #0d9488, #2563eb);
}

.rank-info p {
    margin: 8px 0 10px;
}

.watch-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 24px 80px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #64748b;
    font-size: 14px;
}

.breadcrumb a {
    color: #0d9488;
    font-weight: 700;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000000;
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.22);
}

.watch-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.68));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #0d9488;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.32);
}

.play-overlay strong {
    font-size: 20px;
}

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

.player-status {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 2;
    min-height: 24px;
    color: #ffffff;
    font-size: 13px;
}

.detail-card,
.related-section,
.side-card {
    margin-top: 24px;
    padding: 28px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 14px 44px rgba(15, 23, 42, 0.08);
}

.detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.detail-card h1 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
}

.detail-card h2 {
    margin: 30px 0 10px;
    color: #0f172a;
    font-size: 24px;
}

.detail-card p {
    margin: 0;
    font-size: 16px;
}

.lead-text {
    margin-top: 22px !important;
    color: #334155 !important;
    font-size: 19px !important;
    font-weight: 650;
}

.detail-tags {
    margin-top: 18px;
}

.watch-sidebar {
    position: sticky;
    top: 94px;
    align-self: start;
}

.poster-side .poster-frame {
    border-radius: 20px;
    margin-bottom: 18px;
}

.side-rank {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.side-rank a {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    color: #334155;
    font-weight: 700;
}

.side-rank span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    color: #ffffff;
    background: #0d9488;
    font-size: 12px;
}

.site-footer {
    color: #e2e8f0;
    background: linear-gradient(135deg, #1e293b, #0f172a 55%, #134e4a);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 28px;
}

.footer-logo {
    margin-bottom: 16px;
    color: #ffffff;
    -webkit-background-clip: initial;
    background-clip: initial;
    background: none;
}

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

.site-footer p {
    max-width: 420px;
    color: #cbd5e1;
}

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

.site-footer a:hover {
    color: #5eead4;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding: 18px 24px;
    color: #94a3b8;
    text-align: center;
}

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

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

    .watch-sidebar {
        position: static;
    }
}

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

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-nav.open {
        display: block;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 64px;
    }

    .hero-poster {
        min-height: 280px;
    }

    .stat-strip,
    .movie-grid.four-col,
    .movie-grid.three-col,
    .category-grid,
    .category-overview,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 640px) {
    .nav-wrap {
        height: 64px;
        padding: 0 16px;
    }

    .logo {
        font-size: 20px;
    }

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

    .hero-slide {
        padding: 42px 18px 86px;
    }

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

    .hero-actions,
    .big-search,
    .detail-head {
        flex-direction: column;
        align-items: stretch;
    }

    .stat-strip,
    .movie-grid.four-col,
    .movie-grid.three-col,
    .category-grid,
    .category-overview,
    .footer-grid,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 52px 16px;
    }

    .page-hero {
        padding: 58px 18px;
    }

    .rank-item a {
        grid-template-columns: 42px 92px minmax(0, 1fr);
        gap: 12px;
        padding: 10px;
    }

    .featured-card {
        grid-column: span 1;
        grid-row: span 1;
    }

    .watch-layout {
        padding: 22px 14px 56px;
    }

    .detail-card,
    .related-section,
    .side-card {
        padding: 20px;
    }
}
