*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --color-ocean-dark: #0a2540;
    --color-ocean-primary: #1a4d7a;
    --color-ocean-light: #2e6ba8;
    --color-sea-foam: #4fb3bf;
    --color-sea-foam-dark: #3a9aa5;
    --color-sand: #f4e8d0;
    --color-coral: #ff6b6b;
    --color-sunset: #ff9f43;
    --color-sky: #74b9ff;
    --color-panel: rgba(255, 255, 255, 0.1);
    --color-panel-strong: rgba(255, 255, 255, 0.16);
    --shadow-strong: 0 24px 60px rgba(0, 0, 0, 0.35);
    --radius-large: 28px;
    --radius-medium: 18px;
    --radius-small: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background: linear-gradient(180deg, var(--color-ocean-dark), var(--color-ocean-primary) 52%, var(--color-ocean-dark));
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 8%, rgba(79, 179, 191, 0.24), transparent 30%),
        radial-gradient(circle at 90% 18%, rgba(116, 185, 255, 0.2), transparent 34%),
        radial-gradient(circle at 50% 100%, rgba(255, 159, 67, 0.12), transparent 36%);
    z-index: -1;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 37, 64, 0.76);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-sea-foam), var(--color-sky));
    box-shadow: 0 10px 28px rgba(79, 179, 191, 0.36);
    font-size: 14px;
}

.brand-name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link,
.mobile-link {
    position: relative;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
    transition: color 0.24s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
    color: var(--color-sea-foam);
}

.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 2px;
    border-radius: 999px;
    background: var(--color-sea-foam);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: currentColor;
}

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

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

.mobile-link {
    padding: 12px 0;
}

.hero-section {
    min-height: 76vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image: linear-gradient(90deg, rgba(10, 37, 64, 0.94), rgba(26, 77, 122, 0.72), rgba(10, 37, 64, 0.48)), var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 37, 64, 0.12), rgba(10, 37, 64, 0.88)),
        radial-gradient(circle at 72% 38%, rgba(79, 179, 191, 0.24), transparent 28%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 380px;
    gap: 44px;
    align-items: center;
    padding: 72px 0;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(79, 179, 191, 0.18);
    color: #bdf7ff;
    border: 1px solid rgba(79, 179, 191, 0.28);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 880px;
    margin: 22px 0 22px;
    font-size: clamp(40px, 6.4vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 32px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

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

.primary-button,
.ghost-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.primary-button {
    color: #ffffff;
    background: var(--color-sea-foam);
    box-shadow: 0 14px 34px rgba(79, 179, 191, 0.34);
}

.primary-button:hover {
    transform: translateY(-2px) scale(1.02);
    background: var(--color-sea-foam-dark);
}

.ghost-button,
.section-link {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.ghost-button:hover,
.section-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.28);
}

.hero-feature {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-strong);
}

.hero-feature img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-feature:hover img {
    transform: scale(1.06);
}

.hero-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.88));
}

.feature-label,
.hero-feature strong,
.hero-feature em {
    position: absolute;
    z-index: 1;
    left: 24px;
    right: 24px;
}

.feature-label {
    top: 24px;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--color-sunset);
    font-size: 12px;
    font-weight: 800;
}

.hero-feature strong {
    bottom: 88px;
    font-size: 28px;
    line-height: 1.22;
}

.hero-feature em {
    bottom: 28px;
    color: rgba(255, 255, 255, 0.76);
    font-style: normal;
    line-height: 1.7;
}

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

.alt-block {
    width: 100%;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

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

.section-heading h2 {
    margin: 12px 0 0;
    font-size: clamp(28px, 3.5vw, 44px);
    line-height: 1.18;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-medium);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.66));
}

.poster-play {
    position: absolute;
    inset: 50% auto auto 50%;
    z-index: 2;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0.86);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
    position: absolute;
    z-index: 3;
    top: 12px;
    left: 12px;
    min-width: 38px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: var(--color-sunset);
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.card-body {
    padding: 18px;
}

.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-tags span,
.detail-tags span {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    color: #d9fbff;
    background: rgba(79, 179, 191, 0.14);
    border: 1px solid rgba(79, 179, 191, 0.22);
    font-size: 12px;
    line-height: 1;
}

.card-body h2 {
    margin: 14px 0 8px;
    font-size: 19px;
    line-height: 1.3;
}

.card-body h2 a:hover {
    color: var(--color-sea-foam);
}

.card-body p {
    min-height: 58px;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.65;
    font-size: 14px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

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

.category-tile,
.category-overview-card a {
    position: relative;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 22px;
    border-radius: var(--radius-medium);
}

.category-tile img,
.category-overview-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform 0.5s ease;
}

.category-tile::after,
.category-overview-card a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(10, 37, 64, 0.15), rgba(10, 37, 64, 0.86));
}

.category-tile:hover img,
.category-overview-card:hover img {
    transform: scale(1.08);
}

.category-tile span,
.category-overview-card span {
    font-size: 24px;
    font-weight: 900;
}

.category-tile p,
.category-overview-card p {
    margin: 8px 0 14px;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.7;
}

.category-tile em,
.category-overview-card strong {
    width: fit-content;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-style: normal;
    font-size: 13px;
}

.search-panel {
    margin-bottom: 26px;
    padding: 14px;
    border-radius: 18px;
}

.search-panel input {
    width: 100%;
    height: 54px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    outline: 0;
    background: rgba(10, 37, 64, 0.72);
    color: #ffffff;
}

.search-panel input:focus {
    border-color: var(--color-sea-foam);
    box-shadow: 0 0 0 4px rgba(79, 179, 191, 0.14);
}

.narrow-search {
    width: min(680px, 100%);
    margin: 24px auto 0;
}

.ranking-list {
    overflow: hidden;
    border-radius: var(--radius-medium);
}

.rank-row {
    display: grid;
    grid-template-columns: 64px 72px minmax(0, 1fr) 84px;
    gap: 16px;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.22s ease;
}

.rank-row:last-child {
    border-bottom: 0;
}

.rank-row:hover {
    background: rgba(255, 255, 255, 0.08);
}

.rank-number {
    color: var(--color-sunset);
    font-weight: 900;
    font-size: 22px;
}

.rank-row img {
    width: 72px;
    height: 96px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-info {
    display: grid;
    gap: 6px;
}

.rank-info strong {
    font-size: 17px;
}

.rank-info em {
    color: rgba(255, 255, 255, 0.58);
    font-style: normal;
    line-height: 1.5;
}

.rank-go {
    justify-self: end;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(79, 179, 191, 0.16);
    color: #d8fbff;
    font-size: 13px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
}

.compact-hero {
    min-height: 360px;
    display: grid;
    place-items: center;
    text-align: center;
    background:
        radial-gradient(circle at 18% 20%, rgba(79, 179, 191, 0.26), transparent 28%),
        radial-gradient(circle at 84% 30%, rgba(116, 185, 255, 0.2), transparent 32%);
}

.page-hero-inner {
    width: min(920px, calc(100% - 32px));
    padding: 68px 0;
}

.page-hero h1 {
    margin: 18px 0 16px;
    font-size: clamp(36px, 5.4vw, 58px);
    line-height: 1.1;
}

.page-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.8;
}

.detail-hero {
    min-height: 660px;
    background-image: linear-gradient(90deg, rgba(10, 37, 64, 0.96), rgba(26, 77, 122, 0.76), rgba(10, 37, 64, 0.58)), var(--hero-image);
    background-size: cover;
    background-position: center;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 37, 64, 0.12), rgba(10, 37, 64, 0.92));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 72px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: var(--color-sea-foam);
}

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

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-strong);
}

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

.detail-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.08;
}

.detail-copy p {
    max-width: 820px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 20px;
    line-height: 1.8;
}

.detail-tags {
    margin-bottom: 28px;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-large);
    background: #000000;
    box-shadow: var(--shadow-strong);
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.44));
    color: #ffffff;
    z-index: 2;
}

.player-overlay span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    padding-left: 6px;
    border-radius: 999px;
    background: rgba(79, 179, 191, 0.9);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.36);
    font-size: 34px;
}

.player-overlay.is-hidden {
    display: none;
    pointer-events: none;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
}

.story-card,
.meta-card {
    padding: 28px;
    border-radius: var(--radius-medium);
}

.story-card h2,
.meta-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.story-card h2:not(:first-child) {
    margin-top: 28px;
}

.story-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.9;
    font-size: 16px;
}

.meta-card ul {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.meta-card li {
    display: grid;
    gap: 4px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-card li:last-child {
    border-bottom: 0;
}

.meta-card span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.meta-card strong {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.5;
}

.compact-card {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
}

.compact-card img {
    width: 68px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
}

.compact-card strong,
.compact-card em {
    display: block;
}

.compact-card em {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.56);
    font-style: normal;
    font-size: 13px;
}

.site-footer {
    margin-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 37, 64, 0.82);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
    gap: 38px;
    align-items: start;
}

.footer-brand p {
    max-width: 520px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.64);
    line-height: 1.8;
}

.footer-links h2 {
    margin: 0 0 18px;
    font-size: 18px;
}

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

.footer-grid a {
    color: rgba(255, 255, 255, 0.64);
}

.footer-grid a:hover {
    color: var(--color-sea-foam);
}

.footer-meta {
    display: grid;
    gap: 10px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 13px;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-sea-foam), var(--color-sky));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shadow {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

[data-card].is-filtered {
    display: none;
}

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

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

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-feature {
        width: min(420px, 100%);
    }

    .detail-info-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }
}

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

    .menu-button {
        display: block;
    }

    .header-inner {
        height: 64px;
    }

    .brand-name {
        font-size: 20px;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-content {
        padding: 54px 0;
    }

    .hero-copy h1 {
        font-size: 38px;
    }

    .hero-feature,
    .hero-feature img {
        min-height: 430px;
    }

    .section-block {
        padding: 52px 0;
    }

    .section-heading {
        display: grid;
        align-items: start;
    }

    .featured-grid,
    .movie-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

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

    .detail-poster {
        width: min(300px, 100%);
    }

    .detail-copy p {
        font-size: 17px;
    }

    .rank-row {
        grid-template-columns: 46px 60px minmax(0, 1fr);
    }

    .rank-row img {
        width: 60px;
        height: 80px;
    }

    .rank-go {
        display: none;
    }
}

@media (max-width: 560px) {
    .header-inner,
    .mobile-nav,
    .section-block,
    .hero-content,
    .detail-hero-inner,
    .footer-inner {
        width: min(100% - 24px, 1180px);
    }

    .hero-copy h1,
    .detail-copy h1,
    .page-hero h1 {
        font-size: 32px;
    }

    .hero-actions {
        display: grid;
    }

    .featured-grid,
    .movie-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .card-body p {
        min-height: auto;
    }

    .category-tile,
    .category-overview-card a {
        min-height: 210px;
    }

    .story-card,
    .meta-card {
        padding: 22px;
    }

    .player-overlay span {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}
