:root {
    --brand: #f97316;
    --brand-dark: #dc2626;
    --brand-soft: #fff7ed;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #f9fafb;
    --card: #ffffff;
    --shadow: 0 20px 45px rgba(17, 24, 39, 0.12);
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
    background: #f3f4f6;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 900;
    font-size: 22px;
    white-space: nowrap;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    font-size: 17px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
}

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

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

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

.header-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff;
}

.header-search input,
.mobile-search input,
.search-box input,
.filter-row select {
    outline: none;
    border: 0;
    background: transparent;
}

.header-search input {
    width: 240px;
    padding: 10px 16px;
}

.header-search button,
.mobile-search button,
.search-box button {
    padding: 10px 18px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.menu-button {
    display: none;
    font-size: 26px;
    color: #374151;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    padding: 16px 20px 20px;
    background: #ffffff;
}

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

.mobile-search {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.mobile-search input {
    min-width: 0;
    flex: 1;
    padding: 12px 14px;
}

.mobile-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(120deg, #f97316 0%, #ef4444 45%, #db2777 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    filter: blur(4px);
}

.hero::before {
    width: 360px;
    height: 360px;
    top: -120px;
    left: -80px;
}

.hero::after {
    width: 420px;
    height: 420px;
    right: -130px;
    bottom: -170px;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    min-height: 560px;
    margin: 0 auto;
    padding: 70px 20px 64px;
}

.hero-slide {
    display: none;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
}

.hero-slide.active {
    display: grid;
}

.hero-copy h1,
.hero-copy h2 {
    max-width: 760px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.04em;
    margin-bottom: 22px;
}

.hero-copy p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 19px;
    line-height: 1.9;
    margin-bottom: 26px;
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.primary-button {
    color: var(--brand-dark);
    background: #ffffff;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
}

.secondary-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.12);
}

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

.hero-poster {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow);
    transform: rotate(1deg);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.56), transparent 58%);
}

.hero-badge-row,
.tag-row,
.detail-tags,
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-badge-row span,
.tag-row span,
.detail-tags span,
.quick-links a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-badge-row span {
    padding: 8px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.hero-dots {
    position: absolute;
    left: 20px;
    bottom: 26px;
    display: flex;
    gap: 10px;
}

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

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

.section {
    padding: 64px 20px;
}

.section.white {
    background: #ffffff;
}

.section.blue {
    background: linear-gradient(90deg, #eff6ff, #ecfeff);
}

.section.orange {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.container {
    max-width: 1180px;
    margin: 0 auto;
}

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

.section-title h1,
.section-title h2 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.section-title p {
    max-width: 760px;
    color: var(--muted);
    line-height: 1.85;
    margin-top: 10px;
}

.section.orange .section-title p,
.section.orange p {
    color: rgba(255, 255, 255, 0.9);
}

.category-grid,
.movie-grid,
.feature-grid {
    display: grid;
    gap: 22px;
}

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

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

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

.category-card {
    display: block;
    min-height: 155px;
    padding: 24px;
    color: #ffffff;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 18px 32px rgba(249, 115, 22, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #16a34a, #10b981);
}

.category-card:nth-child(4n) {
    background: linear-gradient(135deg, #7c3aed, #db2777);
}

.category-card:hover,
.movie-card:hover,
.rank-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-card strong {
    display: block;
    font-size: 22px;
    margin-bottom: 10px;
}

.category-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #f3f4f6;
}

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

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

.card-year,
.play-mark {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.68);
}

.card-year {
    top: 12px;
    right: 12px;
    min-width: 56px;
    height: 28px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.play-mark {
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    opacity: 0;
    border-radius: 999px;
    background: var(--brand);
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-card h3 {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
    margin-bottom: 10px;
}

.movie-card h3 a:hover,
.rank-item h3 a:hover {
    color: var(--brand);
}

.movie-card p,
.rank-item p {
    color: var(--muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: var(--muted);
    font-size: 13px;
    margin: 12px 0;
}

.tag-row span,
.detail-tags span {
    padding: 6px 10px;
    color: #ea580c;
    background: #ffedd5;
}

.movie-card-list {
    display: grid;
    grid-template-columns: 210px 1fr;
}

.movie-card-list .poster-link {
    aspect-ratio: auto;
    min-height: 160px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 16px;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-cover {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 4 / 3;
}

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

.rank-cover span {
    position: absolute;
    top: 8px;
    left: 8px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 950;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.rank-item h3 {
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 8px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 22px;
}

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

.detail-hero {
    background: linear-gradient(120deg, #111827, #7f1d1d 58%, #f97316);
    color: #ffffff;
    padding: 52px 20px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 36px;
    align-items: center;
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow);
    aspect-ratio: 3 / 4;
}

.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info h1 {
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.04em;
    margin-bottom: 18px;
}

.detail-info p {
    max-width: 790px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
    line-height: 1.85;
    margin-bottom: 20px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 800;
}

.player-shell {
    padding: 58px 20px;
    background: #0f172a;
}

.player-box {
    position: relative;
    max-width: 1050px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    aspect-ratio: 16 / 9;
}

.player-box video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.78;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.1));
}

.player-box.is-playing .player-cover {
    display: none;
}

.play-button-large {
    position: relative;
    z-index: 4;
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 34px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 18px 45px rgba(249, 115, 22, 0.4);
}

.content-block {
    max-width: 1180px;
    margin: 0 auto;
    padding: 58px 20px;
}

.text-panel {
    border-radius: 28px;
    background: #ffffff;
    padding: 32px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    margin-bottom: 28px;
}

.text-panel h2 {
    font-size: 28px;
    font-weight: 950;
    margin-bottom: 16px;
}

.text-panel p {
    color: #374151;
    line-height: 1.95;
    margin-bottom: 18px;
}

.quick-links a {
    padding: 9px 14px;
    color: var(--brand-dark);
    background: #ffedd5;
}

.search-hero,
.archive-hero {
    padding: 58px 20px 36px;
    background: linear-gradient(135deg, var(--brand-soft), #ffffff);
}

.search-box {
    display: grid;
    grid-template-columns: 1fr auto;
    max-width: 760px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    margin-top: 22px;
}

.search-box input {
    padding: 16px 18px;
    font-size: 16px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0 0;
}

.filter-row select {
    min-width: 150px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
}

.no-results {
    display: none;
    padding: 30px;
    border-radius: 22px;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
}

.site-footer {
    color: #cbd5e1;
    background: #111827;
    padding: 46px 20px;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
}

.site-footer strong {
    display: block;
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 10px;
}

.site-footer p {
    max-width: 640px;
    line-height: 1.8;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 18px;
}

.site-footer a:hover {
    color: #ffffff;
}

@media (max-width: 980px) {
    .main-nav,
    .header-search {
        display: none;
    }

    .menu-button {
        display: block;
        margin-left: auto;
    }

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

    .hero-inner {
        min-height: auto;
        padding-top: 48px;
    }

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

@media (max-width: 640px) {
    .header-inner {
        height: 62px;
        padding: 0 14px;
    }

    .brand {
        font-size: 19px;
    }

    .brand-icon {
        width: 34px;
        height: 34px;
    }

    .section,
    .content-block,
    .player-shell {
        padding: 42px 14px;
    }

    .hero-inner,
    .detail-hero,
    .search-hero,
    .archive-hero {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero-poster {
        min-height: 250px;
    }

    .hero-poster img {
        min-height: 250px;
    }

    .section-head,
    .footer-inner {
        grid-template-columns: 1fr;
        display: grid;
    }

    .category-grid,
    .movie-grid,
    .feature-grid,
    .rank-grid {
        grid-template-columns: 1fr;
    }

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

    .detail-layout {
        gap: 22px;
    }

    .detail-cover {
        max-width: 330px;
        margin: 0 auto;
    }

    .search-box {
        grid-template-columns: 1fr;
    }

    .footer-inner nav {
        justify-content: flex-start;
    }
}
