* {
    box-sizing: border-box;
}

:root {
    --teal: #14b8a6;
    --teal-dark: #0f766e;
    --cyan: #0891b2;
    --slate: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --card: #ffffff;
    --soft: #f8fafc;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #111827;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 52%, #f1f5f9 100%);
    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;
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 18px rgba(15, 23, 42, 0.08);
}

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

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    box-shadow: 0 14px 28px rgba(20, 184, 166, 0.24);
}

.logo-text {
    font-size: 21px;
    line-height: 1.2;
    background: linear-gradient(90deg, var(--teal-dark), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.main-nav a {
    transition: color 180ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--teal-dark);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 260px;
    height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 0 18px 0 42px;
    outline: none;
    background: #ffffff;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-box input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f1f5f9;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    padding: 14px 0 20px;
}

.mobile-nav a {
    display: block;
    padding: 11px 0;
    color: #334155;
    font-weight: 700;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    background: #000000;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 900ms ease;
}

.hero-slide.is-active {
    opacity: 1;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.55) 42%, rgba(0, 0, 0, 0.16) 100%);
}

.hero-content {
    position: absolute;
    inset: auto 0 0 0;
    padding: 0 0 76px;
    color: #ffffff;
}

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

.hero-copy {
    width: min(650px, 100%);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(20, 184, 166, 0.92);
    font-size: 14px;
    font-weight: 800;
}

.hero h1 {
    margin: 18px 0 14px;
    font-size: clamp(38px, 6vw, 70px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

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

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 22px 0 28px;
    color: #cbd5e1;
    font-weight: 700;
}

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

.btn {
    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 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
    transform: translateY(-1px) scale(1.02);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    box-shadow: 0 16px 28px rgba(20, 184, 166, 0.25);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: background 180ms ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.68);
}

.hero-arrow.prev {
    left: 22px;
}

.hero-arrow.next {
    right: 22px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 180ms ease, background 180ms ease;
}

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

.page-section {
    padding: 56px 0;
}

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

.section-title {
    margin: 0;
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.section-desc {
    margin: 8px 0 0;
    color: var(--muted);
}

.more-link {
    color: var(--teal-dark);
    font-weight: 800;
    white-space: nowrap;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 20px;
    background: var(--card);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
}

.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

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

.poster-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.36);
    opacity: 0;
    transition: opacity 220ms ease;
}

.movie-card:hover .poster-layer {
    opacity: 1;
}

.play-chip {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.94);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.24);
}

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

.card-title {
    margin: 0 0 8px;
    overflow: hidden;
    color: #111827;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card:hover .card-title {
    color: var(--teal-dark);
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 650;
}

.card-line {
    margin: 9px 0 0;
    overflow: hidden;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.highlight-wrap {
    margin: 40px 0;
    padding: 34px;
    border-radius: 32px;
    background: linear-gradient(135deg, #f1f5f9, #ecfeff);
}

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

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

.category-tile {
    min-height: 178px;
    padding: 22px;
    border: 1px solid rgba(20, 184, 166, 0.14);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(20, 184, 166, 0.42);
    box-shadow: var(--shadow);
}

.category-tile h2,
.category-tile h3 {
    margin: 0 0 9px;
    font-size: 21px;
}

.category-tile p {
    margin: 0;
    color: #64748b;
}

.page-hero {
    padding: 54px 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
}

.page-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.12;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.tools-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.tools-bar input,
.tools-bar select {
    height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 0 16px;
    outline: none;
    background: #ffffff;
}

.tools-bar input {
    min-width: min(420px, 100%);
    flex: 1;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 64px 110px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.rank-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.rank-number {
    color: var(--teal-dark);
    font-size: 26px;
    font-weight: 900;
    text-align: center;
}

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

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

.rank-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 900;
}

.rank-desc {
    margin: 0;
    color: #64748b;
}

.rank-heat {
    color: #0f766e;
    font-weight: 900;
    white-space: nowrap;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 22px 0;
    color: #64748b;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--teal-dark);
    font-weight: 700;
}

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

.player-card {
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.24);
}

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

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
    cursor: pointer;
    transition: opacity 180ms ease, visibility 180ms ease;
}

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

.big-play {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.95);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.28);
}

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

.detail-card h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    color: #0f766e;
    background: #ccfbf1;
    font-size: 13px;
    font-weight: 800;
}

.detail-card h2,
.sidebar-card h2 {
    margin: 24px 0 10px;
    font-size: 22px;
}

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

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

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

.sidebar-card {
    position: sticky;
    top: 100px;
    padding: 20px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.related-link {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.related-link:last-child {
    border-bottom: 0;
}

.related-cover {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
}

.related-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.related-link:hover img {
    transform: scale(1.08);
}

.related-title {
    margin: 0 0 6px;
    color: #111827;
    font-weight: 850;
    line-height: 1.35;
}

.related-meta {
    color: #64748b;
    font-size: 13px;
}

.site-footer {
    margin-top: 60px;
    color: #cbd5e1;
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

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

.site-footer h2,
.site-footer h3 {
    margin: 0 0 13px;
    color: #ffffff;
}

.site-footer p {
    margin: 0;
    color: #94a3b8;
}

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

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

.copyright {
    padding: 18px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    color: #94a3b8;
    font-size: 14px;
}

.empty-state {
    display: none;
    padding: 42px;
    border-radius: 24px;
    color: #64748b;
    text-align: center;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.empty-state.is-visible {
    display: block;
}

@media (max-width: 1080px) {
    .main-nav,
    .header-actions .search-box {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

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

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

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

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

    .sidebar-card {
        position: static;
    }
}

@media (max-width: 720px) {
    .container,
    .hero-inner {
        width: min(100% - 24px, 1180px);
    }

    .header-row {
        min-height: 66px;
    }

    .logo-text {
        font-size: 17px;
    }

    .hero {
        min-height: 560px;
    }

    .hero-content {
        padding-bottom: 84px;
    }

    .hero-arrow {
        display: none;
    }

    .page-section {
        padding: 38px 0;
    }

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

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

    .highlight-wrap {
        padding: 22px;
        border-radius: 24px;
    }

    .rank-item {
        grid-template-columns: 44px 82px 1fr;
    }

    .rank-heat {
        grid-column: 2 / -1;
    }

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

    .tools-bar input {
        min-width: 100%;
    }

    .related-link {
        grid-template-columns: 96px 1fr;
    }
}
