html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: #1f2937;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 45%, rgba(253, 186, 116, 0.18) 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #111827;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #f97316);
    box-shadow: 0 12px 30px rgba(217, 119, 6, 0.28);
    font-size: 15px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 20px;
    font-weight: 800;
}

.brand-text small {
    margin-top: 2px;
    color: #6b7280;
    font-size: 12px;
}

.desktop-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    font-size: 15px;
    font-weight: 600;
}

.nav-link {
    color: #4b5563;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #b45309;
}

.header-search {
    width: 280px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.big-search input,
.filter-search input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 10px 16px;
    color: #111827;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.big-search input:focus,
.filter-search input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.header-search button,
.big-search button,
.filter-buttons button,
.primary-button,
.outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.header-search button,
.big-search button,
.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #f97316);
    box-shadow: 0 14px 26px rgba(217, 119, 6, 0.22);
}

.header-search button {
    padding: 10px 16px;
    font-size: 14px;
}

.primary-button {
    padding: 13px 28px;
}

.header-search button:hover,
.big-search button:hover,
.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(217, 119, 6, 0.30);
}

.outline-button {
    padding: 10px 18px;
    color: #b45309;
    border: 1px solid rgba(217, 119, 6, 0.35);
    background: rgba(255, 247, 237, 0.8);
}

.outline-button:hover {
    color: #ffffff;
    background: #d97706;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #92400e;
    background: #fffbeb;
    font-size: 24px;
}

.mobile-nav {
    display: none;
    padding: 8px 24px 18px;
    border-top: 1px solid #f3f4f6;
    background: #ffffff;
}

.mobile-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    color: #374151;
    background: #f9fafb;
    font-weight: 600;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    background-position: center;
    background-size: cover;
    transition: opacity 0.65s ease;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.64) 48%, rgba(0, 0, 0, 0.16) 100%);
}

.hero-content {
    position: relative;
    max-width: 760px;
    margin-left: calc((100vw - min(1280px, 100vw)) / 2 + 24px);
    padding-right: 24px;
    color: #ffffff;
}

.hero-kicker,
.inner-hero span,
.category-hero span {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 6px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(217, 119, 6, 0.92);
    font-size: 14px;
    font-weight: 800;
}

.hero-content h1 {
    max-width: 700px;
    margin: 0 0 18px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

.hero-tags,
.tag-row,
.movie-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.88);
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tag-list span {
    background: rgba(245, 158, 11, 0.22);
    color: #fde68a;
}

.hero-controls {
    position: absolute;
    right: 34px;
    bottom: 32px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 4;
}

.hero-controls button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-size: 28px;
}

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

.hero-dot {
    width: 10px !important;
    height: 10px !important;
    background: rgba(255, 255, 255, 0.4) !important;
}

.hero-dot.is-active {
    width: 28px !important;
    border-radius: 999px !important;
    background: #f59e0b !important;
}

.section-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 58px 24px;
}

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

.section-heading h2 {
    margin: 0 0 8px;
    color: #111827;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.18;
    font-weight: 900;
}

.section-heading p {
    margin: 0;
    color: #6b7280;
    font-size: 16px;
}

.section-heading a {
    color: #b45309;
    font-weight: 800;
}

.centered-heading {
    justify-content: center;
    text-align: center;
}

.soft-section,
.category-section {
    max-width: none;
    padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    padding-right: max(24px, calc((100vw - 1280px) / 2 + 24px));
}

.soft-section {
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.86), rgba(255, 237, 213, 0.86));
}

.category-section {
    background: #ffffff;
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.78);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.38);
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.11);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #1f2937, #92400e);
}

.movie-poster img,
.ranking-thumb img,
.detail-summary-card img,
.category-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.duration,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.72);
    font-size: 12px;
    font-weight: 800;
}

.duration {
    right: 10px;
    bottom: 10px;
    padding: 4px 9px;
}

.rank-badge {
    top: 10px;
    left: 10px;
    padding: 6px 9px;
    background: rgba(217, 119, 6, 0.92);
}

.movie-info {
    padding: 16px;
}

.movie-title {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: #111827;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 850;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-title:hover {
    color: #b45309;
}

.movie-info p {
    display: -webkit-box;
    min-height: 44px;
    margin: 10px 0 14px;
    overflow: hidden;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    gap: 10px;
    color: #6b7280;
    font-size: 13px;
}

.movie-meta a,
.movie-meta span {
    color: #92400e;
    font-weight: 700;
}

.movie-info .tag-row,
.ranking-content .tag-row {
    margin-top: 14px;
}

.movie-info .tag-row span,
.ranking-content .tag-row span,
.detail-tags span {
    color: #4b5563;
    background: #f3f4f6;
}

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

.category-panel {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.82);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.category-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 106px;
    overflow: hidden;
    background: #111827;
}

.category-panel div:last-child {
    padding: 18px;
}

.category-panel h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
}

.category-panel p {
    min-height: 44px;
    margin: 0 0 12px;
    color: #6b7280;
    line-height: 1.6;
}

.category-panel span,
.category-count {
    color: #b45309;
    font-weight: 850;
}

.inner-hero,
.category-hero {
    padding: 76px 24px;
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.38), transparent 32%), linear-gradient(135deg, #111827, #7c2d12 52%, #ea580c);
}

.inner-hero div,
.category-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.inner-hero h1,
.category-hero h1 {
    max-width: 900px;
    margin: 0 0 18px;
    font-size: clamp(34px, 6vw, 60px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.inner-hero p,
.category-hero p {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.8;
}

.category-hero strong {
    display: inline-flex;
    margin-top: 24px;
    padding: 10px 18px;
    border-radius: 999px;
    color: #92400e;
    background: #fffbeb;
}

.overview-wrap {
    display: grid;
    gap: 28px;
}

.category-overview-card {
    padding: 26px;
    border: 1px solid #f3f4f6;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 16px 50px rgba(15, 23, 42, 0.06);
}

.category-overview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.category-overview-head h2 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 900;
}

.category-overview-head p {
    margin: 0;
    color: #6b7280;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 2fr;
    gap: 18px;
    padding: 18px;
    border: 1px solid #f3f4f6;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-buttons button {
    padding: 10px 14px;
    color: #4b5563;
    background: #f9fafb;
}

.filter-buttons button.is-active {
    color: #ffffff;
    background: #d97706;
}

.result-hint {
    margin: 18px 0 24px;
    color: #6b7280;
    font-weight: 700;
}

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

.compact-ranking {
    max-width: 900px;
    margin: 0 auto;
}

.ranking-item {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 20px;
    padding: 16px;
    border: 1px solid #f3f4f6;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.ranking-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    background: #111827;
}

.ranking-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 8px;
}

.ranking-head a {
    color: #111827;
    font-size: 20px;
    font-weight: 900;
}

.ranking-head strong {
    color: rgba(217, 119, 6, 0.32);
    font-size: 34px;
    line-height: 1;
}

.ranking-content p {
    margin: 0 0 12px;
    color: #6b7280;
    line-height: 1.7;
}

.big-search {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto 22px;
}

.big-search input {
    padding: 15px 22px;
    font-size: 16px;
}

.big-search button {
    padding: 0 28px;
}

.detail-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 24px 64px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: #6b7280;
    font-size: 14px;
}

.breadcrumb a {
    color: #b45309;
    font-weight: 800;
}

.player-card {
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
}

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

.player-box video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    object-fit: contain;
    z-index: 1;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.52));
}

.play-overlay span {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #f97316);
    box-shadow: 0 18px 50px rgba(217, 119, 6, 0.45);
    font-size: 34px;
}

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

.player-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
}

.player-title-row h1 {
    margin: 0 0 10px;
    color: #111827;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    font-weight: 950;
}

.player-title-row p {
    max-width: 880px;
    margin: 0;
    color: #6b7280;
    font-size: 17px;
    line-height: 1.8;
}

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

.detail-main,
.detail-aside {
    display: grid;
    gap: 22px;
}

.detail-summary-card,
.article-block,
.detail-aside {
    padding: 24px;
    border: 1px solid #f3f4f6;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.06);
}

.detail-summary-card {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
}

.detail-summary-card img {
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    background: #111827;
}

.detail-summary-card h2,
.article-block h2,
.detail-aside h2 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 24px;
    font-weight: 900;
}

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

.meta-list div {
    padding: 12px;
    border-radius: 14px;
    background: #f9fafb;
}

.meta-list dt {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 800;
}

.meta-list dd {
    margin: 4px 0 0;
    color: #111827;
    font-weight: 850;
}

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

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

.detail-aside .movie-card {
    border-radius: 18px;
}

.detail-aside .movie-info p,
.detail-aside .tag-row {
    display: none;
}

.detail-aside .movie-title {
    min-height: auto;
    font-size: 15px;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 50px 24px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 36px;
}

.footer-brand {
    color: #ffffff;
    margin-bottom: 14px;
}

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

.site-footer p {
    margin: 0;
    line-height: 1.8;
}

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

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

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

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

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

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

    .header-search {
        margin-left: auto;
    }

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

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

@media (max-width: 900px) {
    .header-inner {
        height: auto;
        min-height: 70px;
        padding: 12px 18px;
    }

    .header-search {
        display: none;
    }

    .hero-carousel {
        height: 620px;
    }

    .hero-content {
        margin-left: 24px;
        margin-top: 64px;
    }

    .hero-controls {
        left: 24px;
        right: auto;
    }

    .section-heading,
    .category-overview-head,
    .player-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid-four,
    .movie-grid-three,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-bar,
    .big-search,
    .ranking-item,
    .detail-grid,
    .detail-summary-card,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .ranking-thumb,
    .detail-summary-card img {
        width: 100%;
    }
}

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

    .hero-carousel {
        height: 590px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .section-wrap,
    .detail-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .category-preview {
        height: 150px;
    }

    .player-title-row,
    .detail-summary-card,
    .article-block,
    .detail-aside {
        padding: 18px;
    }

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