
:root {
    --site-bg: #fffaf0;
    --site-bg-soft: #f7efe2;
    --site-card: #ffffff;
    --site-text: #1f2933;
    --site-muted: #697586;
    --site-line: #eadfcf;
    --site-tea: #0f766e;
    --site-tea-dark: #115e59;
    --site-gold: #f5c15d;
    --site-shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--site-text);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 32%, #fffaf0 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img {
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(234, 223, 207, 0.78);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.site-header__inner {
    max-width: 1180px;
    margin: 0 auto;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #253331;
    letter-spacing: 0.01em;
}

.site-logo__mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--site-tea), #34d399);
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.24);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #43504c;
    font-weight: 650;
    font-size: 15px;
}

.site-nav a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
    color: var(--site-tea);
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    border: 0;
    background: transparent;
    font-size: 26px;
    color: #1f2933;
}

.main-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 54px 20px;
}

.hero {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 12%, rgba(20, 184, 166, 0.34), transparent 32%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.54) 47%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    min-height: 72vh;
    margin: 0 auto;
    padding: 96px 20px 76px;
    display: flex;
    align-items: flex-end;
}

.hero-panel {
    max-width: 720px;
    color: white;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6ee7d8;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 18px 0 18px;
    font-size: clamp(38px, 7vw, 74px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero p {
    margin: 0 0 24px;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.76;
}

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

.hero-tags span,
.movie-card__tags span,
.detail-tags span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: inherit;
    font-size: 13px;
    backdrop-filter: blur(12px);
}

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

.button-primary,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button-primary {
    color: white;
    background: linear-gradient(135deg, var(--site-tea), #14b8a6);
    box-shadow: 0 16px 34px rgba(20, 184, 166, 0.24);
}

.button-secondary {
    color: white;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
}

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    color: white;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
    font-size: 26px;
}

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

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

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

.hero-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
}

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

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

.section-head h2,
.page-title h1 {
    margin: 0;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #1f2a2a;
}

.section-head p,
.page-title p {
    margin: 8px 0 0;
    color: var(--site-muted);
    line-height: 1.8;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--site-card);
    box-shadow: var(--site-shadow);
    border: 1px solid rgba(234, 223, 207, 0.9);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(17, 24, 39, 0.18);
}

.movie-card__cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #d4c3a5;
}

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

.movie-card:hover .movie-card__cover img {
    transform: scale(1.06);
}

.movie-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: white;
    background: rgba(0, 0, 0, 0.56);
    font-size: 12px;
    font-weight: 800;
}

.movie-card__play {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    color: white;
    background: rgba(15, 118, 110, 0.88);
    font-size: 13px;
    font-weight: 800;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card:hover .movie-card__play {
    opacity: 1;
    transform: translateY(0);
}

.movie-card__body {
    padding: 18px;
}

.movie-card__meta {
    display: flex;
    gap: 8px;
    color: var(--site-tea);
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 8px 0;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 850;
}

.movie-card h3 a:hover {
    color: var(--site-tea);
}

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

.movie-card__tags span {
    background: #f3eadb;
    color: #65736f;
}

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

.category-tile {
    padding: 22px;
    min-height: 148px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 24px;
    color: white;
    background: linear-gradient(135deg, #0f766e, #14b8a6 55%, #f5c15d);
    box-shadow: var(--site-shadow);
}

.category-tile strong {
    font-size: 20px;
}

.category-tile span {
    opacity: 0.86;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 18px;
    margin-bottom: 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--site-line);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.search-panel input,
.search-panel select {
    min-height: 46px;
    border: 1px solid var(--site-line);
    border-radius: 999px;
    padding: 0 16px;
    background: white;
    color: var(--site-text);
}

.search-panel input:focus,
.search-panel select:focus {
    outline: 2px solid rgba(20, 184, 166, 0.26);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 76px 108px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: white;
    border: 1px solid var(--site-line);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.rank-num {
    font-size: 28px;
    font-weight: 900;
    color: var(--site-tea);
}

.rank-cover {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
}

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

.rank-info h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.rank-info p {
    margin: 0;
    color: var(--site-muted);
    line-height: 1.7;
}

.rank-score {
    font-weight: 900;
    color: #b7791f;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: white;
    background: #0f172a;
}

.detail-hero__bg {
    position: absolute;
    inset: 0;
}

.detail-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(6px) scale(1.08);
    opacity: 0.55;
}

.detail-hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.48));
}

.detail-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    padding: 64px 20px;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 34px;
    align-items: end;
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.detail-info h1 {
    margin: 14px 0;
    font-size: clamp(34px, 6vw, 60px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.detail-info p {
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.9;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.76);
}

.player-card {
    overflow: hidden;
    margin: 0 0 34px;
    border-radius: 28px;
    background: #050816;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #050816;
}

.player-shell video {
    width: 100%;
    height: 100%;
    background: #050816;
}

.player-poster {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background-size: cover;
    background-position: center;
}

.player-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
}

.player-button {
    position: relative;
    z-index: 2;
    width: 96px;
    height: 96px;
    border: 0;
    border-radius: 50%;
    color: white;
    background: linear-gradient(135deg, var(--site-tea), #14b8a6);
    font-size: 30px;
    box-shadow: 0 20px 50px rgba(20, 184, 166, 0.38);
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
}

.article-card,
.side-card {
    padding: 28px;
    border-radius: 28px;
    background: white;
    border: 1px solid var(--site-line);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.article-card h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 900;
}

.article-card p {
    margin: 0 0 18px;
    color: #3a4542;
    line-height: 2;
}

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

.side-links a {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #fff8eb;
}

.side-links img {
    width: 86px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
}

.side-links strong {
    display: block;
    margin-bottom: 4px;
}

.side-links span {
    color: var(--site-muted);
    font-size: 13px;
}

.site-footer {
    margin-top: 40px;
    color: #e9f4f1;
    background: #13201e;
}

.site-footer__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 20px;
    display: grid;
    grid-template-columns: 1.4fr 2fr;
    gap: 30px;
}

.footer-logo {
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 900;
}

.site-footer p {
    color: #bfd6d0;
    line-height: 1.8;
}

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

.footer-links a {
    color: #cde7e1;
}

.site-footer__bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 20px 28px;
    color: #9bbab2;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hidden-by-filter {
    display: none !important;
}

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

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

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

    .detail-cover {
        max-width: 560px;
    }
}

@media (max-width: 760px) {
    .mobile-menu-button {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 68px;
        left: 12px;
        right: 12px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border-radius: 22px;
        background: white;
        box-shadow: var(--site-shadow);
    }

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

    .site-nav a {
        padding: 12px 10px;
    }

    .hero-content {
        padding-top: 84px;
    }

    .hero-control {
        display: none;
    }

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

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

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

    .rank-item {
        grid-template-columns: 54px 92px 1fr;
    }

    .rank-score {
        grid-column: 2 / -1;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
    }

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