:root {
    --accent: #f97316;
    --accent-dark: #ea580c;
    --amber: #f59e0b;
    --ink: #171717;
    --muted: #6b7280;
    --paper: #fff7ed;
    --line: #fed7aa;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(124, 45, 18, 0.14);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(255, 237, 213, 0.95), transparent 32rem),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 34%, #fffaf4 100%);
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

main {
    min-height: 60vh;
}

a {
    color: inherit;
}

img {
    background: linear-gradient(135deg, #7c2d12, #f97316);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #f97316, #fb7185, #f59e0b);
    box-shadow: 0 12px 32px rgba(154, 52, 18, 0.22);
}

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

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

.site-logo {
    color: #ffffff;
    font-size: 1.25rem;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
    font-size: 1rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: #ffffff;
    font-weight: 700;
}

.nav-link {
    position: relative;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    opacity: 1;
    transform: translateY(-1px);
}

.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 3px;
    border-radius: 99px;
    background: #ffffff;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: #ffffff;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-link {
    color: #ffffff;
    font-weight: 700;
    padding: 10px 0;
}

.mobile-link.is-active {
    color: #ffedd5;
}

.hero {
    position: relative;
    padding: 34px 0 18px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -120px;
    top: 40px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.18);
    filter: blur(8px);
}

.hero-shell {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 560px;
    margin: 0 auto;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(16px) saturate(1.2);
    transform: scale(1.09);
    opacity: 0.65;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.76) 48%, rgba(17, 24, 39, 0.34) 100%),
        radial-gradient(circle at 82% 24%, rgba(249, 115, 22, 0.4), transparent 26rem);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 560px;
    padding: clamp(32px, 6vw, 72px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.58fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.hero-copy {
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.24);
    color: #fed7aa;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-copy h1,
.hero-copy h2 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.35rem, 7vw, 5.4rem);
    line-height: 0.96;
    font-weight: 950;
    letter-spacing: -0.07em;
}

.hero-copy p {
    max-width: 720px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.08rem;
    line-height: 1.8;
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.hero-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffedd5;
    font-size: 0.88rem;
    font-weight: 700;
}

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

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

.primary-button,
.home-search button,
.search-box button {
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.32);
}

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

.primary-button:hover,
.ghost-button:hover,
.home-search button:hover,
.search-box button:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    display: block;
    width: min(320px, 100%);
    justify-self: center;
    aspect-ratio: 2 / 3;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

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

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

.hero-poster span,
.poster-play {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.92);
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
}

.hero-poster span {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.hero-controls {
    position: absolute;
    z-index: 3;
    left: clamp(26px, 6vw, 72px);
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.hero-controls button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 1.7rem;
    line-height: 1;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 9px;
}

.hero-dot {
    width: 9px !important;
    height: 9px !important;
    border-radius: 999px !important;
    padding: 0 !important;
    background: rgba(255, 255, 255, 0.4) !important;
}

.hero-dot.is-active {
    width: 30px !important;
    background: #ffffff !important;
}

.hero-search-card {
    position: relative;
    z-index: 4;
    width: min(1040px, calc(100% - 52px));
    margin: -38px auto 0;
    padding: 18px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.home-search,
.search-box {
    display: flex;
    gap: 12px;
}

.home-search input,
.search-box input {
    flex: 1;
    min-height: 48px;
    border-radius: 999px;
    border: 1px solid #fed7aa;
    padding: 0 18px;
    background: #ffffff;
    color: #171717;
    outline: none;
}

.hero-channel-links,
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.hero-channel-links a,
.filter-pills button,
.category-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    font-weight: 800;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hero-channel-links a:hover,
.filter-pills button:hover,
.filter-pills button.is-active,
.category-chip:hover {
    background: #f97316;
    color: #ffffff;
    transform: translateY(-1px);
}

.page-section,
.page-hero,
.detail-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.page-section {
    padding: 58px 0;
}

.page-hero {
    padding: 56px 0 18px;
}

.page-hero-card {
    border-radius: 30px;
    padding: clamp(28px, 5vw, 54px);
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.24), transparent 28rem),
        linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: var(--shadow);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: #9a3412;
    font-weight: 800;
}

.page-hero h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.page-hero p,
.detail-title p {
    max-width: 820px;
    margin-top: 16px;
    color: #6b7280;
    font-size: 1.05rem;
    line-height: 1.8;
}

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

.section-heading p {
    color: #f97316;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.section-heading h2 {
    margin-top: 6px;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-heading a {
    color: #ea580c;
    font-weight: 900;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(154, 52, 18, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #7c2d12;
}

.movie-poster img,
.rank-thumb img,
.detail-cover img,
.rec-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-poster img {
    transition: transform 0.34s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.64));
    opacity: 0;
    transition: opacity 0.22s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.duration-badge {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 2;
    padding: 5px 8px;
    border-radius: 9px;
    background: rgba(17, 24, 39, 0.72);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 900;
}

.poster-play {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.movie-info {
    padding: 16px;
}

.movie-info h3,
.rank-card h3,
.rec-card h3 {
    margin: 0;
    font-size: 1.04rem;
    font-weight: 900;
    line-height: 1.35;
}

.movie-info h3 a:hover,
.rank-card h3 a:hover,
.rec-card h3 a:hover {
    color: #ea580c;
}

.movie-info p,
.rank-card p,
.rec-card p {
    margin-top: 8px;
    color: #6b7280;
    font-size: 0.92rem;
    line-height: 1.55;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    color: #9a3412;
    font-size: 0.82rem;
    font-weight: 800;
}

.movie-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #ffedd5;
}

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

.category-card {
    min-height: 190px;
    border-radius: 26px;
    padding: 26px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.38), transparent 10rem),
        linear-gradient(135deg, #f97316, #f59e0b);
    color: #ffffff;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(249, 115, 22, 0.24);
}

.category-card h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 950;
}

.category-card p {
    margin: 12px 0 22px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 52px 96px minmax(0, 1fr);
    gap: 15px;
    align-items: center;
    border-radius: 22px;
    padding: 14px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(154, 52, 18, 0.08);
}

.rank-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 950;
}

.rank-thumb {
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 16px;
}

.search-panel {
    margin-top: 24px;
    border-radius: 26px;
    padding: 20px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.no-results {
    display: none;
    margin-top: 22px;
    border-radius: 18px;
    padding: 22px;
    background: #fff7ed;
    color: #9a3412;
    font-weight: 900;
}

.no-results.is-visible {
    display: block;
}

.detail-wrap {
    padding: 38px 0 64px;
}

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

.player-card,
.detail-side,
.content-card {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

.player-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #111827;
    cursor: pointer;
}

.player-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.72));
    transition: opacity 0.22s ease;
    pointer-events: auto;
}

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

.play-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-radius: 999px;
    padding: 16px 26px;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 950;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

.play-button strong {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.detail-title {
    padding: 26px;
}

.detail-cover {
    aspect-ratio: 2 / 3;
    overflow: hidden;
}

.side-info {
    padding: 20px;
}

.info-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #ffedd5;
    color: #6b7280;
}

.info-line strong {
    color: #171717;
}

.content-card {
    margin-top: 28px;
    padding: clamp(22px, 4vw, 34px);
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 1.45rem;
    font-weight: 950;
}

.content-card p {
    color: #374151;
    line-height: 1.95;
    margin: 0 0 20px;
}

.rec-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.rec-card {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: #fff7ed;
}

.rec-card .rec-img {
    aspect-ratio: 2 / 3;
    overflow: hidden;
}

.rec-card div:last-child {
    padding: 12px;
}

.site-footer {
    background: linear-gradient(180deg, #111827, #030712);
    color: #d1d5db;
    margin-top: 28px;
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 36px;
}

.footer-logo {
    color: #ffffff;
    margin-bottom: 16px;
}

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

.site-footer h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 900;
}

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

.footer-links a:hover {
    color: #fb923c;
}

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

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

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

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

    .menu-button {
        display: flex;
    }

    .hero-shell,
    .hero-content {
        min-height: 720px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        padding-bottom: 96px;
    }

    .hero-poster {
        width: min(230px, 72vw);
        justify-self: start;
    }

    .home-search,
    .search-box {
        flex-direction: column;
    }

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

    .detail-side {
        display: grid;
        grid-template-columns: 150px minmax(0, 1fr);
    }

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

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

    .hero-shell,
    .page-section,
    .page-hero,
    .detail-wrap {
        width: min(100% - 22px, 1180px);
    }

    .hero-search-card {
        width: min(100% - 28px, 1040px);
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 2.3rem;
        letter-spacing: -0.05em;
    }

    .rank-card {
        grid-template-columns: 44px 82px minmax(0, 1fr);
    }

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