* {
    box-sizing: border-box;
}

:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --orange-600: #ea580c;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #ffffff;
    --black: #000000;
    --shadow-md: 0 12px 30px rgba(17, 24, 39, 0.12);
    --shadow-xl: 0 24px 60px rgba(17, 24, 39, 0.20);
    --radius-lg: 18px;
    --radius-xl: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background: var(--gray-50);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 8px 24px rgba(180, 83, 9, 0.25);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}

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

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

.logo-mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    color: var(--amber-600);
    background: var(--white);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    font-weight: 600;
}

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

.desktop-nav a:hover,
.mobile-nav a:hover {
    opacity: 1;
    color: var(--amber-100);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 2px;
    background: var(--white);
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    background: var(--amber-700);
}

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

.hero-carousel {
    position: relative;
    height: 560px;
    overflow: hidden;
    background: var(--gray-900);
}

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

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.90), rgba(0, 0, 0, 0.45) 52%, rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 88px;
    transform: translateX(-50%);
    color: var(--white);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 12px;
    border-radius: 8px;
    color: var(--white);
    background: var(--amber-600);
    font-size: 14px;
    font-weight: 700;
}

.hero-content h1 {
    max-width: 760px;
    margin: 18px 0 14px;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 22px;
    color: #e5e7eb;
    font-size: 19px;
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.hero-tags span,
.tag-list a {
    padding: 6px 11px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    font-size: 13px;
}

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

.primary-button,
.ghost-button,
.text-link,
.ranking-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: var(--white);
    background: var(--amber-600);
    box-shadow: 0 12px 26px rgba(217, 119, 6, 0.35);
}

.primary-button:hover {
    transform: translateY(-2px);
    background: var(--amber-700);
}

.ghost-button {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.48);
    font-size: 40px;
    line-height: 1;
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
}

.hero-arrow-left {
    left: 20px;
}

.hero-arrow-right {
    right: 20px;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--amber-600);
}

.hero-search {
    position: absolute;
    right: max(16px, calc((100vw - 1180px) / 2));
    bottom: 86px;
    z-index: 4;
    display: flex;
    width: min(430px, calc(100% - 32px));
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 16px;
    background: rgba(17, 24, 39, 0.52);
    backdrop-filter: blur(14px);
}

.hero-search input,
.footer-search input,
.search-panel input,
.filter-panel input,
.search-panel select,
.filter-panel select {
    min-width: 0;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    outline: none;
    background: var(--white);
}

.hero-search input {
    flex: 1;
    padding: 0 14px;
    border: 0;
}

.hero-search button,
.footer-search button,
.search-panel button {
    border: 0;
    border-radius: 12px;
    color: var(--white);
    background: var(--amber-600);
    font-weight: 800;
    cursor: pointer;
}

.hero-search button {
    padding: 0 18px;
}

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

.section-white {
    background: var(--white);
}

.category-showcase {
    background: linear-gradient(135deg, var(--amber-50), #fff7ed);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.2;
}

.section-heading span {
    flex: 1;
    height: 4px;
    min-width: 60px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--amber-600), rgba(217, 119, 6, 0));
    text-indent: -9999px;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-200), var(--amber-100));
}

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

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

.cover-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: rgba(0, 0, 0, 0.42);
    transition: opacity 0.25s ease;
}

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

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: var(--amber-600);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.category-badge,
.duration-badge {
    position: absolute;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 8px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
}

.category-badge {
    left: 12px;
    top: 12px;
    background: var(--amber-600);
}

.duration-badge {
    right: 12px;
    bottom: 12px;
    background: rgba(0, 0, 0, 0.72);
}

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

.movie-card-body h3 {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--gray-900);
    font-size: 18px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card-body h3 a:hover {
    color: var(--amber-600);
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--gray-600);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card-compact .movie-card-body h3 {
    min-height: 44px;
    font-size: 16px;
}

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--gray-500);
    font-size: 13px;
}

.movie-meta-line span {
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--gray-100);
}

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

.popular-row {
    display: flex;
    overflow: hidden;
    min-height: 150px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.popular-row:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.popular-row img {
    width: 190px;
    object-fit: cover;
}

.popular-info {
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 16px;
}

.popular-info strong {
    font-size: 18px;
}

.popular-info em {
    display: -webkit-box;
    overflow: hidden;
    color: var(--gray-600);
    font-style: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.popular-info small {
    color: var(--gray-500);
}

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

.category-tile,
.category-overview-card {
    position: relative;
    display: grid;
    min-height: 220px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    color: var(--white);
    background: var(--gray-900);
    box-shadow: var(--shadow-md);
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.category-tile img,
.category-overview-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-tile-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.28));
}

.category-count {
    position: absolute;
    right: 16px;
    top: 16px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--amber-600);
    font-size: 13px;
    font-weight: 800;
}

.category-tile strong,
.category-tile em,
.category-overview-card div {
    position: relative;
    z-index: 2;
    align-self: end;
    padding: 22px;
}

.category-tile strong {
    padding-bottom: 54px;
    font-size: 24px;
}

.category-tile em {
    position: absolute;
    left: 0;
    bottom: 0;
    color: #e5e7eb;
    font-style: normal;
    font-size: 14px;
}

.category-overview-card div {
    display: grid;
    gap: 8px;
}

.category-overview-card strong {
    font-size: 26px;
}

.category-overview-card em {
    color: #e5e7eb;
    font-style: normal;
}

.category-overview-card small {
    color: var(--amber-100);
    font-weight: 800;
}

.entry-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px;
    border-radius: var(--radius-xl);
    color: var(--white);
    background: linear-gradient(90deg, var(--gray-900), var(--amber-700));
    box-shadow: var(--shadow-xl);
}

.entry-panel h2 {
    margin: 0 0 8px;
    font-size: 32px;
}

.entry-panel p {
    max-width: 680px;
    margin: 0;
    color: #f3f4f6;
}

.page-hero {
    padding: 76px 0;
    color: var(--white);
    background: radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.55), transparent 34%), linear-gradient(135deg, var(--gray-900), #3b2306);
}

.page-hero span {
    color: var(--amber-100);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-hero h1 {
    margin: 12px 0;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.12;
}

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

.filter-panel,
.search-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
    gap: 12px;
    margin-bottom: 18px;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.filter-panel input,
.filter-panel select,
.search-panel input,
.search-panel select {
    min-height: 44px;
    padding: 0 14px;
}

.search-panel button {
    min-height: 44px;
    padding: 0 18px;
}

.result-count {
    margin: 0 0 22px;
    color: var(--gray-600);
    font-weight: 700;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 70px 170px minmax(0, 1fr) 92px;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.ranking-rank {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 16px;
    color: var(--white);
    background: var(--amber-600);
    font-weight: 900;
}

.ranking-cover {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    background: var(--gray-200);
}

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

.ranking-body h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.ranking-body p {
    display: -webkit-box;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--gray-600);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ranking-action {
    color: var(--white);
    background: var(--amber-600);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.pagination-top {
    margin: 0 0 28px;
}

.pagination a,
.pagination span,
.text-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--amber-700);
    background: var(--amber-50);
    font-weight: 800;
}

.section-more {
    margin-top: 28px;
    text-align: center;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--gray-900);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px);
    transform: scale(1.08);
    opacity: 0.44;
}

.detail-backdrop span {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 1), rgba(17, 24, 39, 0.55));
}

.detail-hero-inner {
    position: relative;
    padding: 34px 0 56px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    color: #e5e7eb;
}

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

.detail-hero-grid {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
}

.detail-poster {
    width: 100%;
    aspect-ratio: 3 / 4;
    border: 4px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-xl);
    object-fit: cover;
    box-shadow: var(--shadow-xl);
}

.detail-info h1 {
    margin: 18px 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
}

.detail-info p {
    max-width: 780px;
    color: #e5e7eb;
    font-size: 19px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.detail-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

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

.player-card,
.article-card,
.side-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.video-shell {
    position: relative;
    overflow: hidden;
    background: var(--black);
}

.video-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--black);
}

.big-play-button {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle, rgba(217, 119, 6, 0.16), rgba(0, 0, 0, 0.45));
    cursor: pointer;
}

.big-play-button span {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    border-radius: 999px;
    background: var(--amber-600);
    box-shadow: 0 20px 40px rgba(217, 119, 6, 0.4);
    font-size: 34px;
}

.big-play-button strong {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.42);
}

.big-play-button.is-hidden {
    display: none;
}

.player-note {
    margin: 0;
    padding: 14px 18px;
    color: var(--gray-600);
    background: var(--gray-50);
    font-size: 14px;
}

.article-card,
.side-card {
    padding: 24px;
    margin-top: 24px;
}

.article-card h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.article-card p {
    margin: 0;
    color: var(--gray-700);
    font-size: 17px;
}

.side-card {
    margin-top: 0;
    position: sticky;
    top: 92px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 0;
}

.side-card dt {
    color: var(--gray-500);
}

.side-card dd {
    margin: 0;
    font-weight: 700;
}

.side-card a {
    color: var(--amber-700);
}

.site-footer {
    margin-top: 64px;
    color: #d1d5db;
    background: var(--gray-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 30px;
    padding: 48px 0;
}

.footer-logo {
    margin-bottom: 14px;
    color: var(--white);
    font-size: 20px;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: var(--white);
}

.site-footer p {
    margin: 0;
    color: #9ca3af;
}

.site-footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a:hover {
    color: var(--amber-500);
}

.footer-search {
    display: flex;
    gap: 8px;
}

.footer-search input {
    flex: 1;
    min-height: 40px;
    padding: 0 12px;
}

.footer-search button {
    padding: 0 14px;
}

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

@media (max-width: 1024px) {
    .movie-grid-featured,
    .movie-grid-latest,
    .movie-grid-all,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .popular-grid,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .side-card {
        position: static;
    }

    .hero-search {
        left: 16px;
        right: 16px;
        bottom: 24px;
    }

    .hero-content {
        bottom: 116px;
    }
}

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

    .mobile-menu-button {
        display: block;
    }

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

    .hero-carousel {
        height: 620px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-content {
        bottom: 150px;
    }

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

    .hero-search {
        flex-direction: column;
    }

    .hero-search input,
    .hero-search button {
        min-height: 42px;
    }

    .movie-grid-featured,
    .movie-grid-latest,
    .movie-grid-all,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .popular-row,
    .entry-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .popular-row img {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .filter-panel,
    .search-panel {
        grid-template-columns: 1fr;
    }

    .ranking-item {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .ranking-cover,
    .ranking-action {
        grid-column: 1 / -1;
    }

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

    .detail-poster {
        max-width: 260px;
    }

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