:root {
    --brand-orange: #f97316;
    --brand-pink: #ec4899;
    --brand-amber: #f59e0b;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #f3f4f6;
    --card: #ffffff;
    --soft: #fff7ed;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--ink);
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.55), #ffffff 45%, rgba(253, 242, 248, 0.65));
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.08);
}

.nav-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 76px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-pink));
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.22);
}

.brand-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 1 1 auto;
}

.desktop-nav a,
.mobile-panel a {
    color: #374151;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
    color: var(--brand-orange);
}

.nav-search {
    position: relative;
    width: min(280px, 28vw);
}

.nav-search input,
.hero-search input,
.filter-input {
    width: 100%;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    outline: none;
    background: rgba(255, 255, 255, 0.92);
    color: #374151;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-search input {
    padding: 11px 46px 11px 18px;
}

.nav-search input:focus,
.hero-search input:focus,
.filter-input:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16);
}

.nav-search button,
.hero-search button {
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-pink));
}

.nav-search button {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid #fed7aa;
    background: #ffffff;
    color: var(--brand-orange);
    font-size: 24px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid #ffedd5;
    padding: 18px 24px 24px;
    background: rgba(255, 255, 255, 0.98);
}

.mobile-panel.is-open {
    display: block;
}

.mobile-panel nav {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.page-main {
    min-height: 70vh;
}

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

.hero {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: linear-gradient(135deg, #ffedd5, #fce7f3 58%, #fef3c7);
}

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

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

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

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

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.58) 48%, rgba(249, 115, 22, 0.2));
}

.hero-inner {
    position: relative;
    z-index: 2;
    min-height: 72vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 720px;
    color: #ffffff;
    padding: 80px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    color: #fde68a;
    font-weight: 700;
    backdrop-filter: blur(12px);
}

.hero h1 {
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.04;
    font-weight: 900;
    margin: 0 0 20px;
    text-shadow: 0 12px 38px rgba(0, 0, 0, 0.42);
}

.hero p {
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 26px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 700;
}

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

.btn-primary,
.btn-soft,
.btn-line {
    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, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-pink));
    box-shadow: 0 18px 42px rgba(249, 115, 22, 0.28);
}

.btn-primary:hover,
.btn-soft:hover,
.btn-line:hover {
    transform: translateY(-2px);
}

.btn-soft {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(10px);
}

.btn-line {
    color: var(--brand-orange);
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transform: translateY(-50%);
}

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

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

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

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

.hero-dot.is-active {
    width: 34px;
    background: #ffffff;
}

.hero-search {
    margin-top: 26px;
    display: flex;
    width: min(620px, 100%);
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 50px rgba(17, 24, 39, 0.22);
}

.hero-search input {
    border: 0;
    padding: 14px 18px;
    background: transparent;
}

.hero-search button {
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
}

.section {
    padding: 72px 0 0;
}

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

.section-heading h2,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    color: #1f2937;
    font-weight: 900;
}

.section-heading h2 {
    font-size: clamp(28px, 3vw, 38px);
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(254, 215, 170, 0.55);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(249, 115, 22, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 70px rgba(236, 72, 153, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #ffedd5, #fce7f3);
}

.movie-card.tall .poster-link,
.detail-cover {
    aspect-ratio: 2 / 3;
}

.poster-link img,
.detail-cover img,
.rank-thumb img,
.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img,
.rank-item:hover .rank-thumb img,
.related-card:hover .related-thumb img {
    transform: scale(1.08);
}

.card-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-pink));
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(236, 72, 153, 0.22);
}

.card-body {
    padding: 18px;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.movie-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 900;
    color: #1f2937;
}

.movie-card h3 a:hover {
    color: var(--brand-orange);
}

.movie-card p {
    margin: 0;
    color: #6b7280;
    line-height: 1.7;
    font-size: 14px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 700;
}

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

.channel-card {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    padding: 24px;
    border-radius: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-pink));
    box-shadow: 0 24px 60px rgba(236, 72, 153, 0.18);
}

.channel-card:nth-child(2n) {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.channel-card:nth-child(3n) {
    background: linear-gradient(135deg, #fb7185, #a855f7);
}

.channel-card h3 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 900;
}

.channel-card p {
    margin: 0 0 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 56px 128px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid #ffedd5;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(249, 115, 22, 0.08);
}

.rank-number {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-pink));
}

.rank-thumb {
    height: 82px;
    border-radius: 16px;
    overflow: hidden;
    background: #ffedd5;
}

.rank-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 900;
}

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

.rank-score {
    color: var(--brand-amber);
    font-size: 22px;
    font-weight: 900;
}

.page-hero {
    padding: 64px 0 36px;
}

.page-hero-box,
.filter-box,
.detail-card,
.detail-side,
.related-section {
    border: 1px solid rgba(254, 215, 170, 0.58);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 22px 64px rgba(249, 115, 22, 0.1);
}

.page-hero-box {
    padding: 38px;
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.9), rgba(252, 231, 243, 0.82));
}

.page-hero h1 {
    font-size: clamp(34px, 4vw, 54px);
}

.filter-box {
    padding: 20px;
    margin-bottom: 30px;
}

.filter-input {
    padding: 14px 18px;
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.filter-chip {
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 8px 13px;
    color: #9a3412;
    background: #fff7ed;
    font-weight: 800;
    cursor: pointer;
}

.detail-wrap {
    padding: 44px 0 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

.breadcrumb a:hover {
    color: var(--brand-orange);
}

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

.detail-card,
.detail-side,
.related-section {
    padding: 26px;
}

.detail-title h1 {
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.12;
}

.detail-title p {
    color: var(--muted);
    line-height: 1.8;
    font-size: 17px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    margin: 26px 0;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 24px 80px rgba(17, 24, 39, 0.35);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.58));
    cursor: pointer;
}

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

.play-circle {
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 36px;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-pink));
    box-shadow: 0 18px 60px rgba(236, 72, 153, 0.42);
}

.info-block {
    margin-top: 26px;
}

.info-block h2 {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 900;
}

.info-block p {
    margin: 0;
    color: #4b5563;
    line-height: 1.9;
    font-size: 16px;
}

.detail-cover {
    overflow: hidden;
    border-radius: 24px;
    background: #ffedd5;
}

.stat-list {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.stat-list div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.stat-list span:first-child {
    color: var(--muted);
}

.stat-list span:last-child {
    color: #1f2937;
    font-weight: 900;
    text-align: right;
}

.related-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.related-card {
    display: grid;
    grid-template-columns: 116px 1fr;
    gap: 14px;
    align-items: center;
}

.related-thumb {
    height: 74px;
    overflow: hidden;
    border-radius: 16px;
    background: #ffedd5;
}

.related-card h3 {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 900;
}

.related-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    margin-top: 80px;
    border-top: 1px solid #ffedd5;
    background: rgba(255, 255, 255, 0.92);
}

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

.footer-grid h2,
.footer-grid h3 {
    margin: 0 0 14px;
    font-weight: 900;
}

.footer-grid p,
.footer-grid a {
    color: var(--muted);
    line-height: 1.8;
}

.footer-grid a:hover {
    color: var(--brand-orange);
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 30px;
    color: #9ca3af;
    font-size: 14px;
}

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

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

    .nav-search {
        margin-left: auto;
        width: min(320px, 42vw);
    }

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

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

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

@media (max-width: 760px) {
    .nav-wrap {
        height: auto;
        min-height: 70px;
        padding: 12px 18px;
        gap: 14px;
        flex-wrap: wrap;
    }

    .brand-text {
        font-size: 19px;
    }

    .nav-search {
        order: 3;
        width: 100%;
        margin-left: 0;
    }

    .mobile-toggle {
        margin-left: auto;
    }

    .container {
        width: min(100% - 32px, 1280px);
    }

    .hero,
    .hero-inner {
        min-height: 76vh;
    }

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

    .hero-control {
        display: none;
    }

    .hero-search {
        border-radius: 24px;
        flex-direction: column;
        gap: 8px;
    }

    .hero-search button {
        min-height: 44px;
    }

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

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

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

    .rank-item {
        grid-template-columns: 44px 96px 1fr;
    }

    .rank-score {
        grid-column: 3;
        font-size: 16px;
    }

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

    .footer-bottom {
        align-items: start;
        flex-direction: column;
    }

    .detail-card,
    .detail-side,
    .related-section,
    .page-hero-box {
        padding: 22px;
        border-radius: 24px;
    }
}
