* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    background: #0f172a;
    color: #ffffff;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.75);
}

.nav-wrap {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    white-space: nowrap;
    background: linear-gradient(90deg, #fbbf24, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 16px 34px rgba(234, 88, 12, 0.28);
    font-size: 15px;
}

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

.desktop-nav a,
.footer-links a,
.mobile-nav a {
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.footer-links a:hover,
.mobile-nav a:hover {
    color: #fbbf24;
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(340px, 30vw);
    padding: 8px;
    border-radius: 999px;
    background: rgba(51, 65, 85, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.nav-search input,
.mobile-nav input,
.filter-bar input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
}

.nav-search input::placeholder,
.mobile-nav input::placeholder,
.filter-bar input::placeholder {
    color: #94a3b8;
}

.nav-search button,
.mobile-nav button {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    color: #ffffff;
    background: linear-gradient(90deg, #f59e0b, #ea580c);
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    color: #ffffff;
    background: rgba(51, 65, 85, 0.8);
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(51, 65, 85, 0.7);
    padding: 0 16px 16px;
    background: rgba(15, 23, 42, 0.98);
}

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

.mobile-nav form {
    display: flex;
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(51, 65, 85, 0.7);
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s 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;
    transform: scale(1.02);
}

.hero-bg span {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.5), rgba(15, 23, 42, 0.15));
}

.hero-inner {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
    display: grid;
    gap: 22px;
}

.hero-tags,
.movie-meta,
.detail-meta-list,
.hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(30, 41, 59, 0.78);
    font-size: 14px;
    font-weight: 700;
}

.hero-tags span:first-child {
    background: #f59e0b;
}

.hero-title {
    margin: 0;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

.hero-meta {
    color: #cbd5e1;
    font-size: 15px;
}

.hero-meta span {
    padding: 5px 10px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.55);
}

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

.primary-btn,
.secondary-btn,
.plain-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-btn {
    padding: 14px 30px;
    color: #ffffff;
    background: linear-gradient(90deg, #f59e0b, #ea580c);
    box-shadow: 0 22px 48px rgba(234, 88, 12, 0.26);
}

.secondary-btn {
    padding: 13px 28px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(226, 232, 240, 0.2);
}

.primary-btn:hover,
.secondary-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

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

.hero-dots button {
    width: 26px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    transition: width 0.3s ease, background 0.3s ease;
}

.hero-dots button.is-active {
    width: 38px;
    background: #f59e0b;
}

.content-section {
    padding: 64px 0;
}

.muted-section {
    background: rgba(30, 41, 59, 0.38);
}

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

.section-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    font-weight: 900;
}

.section-heading p {
    margin: 0;
    color: #94a3b8;
}

.plain-link {
    padding: 10px 18px;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.24);
}

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

.movie-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 250px;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 0 18px;
    scrollbar-width: none;
}

.movie-row::-webkit-scrollbar {
    display: none;
}

.movie-card {
    position: relative;
    display: grid;
    overflow: hidden;
    border-radius: 18px;
    color: #ffffff;
    background: #1e293b;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.34);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 26px 58px rgba(2, 6, 23, 0.52);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #334155;
}

.movie-card-wide .poster-wrap {
    aspect-ratio: 16 / 9;
}

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

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

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

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

.play-hover {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: #f59e0b;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.65);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.year-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(10px);
}

.year-badge {
    right: 12px;
}

.rank-badge {
    left: 12px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.movie-info {
    display: grid;
    gap: 9px;
    padding: 15px;
}

.movie-title {
    min-height: 44px;
    display: -webkit-box;
    overflow: hidden;
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-card:hover .movie-title {
    color: #fbbf24;
}

.movie-desc {
    min-height: 42px;
    display: -webkit-box;
    overflow: hidden;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    gap: 8px;
}

.movie-meta span,
.movie-tags {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 7px;
    color: #cbd5e1;
    background: rgba(51, 65, 85, 0.9);
    font-size: 12px;
}

.movie-tags {
    color: #94a3b8;
}

.scroll-actions {
    display: flex;
    gap: 8px;
}

.scroll-actions button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: #334155;
    font-size: 24px;
    transition: background 0.2s ease;
}

.scroll-actions button:hover {
    background: #475569;
}

.category-feature-list,
.category-list {
    display: grid;
    gap: 28px;
}

.category-feature,
.category-card,
.article-card,
.side-card,
.detail-panel {
    border-radius: 22px;
    background: rgba(30, 41, 59, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 22px 54px rgba(2, 6, 23, 0.25);
}

.category-feature,
.category-card {
    padding: 22px;
}

.category-feature-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.category-feature h3,
.category-card h2 {
    margin: 0;
    color: #fbbf24;
    font-size: 24px;
}

.category-feature-head > a {
    color: #fbbf24;
    font-weight: 700;
}

.category-card p {
    margin: 8px 0 18px;
    color: #cbd5e1;
    line-height: 1.7;
}

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

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

.rank-grid .movie-card {
    grid-template-columns: 42% 1fr;
}

.rank-grid .poster-wrap {
    height: 100%;
    aspect-ratio: 16 / 10;
}

.year-list {
    display: grid;
    gap: 38px;
}

.year-block {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px;
}

.year-label {
    grid-column: 1 / 2;
    padding: 8px 20px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f59e0b, #ea580c);
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(234, 88, 12, 0.24);
}

.year-line {
    height: 2px;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.7), transparent);
}

.year-grid {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.page-hero {
    position: relative;
    padding: 66px 0 44px;
    background: radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.2), transparent 34%), linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.78));
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.page-hero h1 {
    margin: 10px 0 12px;
    font-size: clamp(36px, 6vw, 62px);
    line-height: 1.05;
    font-weight: 900;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

.eyebrow {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: #f59e0b;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #94a3b8;
    font-size: 14px;
}

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

.filter-bar {
    width: min(720px, 100%);
    margin-top: 24px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.wide-filter {
    width: min(880px, 100%);
}

.detail-hero {
    padding: 42px 0 54px;
    background: radial-gradient(circle at 24% 0%, rgba(245, 158, 11, 0.2), transparent 30%), #0f172a;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.85fr);
    gap: 28px;
    align-items: stretch;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #020617;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000000;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.18));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-shell.is-playing .play-cover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-circle {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 20px 44px rgba(234, 88, 12, 0.32);
    font-size: 30px;
}

.detail-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 28px;
}

.detail-panel h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.1;
    font-weight: 900;
}

.detail-panel p {
    margin: 0;
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.8;
}

.detail-meta-list span {
    padding: 8px 12px;
    border-radius: 10px;
    color: #cbd5e1;
    background: rgba(51, 65, 85, 0.68);
}

.detail-meta-list a {
    color: #fbbf24;
}

.detail-content-section {
    padding-top: 48px;
}

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

.article-card,
.side-card {
    padding: 28px;
}

.article-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 25px;
    color: #ffffff;
}

.article-card h2:not(:first-child) {
    margin-top: 28px;
}

.article-card p {
    margin: 0;
    color: #cbd5e1;
    line-height: 2;
    font-size: 16px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.tag-cloud span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.18);
    font-size: 14px;
}

.side-card dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.side-card dt {
    color: #94a3b8;
    font-size: 13px;
}

.side-card dd {
    margin: -8px 0 8px;
    color: #ffffff;
    line-height: 1.6;
}

.site-footer {
    padding: 44px 0 24px;
    background: #020617;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.6fr 0.8fr;
    gap: 30px;
    align-items: start;
}

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

.site-footer p,
.copyright {
    color: #94a3b8;
    line-height: 1.8;
}

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

.copyright {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    font-size: 14px;
}

[data-card].is-hidden {
    display: none;
}

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

    .watch-layout,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

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

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

    .menu-toggle {
        display: inline-flex;
    }

    .hero {
        height: 560px;
    }

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

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

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

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

    .nav-wrap {
        min-height: 66px;
    }

    .site-logo {
        font-size: 20px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

    .hero {
        height: 620px;
    }

    .hero-copy {
        gap: 16px;
    }

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

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

    .content-section {
        padding: 46px 0;
    }

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

    .movie-grid {
        gap: 14px;
    }

    .movie-info {
        padding: 12px;
    }

    .movie-title {
        min-height: 40px;
        font-size: 15px;
    }

    .movie-desc,
    .movie-tags {
        font-size: 12px;
    }

    .rank-grid .movie-card {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 44px 0 34px;
    }

    .player-shell {
        border-radius: 16px;
    }

    .detail-panel,
    .article-card,
    .side-card,
    .category-feature,
    .category-card {
        padding: 18px;
    }
}
