:root {
    --asagi: #00A3AF;
    --asagi-light: #33B8C2;
    --asagi-dark: #008C97;
    --asagi-pale: #E6F7F8;
    --ink: #1f2937;
    --muted: #64748b;
    --line: #e5e7eb;
    --soft: #f8fafc;
    --shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #f7feff 0%, #ffffff 36%, #f8fafc 100%);
    line-height: 1.65;
}

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

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

button,
input {
    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.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

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

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

.site-logo span,
.footer-logo {
    font-size: 24px;
}

.site-logo::before,
.footer-logo::before {
    content: "";
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--asagi), var(--asagi-light));
    box-shadow: 0 12px 24px rgba(0, 163, 175, 0.32);
}

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

.site-nav a {
    padding: 10px 16px;
    color: #475569;
    border-radius: 999px;
    font-weight: 700;
    transition: 0.25s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--asagi), var(--asagi-light));
    box-shadow: 0 12px 24px rgba(0, 163, 175, 0.2);
}

.nav-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    width: 42px;
    height: 42px;
    color: var(--asagi-dark);
    background: var(--asagi-pale);
}

.hero-carousel {
    position: relative;
    height: 70vh;
    min-height: 540px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
    pointer-events: none;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 30%, rgba(51, 184, 194, 0.25), transparent 30%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.66) 48%, rgba(2, 6, 23, 0.28) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.74), rgba(2, 6, 23, 0.12));
}

.hero-content {
    position: relative;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.55fr);
    align-items: center;
    gap: 54px;
    color: #ffffff;
}

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

.hero-badge,
.page-hero span,
.section-heading span,
.panel-heading span {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 163, 175, 0.95);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 14px 0 14px;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 1.03;
    font-weight: 900;
    letter-spacing: -0.07em;
    text-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.hero-copy h2 {
    font-size: clamp(30px, 5vw, 56px);
}

.hero-copy p {
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
    max-width: 700px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-actions,
.quick-links,
.detail-meta,
.movie-meta,
.detail-tags,
.movie-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.primary-button,
.ghost-button,
.small-button,
.search-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    color: #ffffff;
    background: linear-gradient(135deg, var(--asagi), var(--asagi-light));
    box-shadow: 0 14px 30px rgba(0, 163, 175, 0.28);
    transition: 0.25s ease;
    cursor: pointer;
}

.primary-button:hover,
.small-button:hover,
.search-form button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--asagi-dark), var(--asagi));
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.hero-poster {
    justify-self: end;
    width: min(340px, 100%);
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
    transform: rotate(2deg);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    font-size: 34px;
    line-height: 1;
    transform: translateY(-50%);
    transition: 0.25s ease;
}

.hero-arrow:hover {
    background: rgba(0, 163, 175, 0.9);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    transition: 0.25s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--asagi-light);
}

.search-panel {
    position: relative;
    z-index: 8;
    margin-top: -44px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-form {
    display: grid;
    gap: 10px;
}

.search-form label,
.filter-bar label {
    font-weight: 900;
    color: #0f172a;
}

.search-form div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.search-form input,
.filter-bar input {
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
    transition: 0.25s ease;
}

.search-form input:focus,
.filter-bar input:focus {
    border-color: var(--asagi-light);
    box-shadow: 0 0 0 4px rgba(0, 163, 175, 0.12);
}

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

.quick-links a,
.movie-tags span,
.detail-tags span,
.detail-meta span {
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--asagi-dark);
    background: var(--asagi-pale);
    font-size: 13px;
    font-weight: 800;
}

.quick-links a:hover,
.movie-tags span:hover,
.detail-tags span:hover {
    color: #ffffff;
    background: var(--asagi);
}

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

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

.section-heading h2,
.panel-heading h2,
.page-hero h1,
.detail-title-block h1 {
    margin: 8px 0 0;
    color: #0f172a;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-link {
    color: var(--asagi-dark);
    font-weight: 900;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--asagi-pale);
}

.movie-card-featured .movie-cover {
    aspect-ratio: 16 / 10;
}

.movie-card-compact .movie-cover {
    aspect-ratio: 3 / 4;
}

.movie-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .movie-cover img,
.category-card:hover img,
.compact-card:hover img,
.ranking-cover:hover img {
    transform: scale(1.06);
}

.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0) 25%, rgba(2, 6, 23, 0.75) 100%);
    opacity: 0.86;
}

.cover-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 163, 175, 0.92);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0;
    transition: 0.25s ease;
}

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

.cover-badge,
.cover-year {
    position: absolute;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.cover-badge {
    left: 12px;
    top: 12px;
    background: var(--asagi);
}

.cover-year {
    right: 12px;
    bottom: 12px;
    background: rgba(15, 23, 42, 0.74);
}

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

.movie-title {
    display: -webkit-box;
    min-height: 48px;
    color: #0f172a;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: 0.25s ease;
}

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

.movie-card-body p {
    min-height: 46px;
    margin: 8px 0 12px;
    color: var(--muted);
    font-size: 14px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.movie-meta span + span::before {
    content: "·";
    margin-right: 8px;
    color: #cbd5e1;
}

.movie-tags {
    margin-top: 12px;
}

.movie-tags span {
    padding: 5px 9px;
    font-size: 12px;
}

.wide-feature {
    background: linear-gradient(135deg, var(--asagi-pale), #ffffff 54%, #fff7ed);
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
}

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

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

.category-card {
    position: relative;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    overflow: hidden;
    padding: 24px;
    border-radius: 24px;
    color: #ffffff;
    background: #0f172a;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.84));
}

.category-card strong,
.category-card em {
    position: relative;
    z-index: 1;
}

.category-card strong {
    font-size: 24px;
    font-weight: 900;
}

.category-card em {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-style: normal;
}

.ranking-panel,
.side-panel,
.detail-box,
.search-page,
.filter-bar {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.ranking-panel {
    position: sticky;
    top: 96px;
    padding: 24px;
}

.ranking-list {
    display: grid;
    gap: 10px;
}

.ranking-list a {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    background: #f8fafc;
    transition: 0.25s ease;
}

.ranking-list a:hover {
    color: var(--asagi-dark);
    background: var(--asagi-pale);
}

.ranking-list b {
    color: var(--asagi);
}

.ranking-list span {
    overflow: hidden;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-list em {
    color: #94a3b8;
    font-size: 12px;
    font-style: normal;
}

.page-hero {
    padding: 82px 0 70px;
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.24), transparent 32%),
        linear-gradient(135deg, #006d75, var(--asagi), var(--asagi-light));
}

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

.page-hero h1 {
    color: #ffffff;
    font-size: clamp(38px, 5vw, 64px);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.filter-bar {
    margin-bottom: 28px;
    padding: 20px;
    display: grid;
    gap: 10px;
}

.ranking-page-list {
    display: grid;
    gap: 16px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 110px 54px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.ranking-cover {
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 3 / 4;
}

.ranking-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.ranking-row b {
    color: var(--asagi);
    font-size: 26px;
}

.ranking-title {
    font-size: 20px;
    font-weight: 900;
}

.ranking-row p {
    margin: 8px 0;
    color: var(--muted);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    padding: 34px 0 70px;
}

.detail-breadcrumb {
    margin: 0 0 20px;
    color: #64748b;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #020617;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.22);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.74));
    transition: 0.25s ease;
}

.player-cover span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--asagi), var(--asagi-light));
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.32);
    font-size: 34px;
}

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

.detail-title-block {
    padding: 26px 0;
}

.detail-meta span {
    color: #0f766e;
    background: #ccfbf1;
}

.detail-box {
    margin-bottom: 20px;
    padding: 24px;
}

.detail-box h2,
.side-panel h2 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
}

.detail-box p {
    margin: 0 0 14px;
    color: #334155;
    text-align: justify;
}

.detail-tags span {
    cursor: default;
}

.prev-next {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.prev-next a {
    padding: 16px;
    border-radius: 18px;
    color: var(--asagi-dark);
    background: var(--asagi-pale);
    font-weight: 900;
}

.detail-sidebar {
    display: grid;
    align-content: start;
    gap: 20px;
}

.side-panel {
    padding: 22px;
}

.poster-panel img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 16px;
}

.primary-button.full {
    width: 100%;
}

.info-panel dl {
    margin: 0;
    display: grid;
    gap: 0;
}

.info-panel div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.info-panel dt {
    color: #64748b;
}

.info-panel dd {
    margin: 0;
    text-align: right;
    font-weight: 900;
}

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

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

.compact-card {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: #f8fafc;
    transition: 0.25s ease;
}

.compact-card:hover {
    color: var(--asagi-dark);
    background: var(--asagi-pale);
}

.compact-card img {
    width: 74px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.35s ease;
}

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

.compact-card strong {
    font-weight: 900;
    line-height: 1.35;
}

.compact-card em {
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
    font-style: normal;
}

.search-page {
    padding: 26px;
}

.search-form-large {
    margin-bottom: 22px;
}

.search-result-title {
    margin: 0 0 20px;
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
}

.site-footer {
    padding: 50px 0;
    color: #cbd5e1;
    background: #0f172a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 220px 220px;
    gap: 34px;
}

.site-footer p {
    max-width: 560px;
    margin: 14px 0 0;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 18px;
}

.site-footer a {
    display: block;
    margin: 8px 0;
}

.site-footer a:hover {
    color: var(--asagi-light);
}

.footer-logo {
    color: #ffffff;
}

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

@media (max-width: 1080px) {
    .movie-grid-featured,
    .movie-grid-compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .ranking-panel {
        position: static;
    }
}

@media (max-width: 820px) {
    .site-header-inner {
        min-height: 64px;
    }

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

    .site-nav {
        position: absolute;
        top: 64px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 20px;
        background: #ffffff;
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .hero-carousel {
        min-height: 660px;
        height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 90px 0 92px;
    }

    .hero-poster {
        justify-self: start;
        width: 190px;
        border-radius: 20px;
    }

    .hero-arrow {
        display: none;
    }

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

    .movie-grid-featured,
    .movie-grid-compact,
    .movie-grid-four,
    .category-grid,
    .category-grid-large {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .ranking-row b,
    .ranking-row .small-button {
        display: none;
    }

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

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

    .site-logo span,
    .footer-logo {
        font-size: 20px;
    }

    .hero-copy p {
        font-size: 16px;
    }

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

    .section-heading {
        display: block;
    }

    .section-link {
        display: inline-flex;
        margin-top: 12px;
    }

    .movie-grid-featured,
    .movie-grid-compact,
    .movie-grid-four,
    .category-grid,
    .category-grid-large {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .movie-card-body {
        padding: 12px;
    }

    .movie-title {
        font-size: 15px;
        min-height: 42px;
    }

    .movie-card-body p,
    .movie-tags,
    .movie-meta span:nth-child(2) {
        display: none;
    }

    .page-hero {
        padding: 54px 0 48px;
    }

    .detail-layout {
        padding-top: 22px;
    }

    .detail-box,
    .side-panel,
    .search-page {
        padding: 18px;
        border-radius: 18px;
    }

    .prev-next {
        grid-template-columns: 1fr;
    }
}