:root {
    --ocean-deep: #0a4a6b;
    --ocean-blue: #1a7fa0;
    --ocean-light: #4fb3d4;
    --seafoam: #88d4ab;
    --coral: #ff6b6b;
    --coral-light: #ff9999;
    --sunset: #ff9f43;
    --sand-light: #f5ebe0;
    --sand-warm: #ead6c2;
    --text-dark: #173042;
    --text-gray: #627482;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(10, 74, 107, 0.18);
    --shadow-soft: 0 4px 20px rgba(10, 74, 107, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-dark);
    background: linear-gradient(180deg, #fff 0%, var(--sand-light) 52%, #fff 100%);
}

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-blue) 54%, var(--ocean-light) 100%);
    box-shadow: var(--shadow);
}

.nav-shell,
.footer-shell,
.content-section,
.quick-entry,
.player-page,
.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 20px;
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: var(--ocean-deep);
    background: var(--seafoam);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-weight: 650;
}

.nav-link {
    opacity: 0.92;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--seafoam);
    opacity: 1;
}

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

.icon-button,
.nav-cta,
.header-search button,
.primary-button,
.ghost-button,
.back-top,
.large-search button {
    border: 0;
    cursor: pointer;
    border-radius: 12px;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.icon-button {
    width: 42px;
    height: 42px;
    color: var(--white);
    background: rgba(10, 74, 107, 0.45);
}

.icon-button:hover,
.nav-cta:hover,
.header-search button:hover,
.primary-button:hover,
.ghost-button:hover,
.back-top:hover,
.large-search button:hover {
    transform: translateY(-2px);
}

.nav-cta,
.primary-button,
.large-search button,
.header-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    color: var(--white);
    background: var(--coral);
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.28);
}

.nav-cta:hover,
.primary-button:hover,
.large-search button:hover,
.header-search button:hover {
    background: var(--coral-light);
}

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

.header-search.is-open {
    display: flex;
}

.header-search input,
.large-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    border-radius: 14px;
    padding: 14px 16px;
    color: var(--text-dark);
    box-shadow: inset 0 0 0 2px rgba(136, 212, 171, 0.2);
}

.mobile-only,
.mobile-nav {
    display: none;
}

.mobile-nav {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

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

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(10, 74, 107, 0.34);
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: var(--ocean-deep);
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.48) 45%, rgba(0, 0, 0, 0.08) 100%), var(--hero-image), linear-gradient(135deg, var(--ocean-deep), var(--ocean-blue));
    background-size: cover;
    background-position: center;
    transition: opacity 0.7s ease;
}

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

.hero-content {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    max-width: 720px;
    color: var(--white);
    transform: translateY(12px);
    animation: fadeIn 0.7s ease forwards;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--seafoam);
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.player-head h1 {
    margin: 0;
    font-size: clamp(2.2rem, 6vw, 4.6rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero-summary,
.page-hero p,
.player-head p {
    max-width: 760px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
    line-height: 1.8;
}

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

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

.hero-tags span,
.detail-tags a,
.tag-row span,
.movie-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-tags span,
.detail-tags a {
    color: var(--ocean-deep);
    background: var(--seafoam);
}

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

.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.28);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    font-size: 2.2rem;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: var(--white);
}

.quick-entry {
    margin-top: -38px;
    position: relative;
    z-index: 8;
}

.quick-grid,
.category-grid {
    display: grid;
    gap: 18px;
}

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

.quick-card,
.category-chip,
.feature-panel,
.mini-rank,
.movie-card,
.detail-card-inner {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.quick-card {
    min-height: 132px;
    padding: 24px;
    border: 1px solid rgba(79, 179, 212, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.quick-card strong {
    display: block;
    margin-bottom: 10px;
    color: var(--ocean-deep);
    font-size: 1.35rem;
}

.quick-card span,
.section-heading p,
.movie-info p,
.category-chip span,
.article-section p,
.footer-brand p {
    color: var(--text-gray);
    line-height: 1.72;
}

.content-section {
    padding: 64px 0 0;
}

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

.section-heading h2,
.article-section h2,
.feature-panel h2,
.mini-rank h2 {
    margin: 0 0 8px;
    color: var(--ocean-deep);
    font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.section-heading p {
    margin: 0;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(10, 74, 107, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background-image: linear-gradient(180deg, rgba(10, 74, 107, 0.08), rgba(10, 74, 107, 0.86)), var(--poster-image), linear-gradient(135deg, var(--ocean-blue), var(--seafoam));
    background-size: cover;
    background-position: center;
}

.movie-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.16), transparent 38%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.poster-type,
.poster-year,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 800;
}

.poster-type {
    left: 10px;
    top: 10px;
    background: var(--coral);
}

.poster-year {
    right: 10px;
    bottom: 10px;
    background: rgba(10, 74, 107, 0.78);
}

.rank-badge {
    left: 10px;
    bottom: 10px;
    display: grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    background: var(--sunset);
}

.movie-info {
    padding: 14px;
}

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

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

.movie-info p {
    display: -webkit-box;
    margin: 0 0 12px;
    min-height: 3.4em;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 0.9rem;
}

.movie-meta {
    margin-bottom: 10px;
}

.movie-meta span {
    color: var(--ocean-deep);
    background: var(--sand-light);
}

.tag-row span {
    color: var(--ocean-blue);
    background: rgba(79, 179, 212, 0.16);
}

.split-section {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 24px;
    padding-bottom: 70px;
}

.feature-panel,
.mini-rank {
    padding: 30px;
}

.feature-panel {
    color: var(--white);
    background: linear-gradient(135deg, var(--sunset) 0%, var(--coral) 100%);
}

.feature-panel h2,
.feature-panel p {
    color: var(--white);
}

.mini-rank ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mini-rank li + li {
    border-top: 1px solid rgba(10, 74, 107, 0.08);
}

.mini-rank a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    font-weight: 700;
}

.mini-rank span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    color: var(--white);
    background: var(--ocean-blue);
}

.page-hero {
    margin-top: 34px;
    border-radius: 28px;
    padding: 54px;
    color: var(--white);
    background: linear-gradient(135deg, rgba(10, 74, 107, 0.96), rgba(26, 127, 160, 0.92)), linear-gradient(135deg, var(--ocean-deep), var(--ocean-blue));
    box-shadow: var(--shadow);
}

.slim-hero h1 {
    max-width: 860px;
    font-size: clamp(2rem, 5vw, 3.6rem);
}

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

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

.category-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 16px 18px;
    color: var(--ocean-deep);
    font-weight: 800;
    border: 1px solid rgba(10, 74, 107, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-chip.large {
    display: block;
    min-height: 150px;
}

.category-chip.large strong {
    display: block;
    margin-bottom: 12px;
    font-size: 1.6rem;
}

.category-chip span {
    font-weight: 650;
    font-size: 0.9rem;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 34px;
}

.pagination a,
.pagination strong,
.pagination span {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.pagination strong {
    color: var(--white);
    background: var(--ocean-blue);
}

.player-page {
    padding: 44px 0 0;
}

.player-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding: 34px;
    border-radius: 28px;
    color: var(--white);
    background: linear-gradient(135deg, var(--ocean-deep), var(--ocean-blue));
    box-shadow: var(--shadow);
}

.player-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
}

.video-panel {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #05080c;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.video-panel video {
    display: block;
    width: 100%;
    height: 100%;
    background: #05080c;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    color: var(--white);
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72)), var(--poster-image), linear-gradient(135deg, var(--ocean-blue), #000);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-panel.is-playing .player-cover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 18px 40px rgba(255, 107, 107, 0.36);
    font-size: 2rem;
}

.detail-card {
    min-height: 420px;
    border-radius: 24px;
    padding: 16px;
    background-image: linear-gradient(180deg, rgba(10, 74, 107, 0.15), rgba(10, 74, 107, 0.85)), var(--poster-image), linear-gradient(135deg, var(--ocean-blue), var(--seafoam));
    background-size: cover;
    background-position: center;
}

.detail-card-inner {
    height: 100%;
    padding: 22px;
    color: var(--white);
    background: rgba(10, 74, 107, 0.72);
    backdrop-filter: blur(12px);
}

.detail-card h2 {
    margin: 0 0 18px;
}

.detail-card dl,
.detail-card dd {
    margin: 0;
}

.detail-card div {
    margin-bottom: 14px;
}

.detail-card dt {
    color: var(--seafoam);
    font-size: 0.85rem;
    font-weight: 800;
}

.article-section {
    font-size: 1.04rem;
}

.article-section p {
    margin: 0 0 28px;
    color: var(--text-dark);
    line-height: 2;
}

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

.more-tags a {
    background: rgba(26, 127, 160, 0.12);
}

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

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

.footer-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 1fr auto;
    gap: 28px;
    align-items: center;
    padding: 38px 0;
}

.brand-footer {
    margin-bottom: 12px;
}

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

.footer-links a {
    color: var(--sand-light);
}

.back-top {
    padding: 12px 16px;
    color: var(--white);
    background: var(--ocean-blue);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .mobile-only {
        display: inline-grid;
        place-items: center;
    }

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

    .player-layout,
    .split-section,
    .footer-shell {
        grid-template-columns: 1fr;
    }

    .detail-card {
        min-height: 320px;
    }
}

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

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

    .nav-cta {
        display: none;
    }

    .hero {
        height: 540px;
    }

    .hero-content {
        padding-right: 24px;
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
    }

    .hero-prev {
        left: 10px;
    }

    .hero-next {
        right: 10px;
    }

    .quick-entry {
        margin-top: 18px;
    }

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

    .content-section {
        padding-top: 42px;
    }

    .section-heading,
    .player-head {
        display: block;
    }

    .section-link,
    .player-head .ghost-button {
        margin-top: 16px;
    }

    .page-hero,
    .player-head {
        padding: 30px 22px;
        border-radius: 22px;
    }

    .header-search,
    .large-search {
        flex-direction: column;
    }

    .footer-shell {
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

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

    .movie-card {
        display: grid;
        grid-template-columns: 118px 1fr;
    }

    .movie-poster {
        height: 100%;
        min-height: 176px;
    }
}
