
:root {
    --amber: #f59e0b;
    --orange: #f97316;
    --dark: #111827;
    --muted: #6b7280;
    --line: #f1f5f9;
    --soft: #fff7ed;
    --card: #ffffff;
    --radius: 24px;
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
}

body {
    min-height: 100vh;
    background: #ffffff;
    color: var(--dark);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
    background: linear-gradient(135deg, #fff7ed, #fde68a);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(245, 158, 11, 0.18);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    height: 74px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.32);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.main-nav a,
.mobile-panel a,
.footer-links a {
    color: #374151;
    font-weight: 700;
    transition: color 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active,
.mobile-panel a:hover,
.footer-links a:hover {
    color: var(--orange);
}

.top-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-search input,
.hero-search input,
.mobile-panel input {
    width: 240px;
    border: 2px solid #fde68a;
    border-radius: 999px;
    padding: 11px 16px;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.top-search input:focus,
.hero-search input:focus,
.mobile-panel input:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.top-search button,
.hero-search button,
.mobile-panel button,
.primary-button,
.ghost-button,
.play-button {
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.top-search button,
.hero-search button,
.mobile-panel button,
.primary-button {
    padding: 11px 22px;
    color: #fff;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    box-shadow: 0 12px 25px rgba(249, 115, 22, 0.24);
}

.top-search button:hover,
.hero-search button:hover,
.mobile-panel button:hover,
.primary-button:hover,
.play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(249, 115, 22, 0.32);
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    font-size: 28px;
    color: #374151;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 18px;
    border: 1px solid #fde68a;
    border-radius: 22px;
    background: #fffaf0;
    box-shadow: var(--shadow);
}

.mobile-panel.is-open {
    display: grid;
    gap: 14px;
}

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

.mobile-panel input {
    width: 100%;
}

.hero-slider {
    position: relative;
    height: 560px;
    overflow: hidden;
    background: #111827;
}

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

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.06));
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100% - 1180px) / 2));
    top: 50%;
    width: min(650px, calc(100% - 48px));
    transform: translateY(-50%);
    color: #fff;
}

.eyebrow,
.section-heading span,
.page-hero span {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    padding: 6px 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    background: linear-gradient(90deg, var(--amber), var(--orange));
}

.hero-content h1 {
    margin-top: 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -0.055em;
}

.hero-content p {
    margin-top: 20px;
    color: #f3f4f6;
    font-size: 18px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.hero-tags span,
.tag-row span {
    border-radius: 999px;
    padding: 5px 11px;
    color: #92400e;
    font-size: 12px;
    font-weight: 800;
    background: #ffedd5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.ghost-button {
    padding: 11px 22px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.24);
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 26px;
    display: flex;
    gap: 9px;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.25s ease, background 0.25s ease;
}

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

.content-section,
.intro-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0;
}

.intro-section {
    padding-bottom: 26px;
}

.soft-section {
    width: 100%;
    max-width: none;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(180deg, #fff7ed, #ffffff);
}

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

.section-heading.centered {
    max-width: 860px;
    margin: 0 auto 28px;
    text-align: center;
    display: grid;
    justify-items: center;
}

.section-heading h2,
.page-hero h1,
.detail-info h1,
.text-panel h2 {
    color: #111827;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-heading h2 {
    margin-top: 10px;
    font-size: clamp(28px, 3vw, 42px);
}

.section-heading p,
.category-tile span,
.footer-inner p,
.page-hero p,
.detail-line,
.text-panel p,
.movie-card-body p {
    color: var(--muted);
    line-height: 1.75;
}

.section-heading a {
    color: var(--orange);
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid #f3f4f6;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fff7ed, #fed7aa);
}

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

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

.rating-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    background: rgba(17, 24, 39, 0.76);
    backdrop-filter: blur(12px);
}

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

.movie-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--orange);
    font-size: 12px;
    font-weight: 900;
}

.movie-card-body h3 {
    margin-top: 10px;
    color: #111827;
    font-size: 18px;
    font-weight: 950;
    line-height: 1.25;
}

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

.movie-card-body p {
    margin-top: 10px;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    margin-top: 14px;
}

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

.category-tile {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid #fed7aa;
    border-radius: var(--radius);
    padding: 24px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.16);
}

.category-tile strong {
    color: #111827;
    font-size: 24px;
    font-weight: 950;
}

.category-tile small {
    color: var(--orange);
    font-weight: 800;
    line-height: 1.6;
}

.ranking-section {
    padding-top: 54px;
}

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

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

.ranking-item {
    display: grid;
    grid-template-columns: 44px 1fr auto auto;
    align-items: center;
    gap: 12px;
    border: 1px solid #f3f4f6;
    border-radius: 18px;
    padding: 13px 15px;
    background: #fff;
}

.ranking-item a {
    min-width: 0;
    overflow: hidden;
    color: #111827;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-item a:hover {
    color: var(--orange);
}

.ranking-item span:not(.rank-number) {
    color: var(--muted);
    font-size: 12px;
}

.rank-number {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 950;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

.ranking-item strong {
    color: var(--orange);
}

.page-hero {
    min-height: 340px;
    display: grid;
    align-items: center;
    background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.35), transparent 34%), linear-gradient(135deg, #111827, #3b2210 62%, #92400e);
    color: #fff;
}

.slim-hero > div {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0;
}

.page-hero h1 {
    margin-top: 18px;
    color: #fff;
    font-size: clamp(42px, 7vw, 76px);
}

.page-hero p {
    max-width: 780px;
    margin-top: 16px;
    color: #f3f4f6;
    font-size: 18px;
}

.hero-search {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.hero-search input {
    width: min(520px, 100%);
}

.category-block {
    margin-bottom: 68px;
}

.channel-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.channel-nav a {
    border-radius: 999px;
    padding: 9px 14px;
    color: #92400e;
    font-size: 14px;
    font-weight: 800;
    background: #ffedd5;
}

.channel-nav a:hover {
    color: #fff;
    background: var(--orange);
}

.detail-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 42px;
    padding: 54px 0 36px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, #fff7ed, #fdba74);
}

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

.detail-info {
    align-self: center;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

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

.detail-info h1 {
    margin-top: 18px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
}

.detail-line {
    margin-top: 18px;
    font-size: 18px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.detail-meta span,
.detail-meta strong {
    border-radius: 999px;
    padding: 8px 13px;
    color: #92400e;
    font-size: 13px;
    font-weight: 900;
    background: #ffedd5;
}

.detail-meta strong {
    color: #fff;
    background: linear-gradient(90deg, var(--amber), var(--orange));
}

.large-tags span {
    padding: 7px 13px;
    font-size: 13px;
}

.detail-info .primary-button {
    display: inline-flex;
    margin-top: 26px;
}

.player-panel {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 20px;
}

.video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #030712;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.video-frame video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #030712;
    object-fit: contain;
    pointer-events: auto;
}

.play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 26px;
    color: #fff;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    transform: translate(-50%, -50%);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    z-index: 3;
}

.play-button:hover {
    transform: translate(-50%, -53%);
}

.play-button span {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--orange);
    background: #fff;
}

.video-frame.is-playing .play-button {
    display: none;
}

.detail-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.text-panel {
    border: 1px solid #f3f4f6;
    border-radius: var(--radius);
    padding: 28px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
}

.text-panel h2 {
    font-size: 28px;
}

.text-panel p {
    margin-top: 16px;
    font-size: 16px;
}

.detail-pager {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.detail-pager a {
    border-radius: 999px;
    padding: 12px 20px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(90deg, var(--amber), var(--orange));
}

.site-footer {
    margin-top: 40px;
    background: #78350f;
    color: #fff7ed;
}

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

.footer-brand {
    color: #fff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.footer-inner p {
    max-width: 560px;
    margin-top: 12px;
    color: #fed7aa;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 18px;
}

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

@media (max-width: 1080px) {
    .top-search {
        display: none;
    }

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

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

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

    .main-nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-slider {
        height: 620px;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.86));
    }

    .hero-content {
        top: auto;
        bottom: 82px;
        transform: none;
    }

    .section-heading {
        display: grid;
        align-items: start;
    }

    .movie-grid,
    .compact-grid,
    .category-grid,
    .ranking-list,
    .full-ranking,
    .detail-body,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

    .detail-poster {
        max-width: 360px;
    }

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

@media (max-width: 560px) {
    .brand {
        font-size: 21px;
    }

    .hero-content h1,
    .page-hero h1,
    .detail-info h1 {
        letter-spacing: -0.03em;
    }

    .movie-grid,
    .compact-grid {
        gap: 16px;
    }

    .ranking-item {
        grid-template-columns: 38px 1fr auto;
    }

    .ranking-item span:not(.rank-number) {
        display: none;
    }

    .play-button {
        width: calc(100% - 48px);
        justify-content: center;
    }
}
