/*
Theme Name: Movie Reviews
Theme URI: https://example.com/movie-reviews
Author: Custom Theme
Author URI: https://example.com
Description: A modern dark movie review theme inspired by Webflow Movies template. Features Custom Post Type for movies, ratings, genres, and a clean cinematic UI.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: movie-reviews
Tags: movie, review, dark, entertainment, custom-post-type, blog
*/

/* =====================================================
   CSS Variables
===================================================== */
:root {
  --bg-dark: #081b27;
  --bg-card: #1a273b;
  --bg-header: #0b1524;
  --accent: #f0b429;
  --text: #ffffff;
  --text-muted: #94a3b8;
  --text-soft: #7b8ba3;
  --border: rgba(255, 255, 255, 0.06);
  --radius: 10px;
  --font-heading: 'Nunito', sans-serif;
  --font-body: 'Nunito', sans-serif;
}

/* =====================================================
   Reset & Base
===================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

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

ul, ol {
  list-style: none;
}

button,
input,
textarea {
  font-family: inherit;
}

/* =====================================================
   Typography
===================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

/* =====================================================
   Layout
===================================================== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
  flex: 1;
}

/* =====================================================
   Header
===================================================== */
.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo-icon {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
  font-size: 12px;
  flex-shrink: 0;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.site-title span {
  font-weight: 400;
  color: var(--text-muted);
}

/* Navigation */
.main-navigation ul {
  display: flex;
  gap: 36px;
  align-items: center;
}

.main-navigation a {
  font-size: 15px;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 6px;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: var(--text);
}

.main-navigation .current-menu-item > a::after,
.main-navigation .current_page_item > a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

/* =====================================================
   Highlights Section
===================================================== */
.section-highlights {
  padding: 70px 0 80px;
}

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

.section-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 16px;
}

/* Filter tabs */
.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: 50px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #1e2d45;
  color: var(--text-muted);
}

.filter-btn:hover {
  background: #2a3b55;
  color: var(--text);
}

.filter-btn.active {
  background: #fff;
  color: var(--bg-dark);
}

/* =====================================================
   Movie Grid & Cards
===================================================== */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.movie-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
}

.poster-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--bg-card);
  margin-bottom: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

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

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

.rating-badge {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 42px;
  height: 28px;
  padding: 0 10px;
  background: #f0b429;
  color: #0b1524;
  font-weight: 800;
  font-size: 13px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.movie-info {
  padding: 0 2px;
}

.movie-stars {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.movie-stars .empty {
  color: #3d4f6a;
}

.movie-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.movie-title a:hover {
  color: var(--accent);
}

.movie-genre {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-soft);
}

.movie-genre svg {
  width: 14px;
  height: 14px;
  opacity: 0.8;
  flex-shrink: 0;
}

/* =====================================================
   Hero / Featured
===================================================== */
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  min-height: calc(100vh - 72px);
  background: var(--bg-dark);
}

.hero-featured {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(11, 21, 36, 0.9), rgba(11, 21, 36, 0.4));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.hero-rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--accent);
  color: var(--bg-dark);
  font-weight: 700;
  font-size: 20px;
  border-radius: 50%;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.25s ease;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.btn:hover {
  background: var(--accent);
  color: var(--bg-dark);
  border-color: var(--accent);
}

.hero-side {
  display: grid;
  grid-template-rows: 1.2fr 1fr;
  gap: 12px;
  padding: 20px 20px 20px 0;
}

.hero-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.hero-card:hover img {
  transform: scale(1.05);
}

.hero-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 20, 35, 0.95) 25%, transparent 70%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-bottom-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* =====================================================
   Single Movie
===================================================== */
.single-movie {
  padding: 60px 0 100px;
}

.single-movie-header {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.single-poster {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.single-poster img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: contain;
}

.single-info .rating-badge {
  position: static;
  display: inline-flex;
  margin-bottom: 16px;
}

.single-title {
  font-size: 42px;
  margin-bottom: 16px;
}

.single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 15px;
}

.single-content {
  font-size: 17px;
  line-height: 1.8;
  color: #cbd5e1;
}

.single-content p {
  margin-bottom: 1.2em;
}

/* TV Series status badge */
.tv-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: #1e2d45;
  color: var(--text-muted);
}

.tv-status--ongoing {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.tv-status--ended {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

.tv-status--cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.tv-status--upcoming {
  background: rgba(240, 180, 41, 0.15);
  color: var(--accent);
}

/* =====================================================
   Archive / All Reviews
===================================================== */
.page-header {
  padding: 60px 0 40px;
  text-align: center;
}

.page-title {
  font-size: 42px;
  margin-bottom: 12px;
}

.page-description {
  color: var(--text-muted);
  font-size: 16px;
}

/* =====================================================
   Footer
===================================================== */
.site-footer {
  background: #080f1a;
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
  margin-top: auto;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 50px;
}

.footer-widget-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

.footer-widget a {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-widget a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-social a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bottom-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-soft);
}

.bottom-footer a {
  color: var(--text-muted);
}

.bottom-footer a:hover {
  color: var(--accent);
}

/* =====================================================
   Pagination
===================================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
  padding-bottom: 40px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  background: #1e2d45;
  color: var(--text-muted);
  font-size: 14px;
}

.pagination a:hover,
.pagination .current {
  background: var(--accent);
  color: var(--bg-dark);
}

/* =====================================================
   Search Form
===================================================== */
.search-form {
  display: flex;
  max-width: 400px;
  margin: 0 auto;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #1e2d45;
  border-radius: 6px 0 0 6px;
  background: #1a273b;
  color: var(--text);
  font-size: 15px;
  outline: none;
}

.search-form input[type="search"]:focus {
  border-color: var(--accent);
}

.search-form button {
  padding: 12px 20px;
  background: var(--accent);
  color: var(--bg-dark);
  border: none;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  font-weight: 600;
}

/* =====================================================
   No Results / Empty
===================================================== */
.no-results {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.no-results h2 {
  margin-bottom: 12px;
  color: var(--text);
}

/* =====================================================
   Responsive
===================================================== */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-featured {
    min-height: 60vh;
    padding: 60px 30px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-side {
    padding: 0 20px 20px;
  }

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

  .single-movie-header {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .footer-widgets {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .menu-toggle {
    display: block;
  }

  .main-navigation {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    padding: 20px;
  }

  .main-navigation.active {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 16px;
  }

  .section-title {
    font-size: 32px;
  }

  .movie-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

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

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

/* =====================================================
   Layout with Sidebar
===================================================== */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
  padding-top: 40px;
  padding-bottom: 60px;
}

.content-area {
  min-width: 0;
}

/* =====================================================
   Sidebar
===================================================== */
.sidebar-right {
  position: sticky;
  top: 90px;
}

.sidebar-widget {
  background: #121e30;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.06);
}

.sidebar-widget-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.filter-list li {
  margin-bottom: 6px;
}

.filter-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-muted);
  transition: all 0.2s;
}

.filter-list a:hover {
  background: #1e2d45;
  color: var(--text);
}

.filter-list .count {
  font-size: 12px;
  color: var(--text-soft);
  background: #1a273b;
  padding: 2px 8px;
  border-radius: 10px;
}

/* Sidebar search */
.sidebar-search {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-search .search-field {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #1e2d45;
  border-radius: 6px;
  background: #0b1524;
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.sidebar-search .search-field:focus {
  border-color: var(--accent);
}

.sidebar-search .search-submit {
  padding: 10px;
  background: var(--accent);
  color: var(--bg-dark);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

.sidebar-search .search-submit:hover {
  opacity: 0.9;
}

/* Recent list */
.recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-item {
  margin-bottom: 12px;
}

.recent-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.recent-item a:hover {
  color: var(--text);
}

.recent-thumb {
  width: 48px;
  height: 64px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

.recent-title {
  flex: 1;
  line-height: 1.3;
}

.recent-rating {
  background: var(--accent);
  color: var(--bg-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

/* Episode list on series page */
.episode-items {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
}

.episode-item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.episode-item:last-child {
  border-bottom: none;
}

.episode-item a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  color: var(--text-muted);
  transition: background 0.2s;
}

.episode-item a:hover {
  background: #1a273b;
  color: var(--text);
}

.ep-code {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  min-width: 60px;
}

.ep-title {
  flex: 1;
  font-size: 15px;
}

.ep-rating {
  font-size: 13px;
  background: #1e2d45;
  padding: 2px 10px;
  border-radius: 10px;
}

.episode-label {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.parent-series {
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 15px;
}

.parent-series a {
  color: var(--accent);
}

.parent-series a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar-right {
    position: static;
    order: 2;
  }
}

/* Watch button */
.btn-watch {
  background: var(--accent) !important;
  color: var(--bg-dark) !important;
  border-color: var(--accent) !important;
  font-weight: 700;
  padding: 14px 32px;
  font-size: 15px;
}

.btn-watch:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Homepage modules Genre / Country */
.home-modules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.home-module {
  background: #121e30;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.06);
}

.home-module-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.filter-list--chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.filter-list--chips li {
  margin: 0;
}

.filter-list--chips a {
  display: inline-block;
  padding: 8px 16px;
  background: #1e2d45;
  border-radius: 50px;
  font-size: 13px;
  color: var(--text-muted);
  transition: all 0.2s;
}

.filter-list--chips a:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

.module-hint {
  color: var(--text-soft);
  font-size: 13px;
}

/* Date widget */
.date-widget-box {
  display: flex;
  align-items: center;
  gap: 16px;
}

.date-day {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}

.date-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.date-weekday {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-transform: capitalize;
}

.date-month-year {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: capitalize;
}

/* Top rated rank */
.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #1e2d45;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.recent-date {
  font-size: 11px;
  color: var(--text-soft);
  white-space: nowrap;
}

@media (max-width: 700px) {
  .home-modules-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   Episode Watch Page + Player
===================================================== */
.episode-watch-page {
  padding-bottom: 60px;
}

.ep-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 24px 0 16px;
  font-size: 13px;
  color: var(--text-soft);
}

.ep-breadcrumb a {
  color: var(--text-muted);
}

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

.player-section {
  margin-bottom: 32px;
}

.player-wrap {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.player-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

.player-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #121e30;
  color: var(--text-muted);
  padding: 24px;
  text-align: center;
}

.ep-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.ep-nav-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: #1e2d45;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
}

.ep-nav-btn:hover:not(.disabled) {
  background: var(--accent);
  color: var(--bg-dark);
}

.ep-nav-btn.disabled {
  opacity: 0.4;
  cursor: default;
}

.ep-nav-list {
  background: transparent;
  border: 1px solid #1e2d45;
}

.episode-header {
  margin-bottom: 24px;
}

.rating-inline {
  position: static !important;
  display: inline-flex !important;
  width: 36px !important;
  height: 36px !important;
  font-size: 13px !important;
  margin: 0 !important;
}

.episode-meta-full {
  margin-top: 12px;
}

.episode-item.is-current a {
  background: #1e2d45;
  color: var(--text);
  border-left: 3px solid var(--accent);
}

.episode-detail-layout {
  padding-top: 10px;
}

/* =====================================================
   Player Shell (multi-server)
===================================================== */
.player-shell {
  background: linear-gradient(180deg, #0d1524 0%, #0a101c 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}

.player-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.player-title-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.player-ep-code {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.player-ep-name {
  font-size: 16px;
  color: #fff;
}

.player-series-name {
  font-size: 13px;
  color: var(--text-soft);
}

.player-rating {
  flex-shrink: 0;
  background: var(--accent);
  color: #0b1524;
  font-weight: 800;
  font-size: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-shell .player-wrap {
  border-radius: 0;
  box-shadow: none;
  background: #000;
}

.player-stage {
  position: absolute;
  inset: 0;
}

.player-stage .player-embed,
.player-stage .player-video,
.player-stage .player-empty {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.server-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: rgba(0,0,0,0.35);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.server-label {
  font-size: 13px;
  color: var(--text-soft);
  margin-right: 4px;
}

.server-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: #152238;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.server-btn:hover {
  border-color: var(--accent);
  color: #fff;
}

.server-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b1524;
  font-weight: 700;
}

.player-shell .ep-nav {
  padding: 12px 16px 16px;
  margin-top: 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* =====================================================
   EPISODE PAGE — Premium redesign
===================================================== */

.episode-watch-page {
  padding: 0 0 80px;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(240, 180, 41, 0.07), transparent 55%),
    var(--bg-dark);
}

.episode-watch-page > .container {
  max-width: 1180px;
}

/* Breadcrumb */
.ep-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 28px 0 18px;
  font-size: 13px;
  color: rgba(148, 163, 184, 0.7);
}

.ep-breadcrumb a {
  color: rgba(148, 163, 184, 0.9);
  transition: color 0.2s;
}

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

.ep-breadcrumb span:last-child {
  color: #e2e8f0;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Player shell */
.player-shell {
  background: linear-gradient(165deg, #121a2b 0%, #0a101c 45%, #080e18 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow:
    0 0 0 1px rgba(240, 180, 41, 0.04),
    0 28px 70px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.player-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.player-title-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  min-width: 0;
}

.player-ep-code {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(240, 180, 41, 0.15);
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.player-ep-name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.player-series-name {
  font-size: 13px;
  color: #64748b;
}

.player-series-name::before {
  content: "·";
  margin-right: 10px;
  color: #334155;
}

.player-rating {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #f5c84a, #e0a820);
  color: #0b1524;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(240, 180, 41, 0.35);
}

/* 16:9 stage */
.player-shell .player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.player-stage {
  position: absolute;
  inset: 0;
}

.player-stage .player-embed,
.player-stage .player-video,
.player-stage .player-empty {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player-video {
  background: #000;
  object-fit: contain;
}

.player-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(30, 45, 69, 0.8), #0a101c);
  color: #94a3b8;
  padding: 32px;
  text-align: center;
  font-size: 15px;
}

.player-empty p {
  max-width: 360px;
  line-height: 1.6;
}

/* Server tabs */
.server-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.server-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-right: 6px;
}

.server-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(30, 45, 69, 0.7);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.server-btn:hover {
  border-color: rgba(240, 180, 41, 0.5);
  color: #fff;
  background: rgba(30, 45, 69, 1);
  transform: translateY(-1px);
}

.server-btn.is-active {
  background: linear-gradient(135deg, #f5c84a, #e0a820);
  border-color: transparent;
  color: #0b1524;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(240, 180, 41, 0.3);
}

/* Prev / next under player */
.player-shell .ep-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px 16px;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(0, 0, 0, 0.2);
}

.ep-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: 10px;
  background: rgba(30, 45, 69, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  transition: all 0.2s ease;
}

.ep-nav-btn:hover:not(.disabled) {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b1524;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(240, 180, 41, 0.25);
}

.ep-nav-btn.disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.ep-nav-list {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

.ep-nav-list:hover:not(.disabled) {
  border-style: solid;
}

/* Episode article below */
.episode-detail-layout {
  padding-top: 8px;
}

.episode-article {
  background: rgba(18, 26, 43, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 28px 28px 32px;
}

.episode-header {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.episode-header .single-title {
  font-size: 28px;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.episode-header .parent-series {
  margin-bottom: 14px;
  font-size: 14px;
  color: #94a3b8;
}

.episode-header .parent-series a {
  color: var(--accent);
  font-weight: 600;
}

.episode-header .parent-series a:hover {
  text-decoration: underline;
}

.episode-header .single-meta {
  gap: 14px;
  font-size: 14px;
}

.episode-header .episode-label {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(240, 180, 41, 0.12);
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.4px;
}

.episode-content {
  font-size: 16px;
  line-height: 1.75;
  color: #cbd5e1;
}

.episode-content p {
  margin-bottom: 1em;
}

/* Episode list cards */
.episode-watch-page .episodes-list .section-title {
  font-size: 20px !important;
  margin-bottom: 14px !important;
}

.episode-watch-page .episode-items {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(10, 16, 28, 0.5);
}

.episode-watch-page .episode-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.episode-watch-page .episode-item:last-child {
  border-bottom: none;
}

.episode-watch-page .episode-item a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  color: #94a3b8;
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
}

.episode-watch-page .episode-item a:hover {
  background: rgba(30, 45, 69, 0.7);
  color: #fff;
  padding-left: 22px;
}

.episode-watch-page .episode-item .ep-code {
  min-width: 58px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--accent);
  background: rgba(240, 180, 41, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  text-align: center;
}

.episode-watch-page .episode-item .ep-title {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

.episode-watch-page .episode-item.is-current a {
  background: linear-gradient(90deg, rgba(240, 180, 41, 0.12), transparent 70%);
  color: #fff;
  border-left: 3px solid var(--accent);
  padding-left: 15px;
}

.episode-watch-page .episode-item.is-current .ep-code {
  background: var(--accent);
  color: #0b1524;
}

/* Responsive */
@media (max-width: 768px) {
  .player-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .player-rating {
    position: absolute;
    top: 12px;
    right: 12px;
  }

  .player-shell {
    position: relative;
    border-radius: 14px;
  }

  .player-ep-name {
    font-size: 15px;
  }

  .server-switcher {
    padding: 12px;
  }

  .server-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .player-shell .ep-nav {
    flex-direction: column;
  }

  .ep-nav-btn {
    width: 100%;
    justify-content: center;
  }

  .episode-article {
    padding: 20px 16px 24px;
    border-radius: 14px;
  }

  .episode-header .single-title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .ep-breadcrumb {
    padding: 16px 0 12px;
    font-size: 12px;
  }

  .player-shell {
    border-radius: 12px;
    margin-left: -4px;
    margin-right: -4px;
  }
}

/* =====================================================
   JW Player – dark gold skin fit
===================================================== */
.mr-jwplayer-box,
#mr-jwplayer {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.mr-jwplayer-box .jwplayer,
#mr-jwplayer.jwplayer,
.jwplayer.jw-flag-aspect-mode {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  inset: 0 !important;
}

.player-stage .jwplayer {
  border-radius: 0;
}

/* Control bar polish */
.jwplayer .jw-button-color {
  color: #fff !important;
}

.jwplayer .jw-button-color:hover,
.jwplayer .jw-button-color:focus {
  color: #f0b429 !important;
}

.jwplayer .jw-progress {
  background-color: #f0b429 !important;
}

.jwplayer .jw-knob {
  background-color: #f0b429 !important;
}

.jwplayer .jw-text-live {
  color: #f0b429 !important;
}

.jwplayer.jw-state-idle .jw-display-icon-container {
  border-radius: 50%;
  background: rgba(240, 180, 41, 0.95) !important;
}

.jwplayer.jw-state-idle .jw-display-icon-container .jw-svg-icon {
  fill: #0b1524 !important;
}

.jwplayer .jw-controlbar {
  background: linear-gradient(transparent, rgba(11, 21, 36, 0.92)) !important;
}

.jwplayer .jw-tooltip {
  background: #1e2d45 !important;
  color: #fff !important;
}

/* =====================================================
   CINEMATIC SINGLE (Movie / TV Series) – match Webflow
===================================================== */
.single-cinematic {
  position: relative;
  padding-bottom: 80px;
}

.cinematic-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  overflow: hidden;
}

.cinematic-hero__bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center top;
  filter: blur(8px) saturate(1.1);
  transform: scale(1.08);
  z-index: 0;
}

.cinematic-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(11, 21, 36, 0.35) 0%, rgba(11, 21, 36, 0.85) 70%),
    linear-gradient(180deg, rgba(11, 21, 36, 0.55) 0%, rgba(11, 21, 36, 0.92) 55%, var(--bg-dark) 100%);
}

.cinematic-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1100px;
}

.cinematic-hero__poster-wrap {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.cinematic-hero__poster {
  display: block;
  width: 100%;
  border-radius: 12px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.cinematic-rating {
  position: absolute;
  top: -14px;
  left: -14px;
  z-index: 3;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f0b429;
  color: #0b1524;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(240, 180, 41, 0.4);
}

.cinematic-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

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

.cinematic-stars {
  display: inline-flex;
  gap: 2px;
  color: #f0b429;
}

.cinematic-genre,
.cinematic-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cinematic-genre svg,
.cinematic-date svg {
  opacity: 0.8;
}

.cinematic-excerpt {
  font-size: 16px;
  line-height: 1.7;
  color: #cbd5e1;
  margin: 0 0 24px;
  max-width: 540px;
}

.cinematic-facts {
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cinematic-fact {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  font-size: 15px;
}

.cinematic-fact dt {
  color: #fff;
  font-weight: 600;
  margin: 0;
}

.cinematic-fact dd {
  color: #94a3b8;
  margin: 0;
}

.cinematic-actions {
  margin-top: 8px;
}

.cinematic-body {
  position: relative;
  z-index: 2;
  margin-top: -20px;
  max-width: 800px;
}

.cinematic-article {
  padding: 10px 0 40px;
}

.cinematic-content {
  font-size: 16px;
  line-height: 1.8;
  color: #7a8ba3;
}

.cinematic-content p {
  margin-bottom: 1.25em;
}

.cinematic-content h2,
.cinematic-content h3 {
  color: #e2e8f0;
  margin: 1.5em 0 0.6em;
  font-family: var(--font-heading);
}

.cinematic-episodes {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cinematic-episodes .section-title {
  font-size: 22px;
  margin-bottom: 16px;
}

/* Mobile – match screenshot: centered poster + text */
@media (max-width: 900px) {
  .cinematic-hero {
    min-height: auto;
    padding: 90px 0 40px;
    text-align: center;
  }

  .cinematic-hero__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    justify-items: center;
  }

  .cinematic-hero__poster-wrap {
    max-width: 220px;
  }

  .cinematic-rating {
    top: -12px;
    left: -12px;
    width: 48px;
    height: 48px;
    font-size: 16px;
  }

  .cinematic-title {
    font-size: 28px;
  }

  .cinematic-meta {
    justify-content: center;
  }

  .cinematic-excerpt {
    margin-left: auto;
    margin-right: auto;
    font-size: 15px;
  }

  .cinematic-facts {
    align-items: center;
  }

  .cinematic-fact {
    grid-template-columns: auto auto;
    justify-content: center;
  }

  .cinematic-actions {
    display: flex;
    justify-content: center;
  }

  .cinematic-body {
    margin-top: 0;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .cinematic-hero__poster-wrap {
    max-width: 200px;
  }

  .cinematic-title {
    font-size: 24px;
  }
}

/* Episode page: keep player, cinematic info below */
.episode-watch-page .episode-article {
  background: transparent;
  border: none;
  padding: 0;
}

.episode-watch-page .cinematic-mini-hero {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 28px;
  padding: 24px;
  background: rgba(18, 26, 43, 0.7);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 600px) {
  .episode-watch-page .cinematic-mini-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* =====================================================
   Related reviews – "Also check out these reviews"
===================================================== */
.related-reviews {
  padding: 60px 0 80px;
  margin-top: 20px;
  border-top: none;
}

.related-reviews__title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin: 0 0 40px;
  letter-spacing: -0.3px;
}

.related-reviews__grid {
  max-width: 1100px;
  margin: 0 auto;
}

.related-reviews .movie-card {
  text-align: left;
}

.related-reviews .movie-title {
  font-size: 16px;
}

.related-reviews .movie-title a {
  color: #fff;
}

.related-reviews .movie-title a:hover {
  color: var(--accent);
}

.related-reviews .poster-wrap {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}

.related-reviews .rating-badge {
  top: 10px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  min-width: 42px;
  height: 28px;
  border-radius: 999px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .related-reviews {
    padding: 40px 0 60px;
  }

  .related-reviews__title {
    margin-bottom: 28px;
  }
}

/* =====================================================
   HOME PORTAL – Phim bộ mới + sidebar hot
===================================================== */
.home-portal {
  padding: 28px 0 70px;
}

.home-portal__layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

.portal-section {
  margin-bottom: 40px;
}

.portal-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.portal-section__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #f0b429;
  margin: 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.portal-section__more {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}

.portal-section__more:hover {
  color: var(--accent);
}

/* Tabs pill */
.portal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-tab {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.portal-tab:hover {
  border-color: rgba(240, 180, 41, 0.45);
  color: #e2e8f0;
}

.portal-tab.is-active {
  background: #fff;
  border-color: #fff;
  color: #0b1524;
  font-weight: 700;
}

/* 4-col grid */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 16px;
  transition: opacity 0.2s;
}

.portal-grid .movie-card .movie-title {
  font-size: 14px;
  line-height: 1.35;
}

.portal-grid .movie-card .poster-wrap {
  border-radius: 8px;
  margin-bottom: 10px;
}

.portal-grid .rating-badge {
  top: 8px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  min-width: 38px;
  height: 26px;
  border-radius: 999px;
  font-size: 12px;
}

.portal-empty {
  grid-column: 1 / -1;
  color: #64748b;
  font-size: 14px;
  padding: 20px 0;
}

/* HOT sidebar boxes */
.hot-box {
  background: rgba(15, 23, 40, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 14px 10px;
  margin-bottom: 20px;
}

.hot-box__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #f0b429;
  margin: 0 0 14px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.hot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}

.hot-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hot-item:last-child {
  border-bottom: none;
}

.hot-item__link {
  display: grid;
  grid-template-columns: 22px 48px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 4px;
  color: inherit;
  transition: background 0.15s;
  border-radius: 8px;
}

.hot-item__link:hover {
  background: rgba(30, 45, 69, 0.6);
}

.hot-item__rank {
  font-size: 14px;
  font-weight: 800;
  color: #64748b;
  text-align: center;
}

.hot-item:nth-child(1) .hot-item__rank,
.hot-item:nth-child(2) .hot-item__rank,
.hot-item:nth-child(3) .hot-item__rank {
  color: #f0b429;
}

.hot-item__thumb {
  width: 48px;
  height: 68px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #1a273b;
}

.hot-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hot-item__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hot-item__name {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hot-item__stars {
  font-size: 11px;
  color: #f0b429;
  letter-spacing: 1px;
}

.hot-item__score {
  font-size: 12px;
  font-weight: 700;
  color: #f0b429;
  background: rgba(240, 180, 41, 0.12);
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.hot-item--empty {
  color: #64748b;
  font-size: 13px;
  padding: 12px 4px;
}

.home-portal__widgets {
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 1100px) {
  .portal-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .home-portal__layout {
    grid-template-columns: 1fr;
  }

  .home-portal__side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .home-portal__widgets {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .portal-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 12px;
  }

  .home-portal__side {
    grid-template-columns: 1fr;
  }

  .portal-section__title {
    font-size: 18px;
  }

  .portal-section__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =====================================================
   Highlights today – exact Webflow match + sidebar
===================================================== */
.home-highlights-page {
  padding: 48px 0 80px;
}

.home-highlights-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.home-highlights-main .section-highlights {
  padding: 0;
}

.home-highlights-main .section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.home-highlights-main .section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.home-highlights-main .section-subtitle {
  font-size: 15px;
  color: #7a8ba3;
  margin: 0;
  max-width: 320px;
  line-height: 1.5;
}

/* Filter pills – white active */
.home-highlights-main .filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-highlights-main .filter-btn {
  appearance: none;
  border: none;
  background: #1e2d45;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.home-highlights-main .filter-btn:hover {
  color: #e2e8f0;
}

.home-highlights-main .filter-btn.active {
  background: #fff;
  color: #0b1524;
  font-weight: 700;
}

/* 4-col grid centered feel */
.home-highlights-main .movie-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 20px;
}

.home-highlights-main .movie-card {
  text-align: left;
}

.home-highlights-main .poster-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
  aspect-ratio: 2 / 3;
  background: #1a273b;
}

.home-highlights-main .poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.35s ease;
}

.home-highlights-main .movie-card:hover .poster-wrap img {
  transform: scale(1.04);
}

.home-highlights-main .rating-badge {
  position: absolute;
  top: 10px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  min-width: 44px;
  height: 28px;
  border-radius: 999px;
  background: #f0b429;
  color: #0b1524;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

/* Stars – gold filled / muted empty */
.movie-stars,
.stars-row {
  display: inline-flex;
  gap: 2px;
  margin-bottom: 6px;
  line-height: 1;
}

.star {
  font-size: 15px;
  line-height: 1;
}

.star-full {
  color: #f0b429;
}

.star-empty,
.movie-stars .empty {
  color: #3d4f6a;
}

.home-highlights-main .movie-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.3;
}

.home-highlights-main .movie-title a {
  color: #fff;
}

.home-highlights-main .movie-title a:hover {
  color: var(--accent);
}

.home-highlights-main .movie-genre {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #7a8ba3;
}

.home-highlights-main .movie-genre svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Sidebar on home */
.home-highlights-sidebar .sidebar-widget {
  background: rgba(15, 23, 40, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 18px 16px;
  margin-bottom: 18px;
}

.home-highlights-sidebar .sidebar-widget-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: #f0b429;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 0 0 14px;
}

.home-highlights-sidebar .hot-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 1000px) {
  .home-highlights-layout {
    grid-template-columns: 1fr;
  }

  .home-highlights-main .movie-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-highlights-main .section-header {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .home-highlights-main .section-subtitle {
    margin: 0 auto;
  }

  .home-highlights-main .filter-tabs {
    justify-content: center;
  }

  .home-highlights-main .movie-card {
    text-align: center;
  }

  .home-highlights-main .movie-genre {
    justify-content: center;
  }

  .home-highlights-main .movie-stars,
  .home-highlights-main .stars-row {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .home-highlights-main .movie-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
  }
}

/* Genre / Country movie grids (per term) */
.tax-movies-block {
  margin-bottom: 40px;
}

.tax-movies-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.tax-movies-block__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #f0b429;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.tax-movies-block__more {
  font-size: 13px;
  color: #94a3b8;
  white-space: nowrap;
}

.tax-movies-block__more:hover {
  color: var(--accent);
}

.tax-movies-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 18px;
}

/* Homepage modules: full width under main highlights */
.home-modules-section {
  width: 100%;
}

.home-highlights-main .home-modules-section {
  margin-top: 20px;
}

.home-modules-grid {
  display: block;
}

.home-modules-grid .home-module {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 10px;
}

.home-module-widget .tax-movies-block__title,
.home-modules-section .tax-movies-block__title {
  color: #f0b429;
}

@media (max-width: 900px) {
  .tax-movies-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .tax-movies-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
  }
}

/* Genre/Country: cùng cột Highlights, không tràn sidebar */
.home-highlights-layout {
  align-items: start;
}

.home-highlights-sidebar {
  position: sticky;
  top: 88px;
}

.home-highlights-main .home-modules-section {
  margin-top: 36px;
  padding-top: 8px;
  width: 100%;
  max-width: 100%;
}

.home-highlights-main .tax-movies-block {
  margin-bottom: 36px;
}

.home-highlights-main .tax-movies-grid {
  /* cùng số cột với Highlights grid */
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 20px;
}

/* Widget title ẩn nếu trùng – dùng title từng genre */
.home-highlights-main .home-modules-section > .widget > .sidebar-widget-title,
.home-highlights-main .home-modules-section > .widget > .home-module-title {
  display: none;
}

.home-highlights-main .home-module-widget,
.home-highlights-main .widget {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 1000px) {
  .home-highlights-sidebar {
    position: static;
  }

  .home-highlights-main .tax-movies-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =====================================================
   UNIFIED RESPONSIVE GRIDS
   iPhone / Android / Tablet / Desktop
===================================================== */

/* Base: 4 columns on large desktop */
.movie-grid,
.portal-grid,
.tax-movies-grid,
.related-reviews__grid,
.home-highlights-main .movie-grid,
.home-highlights-main .tax-movies-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 28px 20px !important;
  width: 100%;
}

/* Homepage layout: main + sidebar */
.home-highlights-layout,
.home-portal__layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 300px !important;
  gap: 32px 40px !important;
  align-items: start !important;
}

/* Single cinematic hero */
.cinematic-hero__inner {
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr) !important;
}

/* Large desktop ≥1400px – keep 4 cols, slightly wider gap */
@media (min-width: 1400px) {
  .movie-grid,
  .portal-grid,
  .tax-movies-grid,
  .related-reviews__grid,
  .home-highlights-main .movie-grid,
  .home-highlights-main .tax-movies-grid {
    gap: 32px 24px !important;
  }
}

/* Laptop / small desktop ≤1200px – 3 cols for cards */
@media (max-width: 1200px) {
  .movie-grid,
  .portal-grid,
  .tax-movies-grid,
  .related-reviews__grid,
  .home-highlights-main .movie-grid,
  .home-highlights-main .tax-movies-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px 16px !important;
  }

  .home-highlights-layout,
  .home-portal__layout {
    grid-template-columns: minmax(0, 1fr) 280px !important;
    gap: 28px !important;
  }
}

/* Tablet landscape / iPad ≤992px – 2 cols + stack sidebar */
@media (max-width: 992px) {
  .movie-grid,
  .portal-grid,
  .tax-movies-grid,
  .related-reviews__grid,
  .home-highlights-main .movie-grid,
  .home-highlights-main .tax-movies-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px 14px !important;
  }

  .home-highlights-layout,
  .home-portal__layout {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .home-highlights-sidebar,
  .home-portal__side {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .cinematic-hero__inner {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    text-align: center !important;
  }

  .home-modules-grid {
    grid-template-columns: 1fr !important;
  }

  .single-movie-header,
  .layout-with-sidebar {
    grid-template-columns: 1fr !important;
  }
}

/* Tablet portrait / large phone ≤768px */
@media (max-width: 768px) {
  .movie-grid,
  .portal-grid,
  .tax-movies-grid,
  .related-reviews__grid,
  .home-highlights-main .movie-grid,
  .home-highlights-main .tax-movies-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px 12px !important;
  }

  .home-highlights-main .section-header {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .home-highlights-main .filter-tabs {
    justify-content: center !important;
  }

  .home-highlights-main .movie-card,
  .tax-movies-grid .movie-card {
    text-align: center !important;
  }

  .home-highlights-main .movie-stars,
  .home-highlights-main .stars-row,
  .tax-movies-grid .movie-stars,
  .tax-movies-grid .stars-row {
    justify-content: center !important;
    width: 100% !important;
  }

  .home-highlights-main .movie-genre,
  .tax-movies-grid .movie-genre {
    justify-content: center !important;
  }

  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* iPhone / Android phone ≤480px – 2 cols compact */
@media (max-width: 480px) {
  .movie-grid,
  .portal-grid,
  .tax-movies-grid,
  .related-reviews__grid,
  .home-highlights-main .movie-grid,
  .home-highlights-main .tax-movies-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 10px !important;
  }

  .home-highlights-main .movie-title,
  .tax-movies-grid .movie-title {
    font-size: 13px !important;
  }

  .home-highlights-main .rating-badge,
  .tax-movies-grid .rating-badge,
  .movie-grid .rating-badge {
    min-width: 36px !important;
    height: 24px !important;
    font-size: 11px !important;
    top: 8px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    border-radius: 999px !important;
  }

  .star {
    font-size: 12px !important;
  }

  .home-highlights-main .section-title {
    font-size: 26px !important;
  }

  .filter-btn,
  .portal-tab {
    padding: 8px 14px !important;
    font-size: 12px !important;
  }
}

/* Very small phones ≤360px – still 2 cols, tighter */
@media (max-width: 360px) {
  .movie-grid,
  .portal-grid,
  .tax-movies-grid,
  .related-reviews__grid,
  .home-highlights-main .movie-grid,
  .home-highlights-main .tax-movies-grid {
    gap: 12px 8px !important;
  }

  .home-highlights-main .movie-title,
  .tax-movies-grid .movie-title {
    font-size: 12px !important;
  }
}

/* Prevent overflow from grid children */
.movie-grid > *,
.portal-grid > *,
.tax-movies-grid > *,
.related-reviews__grid > * {
  min-width: 0;
  max-width: 100%;
}

.poster-wrap img {
  max-width: 100%;
  height: auto;
  display: block;
}

.home-highlights-main .poster-wrap {
  aspect-ratio: 2 / 3;
}

.home-highlights-main .poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* Phim bộ / Phim lẻ on homepage */
.home-type-section {
  margin-top: 40px;
  margin-bottom: 10px;
}

.home-type-section .portal-section__head {
  margin-bottom: 18px;
}

.home-type-section .portal-section__title {
  font-size: 20px;
}

/* Xem phim button in cinematic hero */
.cinematic-watch-btn {
  display: inline-block;
  background: #f0b429;
  color: #0b1524 !important;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cinematic-watch-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(240, 180, 41, 0.35);
}

/* Sidebar hot list – match screenshot style */
.sidebar-widget .hot-list,
.home-highlights-sidebar .hot-list,
.widget .hot-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-widget .hot-item,
.widget .hot-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin: 0;
  padding: 0;
}

.sidebar-widget .hot-item:last-child,
.widget .hot-item:last-child {
  border-bottom: none;
}

.sidebar-widget .hot-item__link,
.widget .hot-item__link {
  display: grid;
  grid-template-columns: 28px 52px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  color: inherit;
  text-decoration: none;
}

.sidebar-widget .hot-item__link:hover .hot-item__name,
.widget .hot-item__link:hover .hot-item__name {
  color: #f0b429;
}

.sidebar-widget .hot-item__rank,
.widget .hot-item__rank {
  font-size: 16px;
  font-weight: 800;
  color: #f0b429;
  text-align: center;
  line-height: 1;
}

.sidebar-widget .hot-item__thumb,
.widget .hot-item__thumb {
  width: 52px;
  height: 74px;
  border-radius: 6px;
  overflow: hidden;
  background: #1a273b;
}

.sidebar-widget .hot-item__thumb img,
.widget .hot-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.sidebar-widget .hot-item__body,
.widget .hot-item__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-widget .hot-item__name,
.widget .hot-item__name {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-widget .hot-item__stars,
.widget .hot-item__stars {
  font-size: 12px;
  color: #f0b429;
  letter-spacing: 1px;
}

.sidebar-widget .hot-item__score,
.widget .hot-item__score {
  display: none;
}

.sidebar-widget-title,
.widget-title,
.home-highlights-sidebar .sidebar-widget-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: #f0b429 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(240, 180, 41, 0.25);
}

/* Sidebar card style – exact match to screenshot */
.hot-list--card {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hot-card {
  margin: 0;
  padding: 0;
  border: none !important;
}

.hot-card__link {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.hot-card__poster {
  position: relative;
  width: 72px;
  height: 108px;
  border-radius: 8px;
  overflow: hidden;
  background: #1a273b;
  flex-shrink: 0;
}

.hot-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hot-card__badge {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0b429;
  color: #0b1524;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.hot-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.hot-card__stars {
  font-size: 13px;
  color: #f0b429;
  letter-spacing: 1px;
  line-height: 1;
}

.hot-card__stars .star-empty,
.hot-card__stars .empty {
  color: #3d4f6a;
}

.hot-card__title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hot-card__link:hover .hot-card__title {
  color: #f0b429;
}

.hot-card__genre {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #7a8ba3;
  margin-top: 2px;
}

.hot-card__genre svg {
  flex-shrink: 0;
  opacity: 0.8;
}

/* SVG stars matching Webflow style */
.stars-row {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.star-svg {
  width: 16px;
  height: 15px;
  display: inline-block;
  flex-shrink: 0;
}

.hot-card__stars .star-svg {
  width: 14px;
  height: 13px;
}

.movie-stars .star-svg,
.cinematic-stars .star-svg {
  width: 16px;
  height: 15px;
}

/* Genre tag icon (Webflow style) */
.genre-tag-icon,
.hot-card__genre svg,
.cinematic-genre svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: inline-block;
}

.hot-card__genre {
  color: #f1b722;
}

.cinematic-genre {
  color: #f1b722;
}

/* Genre tag icon as img */
.genre-tag-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
  object-fit: contain;
}

.hot-card__genre .genre-tag-icon,
.movie-genre .genre-tag-icon,
.cinematic-genre .genre-tag-icon {
  width: 14px;
  height: 14px;
}

/* Stars – exact Webflow SVG style */
.stars-row {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.star-svg {
  width: 16px;
  height: 15px;
  display: inline-block;
  flex-shrink: 0;
}

.hot-card__stars .star-svg {
  width: 14px;
  height: 13px;
}


/* Force rating badge top-center */
.rating-badge,
.poster-wrap .rating-badge,
.movie-card .rating-badge,
.home-highlights-main .rating-badge,
.related-reviews .rating-badge,
.portal-grid .rating-badge,
.movie-grid .rating-badge,
.tax-movies-grid .rating-badge {
  position: absolute !important;
  top: 8px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  min-width: 40px !important;
  width: auto !important;
  height: 26px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  background: #f0b429 !important;
  color: #0b1524 !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10 !important;
}

/* Genre links */
.movie-genre a,
.cinematic-genre a,
.hot-card__genre a,
.meta-genre a {
  color: #cad3da;
  text-decoration: underline;
}

.movie-genre a:hover,
.cinematic-genre a:hover,
.hot-card__genre a:hover {
  color: #f0b429;
}

/* Fix sidebar genre layout */
.hot-card__genre {
  display: flex !important;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #cad3da;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-card__genre a {
  color: #cad3da !important;
  text-decoration: underline;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-card__genre .genre-tag-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.hot-card__info {
  overflow: hidden;
}

/* Sidebar genre – outside the card link, aligned under info */
.hot-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 12px;
  align-items: start;
}

.hot-card__link {
  display: contents;
}

.hot-card__genre {
  grid-column: 2;
  display: flex !important;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 12px;
}

.hot-card__genre a {
  color: #cad3da !important;
  text-decoration: underline;
}

/* Tighten sidebar genre spacing */
.hot-card {
  gap: 0 12px !important;
  margin-bottom: 12px !important;
}

.hot-card__genre {
  margin-top: 2px !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  grid-column: 2 !important;
  align-self: start !important;
}

.hot-list--card {
  gap: 8px !important;
}

.hot-card__info {
  gap: 2px !important;
}

/* Sidebar genre tight under title */
.hot-card {
  display: grid !important;
  grid-template-columns: 72px 1fr !important;
  column-gap: 12px !important;
  row-gap: 0 !important;
  margin-bottom: 14px !important;
  align-items: start !important;
}

.hot-card__link {
  display: contents !important;
}

.hot-card__poster {
  grid-row: 1 / 3 !important;
  grid-column: 1 !important;
}

.hot-card__info {
  grid-column: 2 !important;
  grid-row: 1 !important;
  gap: 2px !important;
}

.hot-card__genre-wrap {
  grid-column: 2 !important;
  grid-row: 2 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}

.hot-card__genre-link {
  color: #cad3da !important;
  text-decoration: underline !important;
}

.hot-card__genre-wrap .genre-tag-icon {
  width: 13px !important;
  height: 13px !important;
}

/* Hover: opacity instead of scale */
.movie-card:hover .poster-wrap img,
.home-highlights-main .movie-card:hover .poster-wrap img,
.poster-wrap img:hover {
  transform: none !important;
  opacity: 0.9 !important;
}

.cinematic-genre a {
  color: #cad3da;
  text-decoration: underline;
}

.cinematic-genre a:hover {
  color: #f0b429;
}

/* Disable image transform effects – only opacity */
.movie-card:hover .poster-wrap img,
.home-highlights-main .movie-card:hover .poster-wrap img,
.poster-wrap img,
.poster-wrap img:hover,
.hot-card__poster img,
.hot-card__poster img:hover,
.cinematic-hero__poster,
.cinematic-hero__poster:hover {
  transform: none !important;
  transition: opacity 0.2s ease !important;
}

.movie-card:hover .poster-wrap img,
.hot-card__link:hover .hot-card__poster img,
a:hover .poster-wrap img {
  opacity: 0.9 !important;
}

/* Link hover underline */
a:hover,
.movie-title a:hover,
.hot-card__title:hover,
.cinematic-genre a:hover,
.hot-card__genre-link:hover,
.movie-genre a:hover {
  text-decoration: underline !important;
}

.movie-title a,
.hot-card__title,
.cinematic-title a {
  text-decoration: none;
}

/* Kill ALL image transform / scale effects */
img,
.poster-wrap img,
.movie-card:hover .poster-wrap img,
.home-highlights-main .movie-card:hover .poster-wrap img,
.hot-card__poster img,
.hot-card__link:hover .hot-card__poster img,
.cinematic-hero__poster,
.cinematic-hero__poster:hover,
.related-reviews .movie-card:hover img,
.portal-grid .movie-card:hover img {
  transform: none !important;
  transition: opacity 0.15s ease !important;
}

.movie-card:hover .poster-wrap img,
.hot-card__link:hover .hot-card__poster img,
a:hover img.poster,
.poster-wrap:hover img {
  opacity: 0.9 !important;
  transform: none !important;
}

/* Remove link hover underline */
a:hover,
.movie-title a:hover,
.hot-card__title:hover,
.cinematic-genre a:hover,
.hot-card__genre-link:hover,
.movie-genre a:hover,
.cinematic-title a:hover {
  text-decoration: none !important;
}

/* Show full image without crop */
.poster-wrap,
.hot-card__poster,
.cinematic-hero__poster-wrap {
  background: #0a1520;
}

.poster-wrap img,
.hot-card__poster img,
.cinematic-hero__poster,
.home-highlights-main .poster-wrap img {
  object-fit: contain !important;
  object-position: center !important;
}

/* Footer with blurred mountain background */
.site-footer {
  position: relative;
  padding: 0;
  margin-top: 60px;
  overflow: hidden;
  background: #081b27;
}

.footer-bg {
  position: absolute;
  inset: 0;
  background-image: var(--footer-bg);
  background-size: cover;
  background-position: center bottom;
  filter: blur(2px);
  transform: scale(1.02);
  opacity: 0.55;
  z-index: 0;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8, 27, 39, 0.85) 0%, rgba(8, 27, 39, 0.6) 40%, rgba(8, 27, 39, 0.75) 100%);
  z-index: 1;
}

.footer-inner {
  position: relative;
  z-index: 2;
  padding: 50px 20px 30px;
}

.footer-search {
  text-align: center;
  margin-bottom: 50px;
}

.footer-search-label {
  color: #f0b429;
  font-size: 15px;
  margin: 0 0 14px;
}

.footer-search-form {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  padding: 4px 6px 4px 20px;
  max-width: 420px;
  width: 100%;
}

.footer-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 0;
  font-size: 14px;
  color: #333;
  outline: none;
}

.footer-search-input::placeholder {
  color: #a0a8b0;
}

.footer-search-btn {
  background: none;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  color: #f0b429;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.footer-widget-title {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
}

.footer-column a {
  display: block;
  color: #8a9bb0;
  font-size: 14px;
  margin: 8px 0;
  text-decoration: none;
}

.footer-column a:hover {
  color: #fff;
}

.social-icon {
  display: inline-block;
  width: 16px;
  margin-right: 6px;
  color: #f0b429;
}

.bottom-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0;
  text-align: center;
}

.bottom-footer p {
  margin: 0;
  font-size: 12px;
  color: #6a7a8a;
}

.bottom-footer a {
  color: #8aa0b8;
  text-decoration: none;
}

.bottom-footer a:hover {
  color: #fff;
}

@media (max-width: 600px) {
  .footer-widgets {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Card / poster top highlight shadow */


/* Top edge highlight only on poster images */
.poster-wrap,
.hot-card__poster,
.cinematic-hero__poster-wrap {
  position: relative;
  box-shadow: none;
}

.poster-wrap::before,
.hot-card__poster::before,
.cinematic-hero__poster-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: hsla(0, 0%, 100%, 0.15);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  z-index: 5;
  pointer-events: none;
  border-radius: inherit;
}

/* Poster as background-image (Webflow style) */
.poster-wrap,
.item-image-block {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 150%; /* 2:3 aspect */
  margin-bottom: 16px;
  border-radius: 6px;
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, 0.4), inset 0 1px 0 0 hsla(0, 0%, 100%, 0.1);
  overflow: hidden;
}

.poster-wrap::before,
.item-image-block::before {
  display: none;
}

.poster-wrap img {
  display: none;
}

/* Fix poster: show full image, proper aspect */
.poster-wrap,
.item-image-block {
  height: auto !important;
  padding-bottom: 0 !important;
  aspect-ratio: 2 / 3;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-color: #0a1520;
}

.poster-wrap .rating-badge {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}

/* Header matching screenshot */
.site-header {
  background: #0d2130;
  border-bottom: none;
}

.header-inner {
  height: 64px;
}

.site-logo-icon {
  width: 26px;
  height: 26px;
  background: #f0b429;
  border-radius: 4px;
  font-size: 11px;
}

.site-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.site-title span {
  font-weight: 400;
  color: #fff;
}

.main-navigation ul {
  gap: 32px;
}

.main-navigation a {
  font-size: 15px;
  color: #8a9bb0;
  padding-bottom: 4px;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: #fff;
}

.main-navigation .current-menu-item > a::after,
.main-navigation .current_page_item > a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: #f0b429;
}
