* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #292524;
    background: #fafaf9;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    color: #ffffff;
    background: linear-gradient(90deg, #78350f, #9a3412, #7f1d1d);
    box-shadow: 0 18px 40px rgba(120, 53, 15, 0.24);
}

.nav-shell {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #78350f;
    background: linear-gradient(135deg, #fde68a, #fb923c);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

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

.nav-link,
.mobile-link {
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.84);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 2px;
    background: #ffffff;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
}

.hero-carousel {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

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

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

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
    filter: saturate(1.12) contrast(1.05);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 18%, rgba(251, 146, 60, 0.32), transparent 36%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.38)),
        linear-gradient(0deg, rgba(15, 23, 42, 0.88), transparent 38%);
}

.hero-content {
    position: relative;
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 64px;
    padding: 82px 0 120px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: #d97706;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(217, 119, 6, 0.26);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0 0 22px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.03;
    letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 19px;
    line-height: 1.8;
}

.hero-stats,
.detail-stats,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-stats,
.detail-stats {
    margin: 28px 0;
}

.hero-stats span,
.detail-stats span,
.card-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-stats span,
.detail-stats span {
    padding: 8px 12px;
    color: #fde68a;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

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

.primary-btn,
.ghost-btn,
.page-search button,
.hero-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.page-search button,
.hero-search button {
    padding: 0 26px;
    color: #ffffff;
    background: #d97706;
    box-shadow: 0 16px 34px rgba(217, 119, 6, 0.34);
}

.primary-btn:hover,
.page-search button:hover,
.hero-search button:hover {
    transform: translateY(-2px) scale(1.01);
    background: #b45309;
}

.ghost-btn {
    padding: 0 24px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ghost-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

.hero-poster {
    position: relative;
    border-radius: 30px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(253, 230, 138, 0.86), rgba(251, 146, 60, 0.22));
    box-shadow: 0 34px 78px rgba(0, 0, 0, 0.34);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 24px;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 36px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.hero-dots {
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

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

.hero-search,
.page-search {
    display: flex;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
}

.hero-search input,
.page-search input {
    width: min(420px, 52vw);
    border: 0;
    outline: 0;
    padding: 0 18px;
    color: #ffffff;
    background: transparent;
}

.hero-search input::placeholder,
.page-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.quick-channels,
.content-section,
.split-section {
    padding: 58px 0 0;
}

.quick-channels h2,
.section-head h2,
.channel-card h2,
.category-overview-card h2,
.detail-article h2,
.detail-side h2,
.ranking-body h2 {
    margin: 0;
    color: #1c1917;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.quick-channels h2,
.section-head h2 {
    font-size: clamp(26px, 3vw, 38px);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.chip-row a,
.tag-row span {
    display: inline-flex;
    border-radius: 999px;
    font-weight: 800;
}

.chip-row a {
    padding: 12px 18px;
    color: #78350f;
    background: #fffbeb;
    border: 1px solid #fde68a;
    box-shadow: 0 10px 22px rgba(120, 53, 15, 0.08);
}

.chip-row a:hover {
    color: #ffffff;
    background: #d97706;
}

.chip-row.small a {
    padding: 9px 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
}

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

.section-head p {
    margin: 8px 0 0;
    color: #78716c;
    line-height: 1.7;
}

.section-head > a,
.text-link {
    color: #b45309;
    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 18px 42px rgba(41, 37, 36, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 58px rgba(41, 37, 36, 0.14);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fef3c7);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-badge,
.poster-play {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
}

.poster-badge {
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    background: rgba(120, 53, 15, 0.86);
    backdrop-filter: blur(12px);
}

.poster-play {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    background: #d97706;
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.34);
}

.card-body {
    padding: 18px;
}

.card-meta {
    color: #a16207;
    font-size: 13px;
}

.card-meta span {
    padding: 4px 9px;
    background: #fffbeb;
}

.card-body h2 {
    margin: 12px 0 8px;
    font-size: 19px;
    line-height: 1.28;
}

.card-body h2 a:hover,
.ranking-body h2 a:hover,
.category-overview-card h2 a:hover {
    color: #b45309;
}

.card-body p {
    display: -webkit-box;
    margin: 0;
    min-height: 50px;
    overflow: hidden;
    color: #57534e;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.tag-row span {
    padding: 5px 9px;
    color: #7c2d12;
    background: #ffedd5;
    font-size: 12px;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.featured-panel,
.channel-card,
.category-overview-card,
.detail-article,
.detail-side,
.player-card,
.ranking-row {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(41, 37, 36, 0.08);
}

.featured-panel {
    padding: 28px;
}

.rank-list,
.side-list,
.channel-list {
    display: grid;
    gap: 14px;
}

.rank-item,
.compact-card {
    display: grid;
    grid-template-columns: auto 64px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-radius: 18px;
    background: #fafaf9;
    transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card {
    grid-template-columns: 58px minmax(0, 1fr);
}

.rank-item:hover,
.compact-card:hover {
    background: #fff7ed;
    transform: translateX(4px);
}

.rank-no {
    width: 36px;
    color: #b45309;
    font-weight: 900;
}

.rank-item img,
.compact-card img {
    width: 64px;
    height: 84px;
    object-fit: cover;
    border-radius: 14px;
    background: #fed7aa;
}

.compact-card img {
    width: 58px;
    height: 76px;
}

.rank-info,
.compact-card span {
    min-width: 0;
}

.rank-info strong,
.compact-card strong {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #292524;
}

.rank-info em,
.compact-card em {
    display: block;
    overflow: hidden;
    margin-top: 4px;
    color: #78716c;
    font-size: 13px;
    font-style: normal;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

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

.channel-card,
.category-overview-card {
    padding: 24px;
}

.channel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.channel-top a {
    color: #b45309;
    font-weight: 900;
}

.channel-card p,
.category-overview-card p {
    margin: 0 0 18px;
    color: #78716c;
    line-height: 1.7;
}

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

.category-covers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.category-covers img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
    background: #fed7aa;
}

.page-main {
    padding-bottom: 72px;
}

.page-hero {
    margin-top: 34px;
    padding: 52px;
    border-radius: 34px;
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 10%, rgba(251, 191, 36, 0.35), transparent 34%),
        linear-gradient(135deg, #78350f, #9a3412, #7f1d1d);
    box-shadow: 0 26px 68px rgba(120, 53, 15, 0.24);
}

.page-hero h1 {
    max-width: 880px;
}

.page-hero p {
    max-width: 820px;
}

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

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

.ranking-row {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
}

.ranking-cover {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
}

.ranking-cover span {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: #d97706;
    font-weight: 900;
}

.ranking-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: #fed7aa;
}

.ranking-body {
    align-self: center;
}

.ranking-body h2 {
    font-size: 28px;
}

.ranking-body p {
    max-width: 780px;
    color: #57534e;
    line-height: 1.75;
}

.page-search {
    width: min(720px, 100%);
    margin-top: 28px;
    background: rgba(255, 255, 255, 0.14);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 28px;
    color: #78716c;
    font-weight: 700;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
    align-items: center;
    gap: 28px;
    margin-top: 22px;
}

.player-card {
    overflow: hidden;
    padding: 12px;
}

.video-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #0f172a;
}

.video-wrap video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f172a;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 0;
    padding: 0;
    color: #ffffff;
    background: #0f172a;
    cursor: pointer;
}

.player-overlay img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    filter: blur(1px) saturate(1.08);
}

.play-circle {
    position: relative;
    z-index: 2;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #d97706;
    font-size: 34px;
    box-shadow: 0 24px 48px rgba(217, 119, 6, 0.4);
}

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

.detail-copy {
    padding: 34px;
    border-radius: 30px;
    color: #ffffff;
    background:
        radial-gradient(circle at 86% 18%, rgba(251, 191, 36, 0.28), transparent 38%),
        linear-gradient(135deg, #78350f, #9a3412, #7f1d1d);
    box-shadow: 0 24px 58px rgba(120, 53, 15, 0.22);
}

.detail-copy h1 {
    font-size: clamp(32px, 4vw, 52px);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    margin-top: 28px;
}

.detail-article,
.detail-side {
    padding: 30px;
}

.detail-article h2,
.detail-side h2 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 27px;
}

.detail-article p {
    margin: 0 0 24px;
    color: #57534e;
    font-size: 17px;
    line-height: 1.9;
}

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

.info-list div {
    padding: 14px;
    border-radius: 18px;
    background: #fafaf9;
}

.info-list dt {
    color: #a16207;
    font-size: 13px;
    font-weight: 900;
}

.info-list dd {
    margin: 5px 0 0;
    color: #292524;
    font-weight: 800;
}

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

.site-footer {
    margin-top: 74px;
    padding: 54px 0;
    color: #fef3c7;
    background: linear-gradient(135deg, #451a03, #7f1d1d);
}

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

.site-footer p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.75;
}

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

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

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.1);
}

.footer-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

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

    .hero-content,
    .detail-hero,
    .detail-grid,
    .split-section,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

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

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .site-header.is-open .mobile-nav {
        display: grid;
        gap: 8px;
    }

    .hero-carousel {
        min-height: 680px;
    }

    .hero-content {
        min-height: 600px;
        padding: 56px 0 132px;
    }

    .hero-copy p,
    .page-hero p,
    .detail-one-line {
        font-size: 16px;
    }

    .hero-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-search,
    .page-search {
        width: 100%;
    }

    .hero-search input,
    .page-search input {
        width: 100%;
    }

    .movie-grid,
    .category-grid,
    .related-grid,
    .channel-grid,
    .category-overview-grid,
    .mini-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .card-body {
        padding: 14px;
    }

    .card-body h2 {
        font-size: 16px;
    }

    .card-body p,
    .tag-row {
        display: none;
    }

    .page-hero,
    .detail-copy,
    .featured-panel,
    .detail-article,
    .detail-side {
        padding: 24px;
        border-radius: 24px;
    }

    .category-overview-card,
    .ranking-row {
        grid-template-columns: 1fr;
    }

    .category-covers {
        grid-template-columns: repeat(4, 1fr);
    }

    .ranking-cover {
        max-width: 230px;
    }

    .info-list {
        grid-template-columns: 1fr;
    }
}
