* {
    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: #1f2937;
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 48%, #f8fafc 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #15803d 0%, #14532d 100%);
    box-shadow: 0 18px 45px rgba(20, 83, 45, 0.25);
}

.main-nav {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-icon {
    font-size: 28px;
}

.brand-text {
    font-size: 21px;
    white-space: nowrap;
}

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

.nav-link {
    font-size: 15px;
    opacity: 0.96;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link-active {
    color: #bbf7d0;
    opacity: 1;
}

.nav-search,
.mobile-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.nav-search input,
.mobile-search input {
    width: 180px;
    border: 0;
    color: #ffffff;
    background: transparent;
    padding: 10px 14px;
    outline: none;
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.nav-search button,
.mobile-search button {
    border: 0;
    padding: 10px 16px;
    color: #14532d;
    background: #ffffff;
    font-weight: 700;
}

.mobile-menu-button {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 8px 14px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

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

.hero-section {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(110deg, #14532d 0%, #15803d 48%, #052e16 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 560px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.hero-slide {
    display: none;
    width: 100%;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.7fr);
    align-items: center;
    gap: 48px;
    padding: 56px 0 88px;
}

.hero-slide.is-active {
    display: grid;
    animation: fadeIn 0.6s ease both;
}

.hero-kicker {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 7px 14px;
    color: #dcfce7;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.hero-copy h1,
.compact-hero h1,
.detail-main h1 {
    margin: 0 0 20px;
    font-size: clamp(36px, 6vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.hero-summary,
.compact-hero p,
.detail-one-line {
    max-width: 720px;
    margin: 0 0 26px;
    color: #dcfce7;
    font-size: clamp(17px, 2.2vw, 22px);
    line-height: 1.75;
}

.hero-tags,
.detail-tags,
.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.detail-tags span,
.movie-tags span {
    padding: 5px 10px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 12px;
    font-weight: 700;
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.primary-button,
.ghost-button,
.tile-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
    color: #14532d;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

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

.ghost-button.light {
    color: #ffffff;
}

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

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    aspect-ratio: 4 / 3;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 75px rgba(0, 0, 0, 0.32);
}

.hero-poster img,
.poster-frame img,
.rank-cover img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-controls {
    position: absolute;
    left: 0;
    bottom: 34px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-controls button {
    width: 42px;
    height: 42px;
    border: 0;
    color: #14532d;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    font-size: 26px;
    font-weight: 900;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    background: rgba(255, 255, 255, 0.5);
}

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

.hero-glow {
    position: absolute;
    z-index: 1;
    border-radius: 999px;
    filter: blur(50px);
    opacity: 0.25;
    animation: pulseGlow 3.8s ease-in-out infinite;
}

.hero-glow-one {
    width: 210px;
    height: 210px;
    top: 48px;
    left: 7%;
    background: #ffffff;
}

.hero-glow-two {
    width: 300px;
    height: 300px;
    right: 8%;
    bottom: 28px;
    background: #fde047;
    animation-delay: 1.1s;
}

.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 3;
    width: 100%;
    height: 120px;
}

.section {
    padding: 70px 0;
}

.section-soft {
    background: linear-gradient(90deg, #dcfce7 0%, #f0fdf4 100%);
}

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

.section-head h2 {
    margin: 0;
    color: #1f2937;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 900;
    letter-spacing: -0.03em;
}

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

.section-more {
    color: #16a34a;
    font-weight: 800;
    white-space: nowrap;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.poster-link,
.poster-frame {
    display: block;
}

.poster-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #166534, #22c55e);
}

.poster-frame img {
    transition: transform 0.45s ease;
}

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

.category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #ffffff;
    background: #16a34a;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.35);
}

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

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

.movie-title:hover,
.rank-title:hover,
.info-panel a:hover {
    color: #16a34a;
}

.movie-desc {
    display: -webkit-box;
    min-height: 44px;
    margin: 10px 0 12px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: #64748b;
    font-size: 13px;
}

.movie-meta span {
    padding: 3px 8px;
    border-radius: 999px;
    background: #f1f5f9;
}

.movie-tags {
    margin-top: 12px;
}

.movie-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
}

.movie-actions a:first-child {
    color: #ffffff;
    background: #16a34a;
    border-radius: 999px;
    padding: 8px 13px;
    font-weight: 800;
}

.movie-actions a:last-child {
    color: #16a34a;
    font-weight: 800;
    font-size: 13px;
}

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

.cta-band,
.page-hero,
.detail-hero {
    color: #ffffff;
    background: linear-gradient(110deg, #15803d 0%, #14532d 55%, #052e16 100%);
}

.cta-inner {
    padding: 70px 0;
    text-align: center;
}

.cta-inner h2 {
    margin: 0 0 14px;
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 900;
}

.cta-inner p {
    max-width: 720px;
    margin: 0 auto;
    color: #dcfce7;
    line-height: 1.8;
}

.compact-hero .shell {
    padding: 70px 0;
}

.compact-hero h1 {
    max-width: 860px;
}

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

.category-tile {
    padding: 26px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
}

.category-title {
    display: inline-flex;
    margin-bottom: 10px;
    color: #166534;
    font-size: 23px;
    font-weight: 900;
}

.category-tile p {
    margin: 0 0 16px;
    color: #64748b;
    line-height: 1.75;
}

.category-links {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.category-links a {
    color: #1f2937;
    font-weight: 700;
}

.tile-button {
    color: #ffffff;
    background: #16a34a;
}

.toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px;
    gap: 12px;
    margin-bottom: 26px;
}

.wide-toolbar {
    grid-template-columns: minmax(240px, 1fr) repeat(4, 150px);
}

.toolbar input,
.toolbar select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    background: #ffffff;
    color: #1f2937;
    padding: 0 14px;
    outline: none;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.toolbar input:focus,
.toolbar select:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 52px 120px minmax(0, 1fr) 90px;
    align-items: center;
    gap: 18px;
    padding: 16px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.09);
}

.rank-number {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #16a34a, #14532d);
    border-radius: 999px;
    font-weight: 900;
}

.rank-cover {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    background: #dcfce7;
}

.rank-title {
    color: #111827;
    font-size: 18px;
    font-weight: 900;
}

.rank-main p {
    margin: 7px 0 9px;
    color: #64748b;
    line-height: 1.6;
}

.rank-play {
    justify-self: end;
    color: #ffffff;
    background: #16a34a;
    border-radius: 999px;
    padding: 9px 15px;
    font-weight: 800;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    color: #dcfce7;
    font-weight: 700;
}

.detail-hero .shell {
    padding: 50px 0 58px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 40px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

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

.content-column,
.info-panel,
.text-panel,
.player-card {
    min-width: 0;
}

.player-card,
.text-panel,
.info-panel {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.10);
}

.player-card {
    overflow: hidden;
    margin-bottom: 24px;
}

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

.player-frame video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.36);
    font-size: 18px;
    font-weight: 900;
    transition: opacity 0.2s ease;
}

.player-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.play-circle {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #14532d;
    background: #ffffff;
    border-radius: 999px;
    font-size: 34px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.text-panel {
    padding: 28px;
}

.text-panel h2,
.info-panel h2 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 24px;
    font-weight: 900;
}

.text-panel p {
    margin: 0 0 24px;
    color: #334155;
    line-height: 1.9;
}

.info-panel {
    position: sticky;
    top: 92px;
    padding: 24px;
}

.info-panel dl {
    display: grid;
    gap: 14px;
    margin: 0;
}

.info-panel dt {
    color: #64748b;
    font-size: 13px;
}

.info-panel dd {
    margin: -8px 0 0;
    color: #1f2937;
    font-weight: 800;
}

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

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 30px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-inner p {
    max-width: 560px;
    color: #9ca3af;
    line-height: 1.7;
}

.footer-brand {
    color: #ffffff;
    font-size: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-content: flex-start;
}

.footer-links a {
    color: #d1fae5;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 8px 13px;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 30px;
    border-top: 1px solid #374151;
    text-align: center;
    color: #9ca3af;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.22;
    }
    50% {
        transform: scale(1.12);
        opacity: 0.34;
    }
}

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

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

    .mobile-menu-button {
        display: inline-flex;
    }

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

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

@media (max-width: 860px) {
    .main-nav {
        gap: 12px;
    }

    .brand-text {
        display: none;
    }

    .nav-search {
        display: none;
    }

    .hero-inner {
        min-height: auto;
    }

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

    .hero-slide {
        padding: 44px 0 118px;
        gap: 28px;
    }

    .hero-controls {
        left: 0;
        bottom: 50px;
    }

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

    .footer-inner {
        flex-direction: column;
    }

    .info-panel {
        position: static;
    }
}

@media (max-width: 620px) {
    .shell,
    .main-nav,
    .mobile-nav,
    .footer-inner,
    .footer-bottom,
    .hero-inner {
        width: min(100% - 24px, 1180px);
    }

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

    .section {
        padding: 48px 0;
    }

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

    .toolbar,
    .wide-toolbar {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 42px 86px minmax(0, 1fr);
        align-items: start;
    }

    .rank-play {
        grid-column: 2 / 4;
        justify-self: start;
    }

    .compact-hero .shell,
    .detail-hero .shell {
        padding: 48px 0;
    }
}
