:root {
    --ocean-deep: #0a4a6b;
    --ocean-blue: #1a7fa0;
    --ocean-light: #4fb3d4;
    --sand-light: #f5ebe0;
    --sand-warm: #e3d5ca;
    --coral-accent: #ff6b6b;
    --coral-light: #ff9999;
    --seafoam: #88d4ab;
    --sunset-orange: #ff9f1c;
    --cloud-white: #ffffff;
    --mist-gray: #f8f9fa;
    --charcoal: #2c3e50;
    --text-dark: #1a1a1a;
    --text-gray: #6c757d;
    --shadow: 0 12px 32px rgba(10, 74, 107, 0.16);
    --shadow-lg: 0 20px 52px rgba(10, 74, 107, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text-dark);
    background:
        radial-gradient(circle at top left, rgba(136, 212, 171, 0.22), transparent 32rem),
        linear-gradient(180deg, var(--sand-light), #ffffff 42rem);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    color: #fff;
    background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-blue) 54%, var(--ocean-light) 100%);
    box-shadow: 0 12px 36px rgba(10, 74, 107, 0.25);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--ocean-deep);
    background: linear-gradient(135deg, var(--seafoam), #ffffff);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.brand-name {
    font-size: 1.18rem;
}

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

.desktop-nav a {
    padding: 9px 10px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.86);
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.top-search {
    width: 300px;
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.top-search input,
.mobile-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    padding: 10px 14px;
}

.top-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.top-search button,
.mobile-search button {
    border: 0;
    cursor: pointer;
    color: var(--ocean-deep);
    padding: 9px 15px;
    border-radius: 999px;
    font-weight: 700;
    background: var(--seafoam);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.14);
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-search {
    display: flex;
    padding: 4px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.16);
}

.mobile-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding-top: 14px;
}

.mobile-links a {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
}

main {
    min-height: 70vh;
}

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

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

.section-head h1,
.section-head h2 {
    margin: 0 0 8px;
    color: var(--ocean-deep);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.section-head p {
    margin: 0;
    max-width: 760px;
    color: var(--text-gray);
    line-height: 1.8;
}

.more-link {
    color: var(--ocean-blue);
    font-weight: 800;
}

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--ocean-deep);
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    transition: opacity 0.65s ease;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.68fr;
    gap: 44px;
    align-items: center;
    padding: 78px 0 88px;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: var(--seafoam);
    background: rgba(10, 74, 107, 0.38);
    backdrop-filter: blur(14px);
    font-weight: 800;
}

.hero h1 {
    margin: 22px 0 16px;
    font-size: clamp(2.8rem, 8vw, 5.6rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.hero p {
    max-width: 720px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.85;
    font-size: 1.08rem;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--ocean-deep);
    background: rgba(136, 212, 171, 0.92);
    font-size: 0.84rem;
    font-weight: 700;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 16px;
    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: var(--ocean-deep);
    background: var(--seafoam);
    box-shadow: 0 12px 26px rgba(136, 212, 171, 0.3);
}

.btn-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
}

.hero-card {
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
}

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

.hero-card-body {
    padding: 22px;
}

.hero-card-body strong {
    display: block;
    margin-bottom: 8px;
    color: var(--seafoam);
}

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

.hero-dots button {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.38);
}

.hero-dots button.active {
    background: var(--seafoam);
}

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

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

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

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

.category-card {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    padding: 22px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--ocean-blue), var(--ocean-light));
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.category-card span {
    position: absolute;
    right: -18px;
    bottom: -22px;
    color: rgba(255, 255, 255, 0.11);
    font-size: 5.5rem;
    font-weight: 900;
}

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--ocean-deep), var(--ocean-light));
}

.movie-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.movie-card:hover .movie-cover img {
    transform: scale(1.07);
    opacity: 0.86;
}

.play-dot {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--ocean-deep);
    background: rgba(136, 212, 171, 0.92);
    transform: scale(0.92);
    transition: transform 0.25s ease;
}

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

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    background: var(--coral-accent);
    font-style: normal;
    font-size: 0.78rem;
    font-weight: 900;
}

.movie-info {
    padding: 16px;
}

.movie-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--ocean-blue);
    font-size: 0.82rem;
    font-weight: 800;
}

.movie-info h3 {
    margin: 0 0 8px;
    color: var(--charcoal);
    font-size: 1.05rem;
    line-height: 1.35;
}

.movie-info h3 a:hover,
.ranking-main a:hover {
    color: var(--ocean-blue);
}

.movie-info p {
    min-height: 48px;
    margin: 0 0 12px;
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.92rem;
}

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 86px 1fr 72px;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(10, 74, 107, 0.1);
}

.ranking-thumb {
    overflow: hidden;
    border-radius: 16px;
}

.ranking-thumb img {
    width: 86px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.ranking-main {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.ranking-main strong {
    min-width: 42px;
    color: var(--coral-accent);
    font-size: 1.4rem;
}

.ranking-main h3 {
    margin: 0 0 6px;
    color: var(--charcoal);
}

.ranking-main p {
    margin: 0 0 8px;
    color: var(--text-gray);
    line-height: 1.6;
}

.ranking-main span {
    color: var(--ocean-blue);
    font-size: 0.9rem;
    font-weight: 700;
}

.ranking-score {
    justify-self: end;
    min-width: 56px;
    padding: 8px 10px;
    border-radius: 14px;
    color: var(--ocean-deep);
    background: var(--seafoam);
    text-align: center;
    font-weight: 900;
}

.page-hero {
    color: #fff;
    background:
        radial-gradient(circle at 78% 20%, rgba(136, 212, 171, 0.38), transparent 26rem),
        linear-gradient(135deg, var(--ocean-deep), var(--ocean-blue));
}

.page-hero .section {
    padding: 72px 0;
}

.page-hero h1 {
    max-width: 860px;
    margin: 0 0 16px;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.85;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 12px;
    margin-bottom: 24px;
    padding: 12px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
}

.filter-bar input,
.filter-bar select,
.search-panel input {
    width: 100%;
    border: 1px solid rgba(26, 127, 160, 0.16);
    outline: 0;
    border-radius: 16px;
    padding: 14px 16px;
    color: var(--text-dark);
    background: var(--mist-gray);
}

.search-panel {
    display: grid;
    gap: 12px;
    margin-bottom: 26px;
    padding: 16px;
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--shadow);
}

.search-panel button {
    border: 0;
    cursor: pointer;
    color: var(--ocean-deep);
    padding: 14px 18px;
    border-radius: 16px;
    background: var(--seafoam);
    font-weight: 900;
}

.search-line {
    color: var(--text-gray);
}

.breadcrumb {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--ocean-blue);
    font-weight: 800;
}

.detail-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 28px;
    align-items: start;
}

.detail-main,
.detail-side,
.text-card {
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow);
}

.detail-main {
    overflow: hidden;
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #000;
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.42);
    transition: opacity 0.25s ease;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.56;
}

.player-cover button {
    position: relative;
    z-index: 2;
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    color: var(--ocean-deep);
    background: var(--seafoam);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    font-size: 1.6rem;
}

.player-shell.is-playing .player-cover {
    opacity: 0;
    pointer-events: none;
}

.detail-content {
    padding: 28px;
}

.detail-content h1 {
    margin: 0 0 14px;
    color: var(--ocean-deep);
    font-size: clamp(2rem, 5vw, 3.4rem);
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--ocean-blue);
    background: rgba(79, 179, 212, 0.12);
    font-weight: 800;
}

.detail-content p {
    color: var(--charcoal);
    line-height: 1.9;
}

.detail-content h2,
.text-card h2,
.detail-side h2 {
    margin: 0 0 14px;
    color: var(--ocean-deep);
}

.text-card {
    margin-top: 22px;
    padding: 26px;
}

.detail-side {
    padding: 18px;
}

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

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

.side-list {
    display: grid;
    gap: 12px;
}

.side-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
}

.side-item img {
    width: 64px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.side-item strong {
    display: block;
    color: var(--charcoal);
    line-height: 1.35;
}

.side-item span {
    color: var(--text-gray);
    font-size: 0.86rem;
}

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

.site-footer {
    margin-top: 70px;
    color: #fff;
    background: var(--ocean-deep);
}

.footer-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 34px;
    display: grid;
    grid-template-columns: 1.1fr 0.8fr 1.1fr;
    gap: 32px;
}

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

.footer-brand p {
    max-width: 430px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--seafoam);
    font-size: 1.08rem;
}

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

.footer-links a {
    padding: 8px 11px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.09);
}

.footer-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: rgba(255, 255, 255, 0.62);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.92rem;
}

@media (max-width: 1060px) {
    .desktop-nav,
    .top-search {
        display: none;
    }

    .menu-toggle {
        display: grid;
        place-items: center;
    }

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

    .hero-card {
        max-width: 420px;
    }

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

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .nav-shell {
        height: 66px;
    }

    .brand-name {
        font-size: 1rem;
    }

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

    .hero-inner {
        padding: 52px 0 78px;
        gap: 28px;
    }

    .hero-card {
        max-width: 100%;
    }

    .section {
        padding: 40px 0;
    }

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

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

    .movie-info {
        padding: 12px;
    }

    .movie-info p {
        min-height: auto;
        font-size: 0.88rem;
    }

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

    .ranking-row {
        grid-template-columns: 64px 1fr;
    }

    .ranking-thumb img {
        width: 64px;
    }

    .ranking-score {
        grid-column: 2;
        justify-self: start;
    }

    .detail-content,
    .text-card {
        padding: 20px;
    }

    .player-cover button {
        width: 68px;
        height: 68px;
    }
}

@media (max-width: 480px) {
    .category-grid,
    .movie-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .mobile-links {
        grid-template-columns: 1fr;
    }
}
