:root {
    --teal: #0f766e;
    --teal-dark: #115e59;
    --amber: #f59e0b;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #f9fafb;
    --line: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 48%, #f8fafc 100%);
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

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

.logo-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--teal), var(--amber));
    color: #ffffff;
    font-size: 14px;
    box-shadow: 0 10px 24px rgba(20, 184, 166, 0.35);
}

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

.nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(20, 184, 166, 0.18);
    color: #ffffff;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.65s ease, transform 0.9s ease;
}

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

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 70vh;
    padding: 120px 24px 96px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
}

.hero-content > * {
    max-width: 660px;
}

.hero-badges,
.hero-actions,
.hero-quick-links,
.detail-meta-grid,
.tag-list,
.movie-card-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-badges span,
.tag,
.movie-card-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.hero-badges span:first-child {
    background: var(--amber);
}

.hero-content h1 {
    margin: 18px 0 12px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-meta {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    font-weight: 700;
}

.hero-desc {
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 17px;
}

.primary-btn,
.ghost-btn,
.hero-search button,
.search-page-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.hero-search button,
.search-page-form button {
    background: var(--teal);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 118, 110, 0.32);
}

.primary-btn:hover,
.hero-search button:hover,
.search-page-form button:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
}

.ghost-btn {
    border: 1px solid rgba(255, 255, 255, 0.38);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero-panel {
    position: absolute;
    right: max(24px, calc((100vw - 1280px) / 2 + 24px));
    bottom: 82px;
    width: min(390px, calc(100vw - 48px));
    z-index: 4;
}

.hero-search-card {
    padding: 24px;
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 28px 75px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
}

.hero-search-card h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 900;
}

.hero-search-card p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.76);
}

.hero-search,
.search-page-form {
    display: flex;
    gap: 10px;
}

.hero-search input,
.search-page-form input,
.filter-bar input,
.filter-bar select,
.search-filters select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    padding: 0 16px;
    outline: none;
    background: #ffffff;
    color: var(--ink);
}

.hero-quick-links {
    margin-top: 16px;
}

.hero-quick-links a {
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    font-weight: 700;
}

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

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

.hero-dot.active {
    width: 34px;
    background: var(--amber);
}

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

.section-heading {
    max-width: 720px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-heading.left {
    margin-left: 0;
    text-align: left;
}

.section-heading.compact {
    margin-bottom: 18px;
}

.section-heading span,
.page-hero span {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 13px;
    font-weight: 900;
}

.section-heading h2,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p {
    margin: 12px 0 0;
    color: var(--muted);
}

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

.category-tile,
.category-overview-card {
    border-radius: 24px;
    background: var(--card);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.category-tile {
    min-height: 170px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-tile:hover,
.category-overview-card:hover,
.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.category-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(245, 158, 11, 0.16));
    font-size: 25px;
}

.category-tile strong,
.category-overview-card h2 {
    font-size: 21px;
    font-weight: 900;
}

.category-tile small,
.category-overview-card p {
    color: var(--muted);
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 34px;
    align-items: start;
}

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

.movie-grid.wide,
.movie-grid.category-list,
.movie-grid.ranking-grid {
    grid-template-columns: repeat(5, 1fr);
}

.movie-card {
    min-width: 0;
    border-radius: 20px;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card-link {
    display: block;
    height: 100%;
}

.poster-frame {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: radial-gradient(circle at 30% 20%, rgba(20, 184, 166, 0.28), transparent 32%), linear-gradient(135deg, #111827, #0f766e);
}

.poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease, opacity 0.2s ease;
}

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

.poster-type,
.rank-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.poster-type {
    right: 12px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
}

.rank-badge {
    left: 12px;
    background: var(--amber);
}

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

.movie-card h3 {
    margin: 0 0 8px;
    min-height: 52px;
    font-size: 18px;
    line-height: 1.42;
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-meta {
    margin: 0 0 8px;
    color: var(--teal);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-card-desc {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-tags span {
    background: #f3f4f6;
    color: #374151;
    min-height: 24px;
    font-size: 12px;
}

.rank-panel {
    position: sticky;
    top: 94px;
    padding: 24px;
    border-radius: 24px;
    background: #0f172a;
    color: #ffffff;
    box-shadow: var(--shadow);
}

.rank-panel .section-heading h2 {
    color: #ffffff;
    font-size: 26px;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
}

.ranking-row:hover {
    background: rgba(20, 184, 166, 0.18);
}

.ranking-index {
    grid-row: span 2;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--amber);
    color: #ffffff;
    font-weight: 900;
}

.ranking-title {
    font-weight: 900;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ranking-meta {
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
}

.panel-link {
    display: block;
    margin-top: 16px;
    text-align: center;
    color: #5eead4;
    font-weight: 900;
}

.page-main {
    min-height: 70vh;
}

.page-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 78px 24px 28px;
}

.page-hero > div {
    padding: 36px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(245, 158, 11, 0.16));
    border: 1px solid rgba(15, 118, 110, 0.14);
}

.page-hero.channel > div {
    background: linear-gradient(135deg, #0f172a, #0f766e);
    color: #ffffff;
}

.page-hero.channel p,
.page-hero.channel .breadcrumb,
.page-hero.channel a {
    color: rgba(255, 255, 255, 0.78);
}

.breadcrumb {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--teal);
}

.filter-bar,
.search-filters {
    margin-bottom: 26px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, 180px);
    gap: 12px;
}

.category-overview-card {
    padding: 22px;
}

.category-overview-main {
    display: grid;
    gap: 10px;
}

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

.category-samples a {
    color: var(--teal);
    font-weight: 800;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.search-shell {
    max-width: 1100px;
}

.search-page-form {
    margin-bottom: 14px;
}

.search-page-form input {
    min-height: 56px;
    border-radius: 18px;
    font-size: 16px;
}

.search-page-form button {
    min-height: 56px;
    border-radius: 18px;
    padding: 0 30px;
}

.search-filters {
    grid-template-columns: repeat(3, 1fr);
}

.search-result-title {
    margin: 28px 0 18px;
    font-size: 22px;
    font-weight: 900;
}

.detail-main {
    background: linear-gradient(180deg, #0f172a 0, #0f172a 420px, #f9fafb 420px);
}

.detail-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px 40px;
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 38px;
    color: #ffffff;
}

.detail-poster {
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #0f766e);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.35);
}

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

.detail-info {
    align-self: center;
}

.detail-info h1 {
    margin-top: 18px;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 60px);
}

.detail-one-line {
    margin: 18px 0;
    max-width: 820px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.detail-meta-grid span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.88);
    font-weight: 800;
}

.detail-info .tag-list {
    margin: 18px 0 26px;
}

.detail-play-link {
    min-width: 160px;
}

.player-section {
    padding-top: 24px;
    padding-bottom: 24px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.22), rgba(2, 6, 23, 0.55));
    color: #ffffff;
}

.player-start span {
    width: 96px;
    height: 96px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.92);
    box-shadow: 0 22px 55px rgba(15, 118, 110, 0.42);
    font-size: 34px;
    padding-left: 6px;
}

.player-start.hidden {
    display: none;
}

.detail-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-top: 36px;
}

.detail-article {
    padding: 28px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.detail-article h2 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 900;
}

.detail-article p {
    margin: 0;
    color: #374151;
}

.site-footer {
    margin-top: 40px;
    background: #0f172a;
    color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 54px 24px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
}

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

.footer-grid p {
    max-width: 460px;
}

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

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

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

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

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

    .split-section,
    .detail-text-grid {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: static;
    }

    .hero-panel {
        position: relative;
        right: auto;
        bottom: auto;
        z-index: 6;
        width: auto;
        max-width: 1280px;
        margin: -70px 24px 36px;
    }
}

@media (max-width: 760px) {
    .nav-shell {
        min-height: 64px;
        padding: 0 16px;
    }

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

    .site-nav {
        position: absolute;
        top: 64px;
        left: 16px;
        right: 16px;
        display: none;
        padding: 14px;
        border-radius: 18px;
        background: rgba(15, 23, 42, 0.96);
        flex-direction: column;
        align-items: stretch;
    }

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

    .nav-link {
        text-align: center;
    }

    .site-logo,
    .footer-logo {
        font-size: 18px;
    }

    .hero-content {
        padding: 96px 18px 120px;
    }

    .hero-panel {
        margin: -96px 18px 28px;
    }

    .hero-search,
    .search-page-form {
        flex-direction: column;
    }

    .section-shell,
    .page-hero,
    .detail-hero {
        padding-left: 18px;
        padding-right: 18px;
    }

    .category-grid,
    .category-overview-grid,
    .movie-grid,
    .movie-grid.wide,
    .movie-grid.category-list,
    .movie-grid.ranking-grid,
    .footer-grid,
    .detail-hero,
    .filter-bar,
    .search-filters {
        grid-template-columns: 1fr;
    }

    .page-hero > div {
        padding: 26px;
    }

    .detail-main {
        background: linear-gradient(180deg, #0f172a 0, #0f172a 560px, #f9fafb 560px);
    }

    .detail-poster {
        max-width: 300px;
    }

    .player-start span {
        width: 72px;
        height: 72px;
        font-size: 26px;
    }
}
