:root {
    --asagi: #00A3AF;
    --asagi-light: #33B8C2;
    --asagi-dark: #008C97;
    --asagi-pale: #E6F7F8;
    --ink: #102A2F;
    --muted: #63747A;
    --soft: #F5FBFC;
    --line: #D9EEF1;
    --card: #FFFFFF;
    --shadow: 0 18px 50px rgba(0, 78, 86, 0.13);
    --shadow-soft: 0 10px 28px rgba(0, 78, 86, 0.09);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #F7FEFF 0%, #FFFFFF 48%, #F6FBFC 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(0, 163, 175, 0.15);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--asagi-dark);
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--asagi), var(--asagi-dark));
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 163, 175, 0.24);
}

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

.nav-link {
    padding: 10px 14px;
    color: #38555C;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 650;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--asagi-dark);
    background: var(--asagi-pale);
    transform: translateY(-1px);
}

.header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    padding: 4px;
    gap: 4px;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 78, 86, 0.06);
}

.header-search input {
    width: 210px;
    border: 0;
    outline: 0;
    padding: 9px 10px 9px 16px;
    background: transparent;
    color: var(--ink);
}

.header-search button,
.primary-button,
.secondary-button,
.search-panel button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 750;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.header-search button,
.primary-button,
.search-panel button {
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--asagi), var(--asagi-dark));
    box-shadow: 0 12px 30px rgba(0, 163, 175, 0.22);
}

.header-search button {
    padding: 9px 16px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
}

.secondary-button {
    color: var(--asagi-dark);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.header-search button:hover,
.primary-button:hover,
.secondary-button:hover,
.search-panel button:hover {
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 1px solid var(--line);
    background: #FFFFFF;
    border-radius: 14px;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--asagi-dark);
    border-radius: 2px;
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    color: #FFFFFF;
    background: #062E33;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.05);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 76% 28%, rgba(0, 163, 175, 0.45), transparent 30%),
        linear-gradient(90deg, rgba(4, 31, 35, 0.96) 0%, rgba(4, 31, 35, 0.72) 45%, rgba(4, 31, 35, 0.2) 100%),
        linear-gradient(0deg, rgba(4, 31, 35, 0.92), transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 130px 0 110px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    color: #DDFEFF;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(14px);
}

.hero h1 {
    margin: 0;
    font-size: clamp(40px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 630px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

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

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

.hero-tags span,
.detail-tags span,
.card-tags span {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: #E8FFFF;
    background: rgba(255, 255, 255, 0.14);
}

.detail-tags span,
.card-tags span {
    color: var(--asagi-dark);
    background: var(--asagi-pale);
}

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

.hero-poster-card {
    position: absolute;
    right: max(32px, calc((100vw - 1180px) / 2));
    bottom: 82px;
    z-index: 3;
    width: 260px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(14px);
}

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

.hero-poster-card span {
    display: block;
    padding: 12px 4px 2px;
    font-weight: 800;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
}

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

.hero-dot.active {
    background: #FFFFFF;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #FFFFFF;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 999px;
    transform: translateY(-50%);
    backdrop-filter: blur(14px);
}

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

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

.section {
    padding: 72px 0;
}

.section.compact {
    padding: 44px 0;
}

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

.section-heading h2,
.page-title h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-heading p,
.page-title p,
.category-copy em,
.footer-grid p {
    margin: 8px 0 0;
    color: var(--muted);
}

.view-more {
    color: var(--asagi-dark);
    font-weight: 800;
}

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

.movie-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    background: var(--card);
    border: 1px solid rgba(0, 163, 175, 0.11);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover,
.category-tile:hover,
.rank-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 163, 175, 0.34);
    box-shadow: var(--shadow);
}

.poster-frame {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--asagi-pale), #FFFFFF);
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.38s ease;
}

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

.poster-gradient {
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent);
}

.poster-badge,
.poster-score {
    position: absolute;
    top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.poster-badge {
    left: 12px;
    color: var(--asagi-dark);
    background: rgba(255, 255, 255, 0.9);
}

.poster-score {
    right: 12px;
    color: #FFFFFF;
    background: rgba(0, 0, 0, 0.58);
}

.card-content {
    display: flex;
    min-height: 156px;
    flex-direction: column;
    gap: 9px;
    padding: 16px;
}

.card-content strong {
    display: -webkit-box;
    overflow: hidden;
    min-height: 48px;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-summary {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-meta {
    margin-top: auto;
    color: #789098;
    font-size: 13px;
    font-weight: 700;
}

.compact-card {
    flex-direction: row;
}

.compact-card .poster-frame {
    width: 92px;
    flex: 0 0 92px;
    aspect-ratio: 3 / 4;
}

.compact-card .card-content {
    min-height: auto;
}

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

.category-tile {
    display: grid;
    grid-template-columns: 116px 1fr;
    gap: 18px;
    min-height: 176px;
    padding: 18px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 163, 175, 0.13);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.category-posters {
    position: relative;
    min-height: 140px;
}

.category-posters img {
    position: absolute;
    width: 82px;
    height: 112px;
    object-fit: cover;
    border: 4px solid #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(15, 75, 82, 0.15);
}

.category-posters img:nth-child(1) {
    left: 0;
    top: 8px;
    z-index: 3;
}

.category-posters img:nth-child(2) {
    left: 26px;
    top: 0;
    z-index: 2;
}

.category-posters img:nth-child(3) {
    left: 48px;
    top: 22px;
    z-index: 1;
}

.category-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-copy strong {
    color: var(--ink);
    font-size: 22px;
}

.category-copy em {
    display: -webkit-box;
    overflow: hidden;
    font-style: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.category-copy span {
    display: inline-flex;
    width: fit-content;
    margin-top: 14px;
    padding: 7px 12px;
    color: var(--asagi-dark);
    background: var(--asagi-pale);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.rank-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 74px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 163, 175, 0.12);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 78, 86, 0.07);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--asagi), var(--asagi-dark));
    border-radius: 14px;
    font-weight: 900;
}

.rank-item img {
    width: 74px;
    height: 98px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-copy {
    display: grid;
    gap: 5px;
}

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

.rank-copy em {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    font-style: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rank-copy span {
    color: #7D969D;
    font-size: 13px;
    font-weight: 700;
}

.aside-panel,
.search-panel,
.page-title,
.detail-card,
.watch-card {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(0, 163, 175, 0.12);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.aside-panel {
    padding: 24px;
}

.aside-panel h3 {
    margin: 0 0 16px;
    font-size: 24px;
}

.aside-links {
    display: grid;
    gap: 10px;
}

.aside-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    color: var(--asagi-dark);
    background: var(--asagi-pale);
    border-radius: 14px;
    font-weight: 800;
}

.page-title {
    position: relative;
    overflow: hidden;
    margin-top: 34px;
    padding: 42px;
}

.page-title::before {
    content: "";
    position: absolute;
    right: -80px;
    top: -90px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(0, 163, 175, 0.22), transparent 68%);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #6A838A;
    font-size: 14px;
    font-weight: 700;
}

.breadcrumb a {
    color: var(--asagi-dark);
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin: 30px 0;
    padding: 14px;
}

.search-panel input {
    min-height: 50px;
    border: 1px solid var(--line);
    outline: 0;
    padding: 0 18px;
    background: #FFFFFF;
    border-radius: 999px;
}

.search-panel button {
    padding: 0 24px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -10px 0 28px;
}

.filter-chips a {
    padding: 8px 14px;
    color: var(--asagi-dark);
    background: var(--asagi-pale);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.detail-top {
    padding: 34px 0 76px;
    background:
        radial-gradient(circle at 80% 15%, rgba(0, 163, 175, 0.24), transparent 30%),
        linear-gradient(180deg, #F7FEFF, #FFFFFF);
}

.watch-card {
    overflow: hidden;
    padding: 18px;
}

.video-player {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #061A1D;
    border-radius: 22px;
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #061A1D;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #FFFFFF;
    background: radial-gradient(circle, rgba(0, 163, 175, 0.35), rgba(0, 0, 0, 0.45));
}

.video-player.is-playing .play-overlay {
    display: none;
}

.play-icon {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    color: var(--asagi-dark);
    background: #FFFFFF;
    border-radius: 999px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
    font-size: 34px;
}

.play-overlay strong {
    font-size: 20px;
}

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

.detail-poster {
    overflow: hidden;
    background: linear-gradient(135deg, var(--asagi-pale), #FFFFFF);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

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

.detail-card {
    padding: 28px;
}

.detail-card h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.06;
    letter-spacing: -0.05em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0;
    color: #587078;
    font-weight: 750;
}

.detail-section {
    margin-top: 28px;
}

.detail-section h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.detail-section p {
    margin: 0;
    color: #425B62;
    line-height: 1.85;
}

.site-footer {
    margin-top: 72px;
    color: #D8F9FC;
    background: linear-gradient(135deg, #063238, #08282D);
}

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

.footer-brand {
    color: #FFFFFF;
    font-size: 22px;
}

.footer-grid p {
    max-width: 660px;
    color: rgba(255, 255, 255, 0.76);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-content: start;
    justify-content: end;
}

.footer-links a {
    padding: 8px 12px;
    color: #E8FFFF;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-weight: 700;
}

.footer-bottom {
    padding: 18px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.66);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-movie-card][hidden] {
    display: none;
}

@media (max-width: 1040px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        width: 100%;
        order: 5;
        padding-top: 4px;
    }

    .main-nav.is-open {
        display: flex;
        flex-wrap: wrap;
    }

    .header-search {
        width: 100%;
        order: 6;
        margin-left: 0;
    }

    .header-search input {
        width: 100%;
        flex: 1;
    }

    .hero-poster-card {
        display: none;
    }

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

    .category-grid,
    .rank-layout,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 760px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .hero,
    .hero-slider,
    .hero-slide {
        min-height: 590px;
    }

    .hero-content {
        padding: 96px 0 90px;
    }

    .hero-arrow {
        display: none;
    }

    .section {
        padding: 48px 0;
    }

    .section-heading {
        display: block;
    }

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

    .card-content {
        min-height: 142px;
        padding: 13px;
    }

    .card-content strong {
        font-size: 16px;
    }

    .category-tile {
        grid-template-columns: 94px 1fr;
        gap: 12px;
        padding: 14px;
    }

    .category-posters img {
        width: 66px;
        height: 92px;
    }

    .rank-item {
        grid-template-columns: 42px 62px 1fr;
        gap: 10px;
    }

    .rank-number {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        font-size: 13px;
    }

    .rank-item img {
        width: 62px;
        height: 84px;
    }

    .page-title {
        padding: 28px;
    }

    .search-panel {
        grid-template-columns: 1fr;
    }

    .detail-card {
        padding: 22px;
    }
}

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

    .compact-card {
        flex-direction: column;
    }

    .compact-card .poster-frame {
        width: 100%;
    }
}
