:root {
  --bg: #0f1220;           /* Main background */
  --panel: #14182a;        /* Panel/card background */
  --muted: #9aa3b2;        /* Muted text */
  --text: #e6e9ef;         /* Main text */
  --brand: #BB86FC;        /* Brand purple */
  --brand-2: #03DAC6;      /* Brand cyan */
  --line: #242a41;         /* Border color */
  --shadow: 0 10px 30px rgba(0, 0, 0, .35); /* Shadow */
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fonts & body */
body {
  font-family: 'Roboto', sans-serif;
  background: #0a0a0a;
  color: #f5f5f5;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.cinema-header {
  background: repeating-linear-gradient(45deg, #b71c1c 0 24px, #7b1818 24px 48px);
  padding: 1rem 2rem;
  border-bottom: 4px solid gold;
  position: sticky;
  top: 0;
  z-index: 100;
}

.cinema-header .navbar {
  display: flex;
  justify-content: space-between; 
  align-items: center;
}

.cinema-header .logo,
.cinema-header nav ul li a {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: gold;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.cinema-header nav ul li a:hover,
.cinema-header .logo:hover {
  color: #ff4444;
  text-shadow: 0 0 10px gold;
}


.cinema-header nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.cinema-header nav ul li a {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: gold;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  background: rgba(0, 0, 0, 0.4); 
  border-radius: 6px;
  transition: background 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

.cinema-header nav ul li a:hover {
  background: rgba(0, 0, 0, 0.7);
  color: #ff4444;
  text-shadow: 0 0 10px gold;
}

/* Main */
main {
  flex: 1;
  padding: 2rem 3rem;
  max-width: 1200px;
  margin: auto;
}


/* Sections */
section {
  margin-bottom: 4rem;
  text-align: left;
}

/* Overview */
.overview h1 {
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  margin-bottom: 1rem;
  color: gold;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.overview p {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: #ddd;
  max-width: 800px;
}

.rules {
  list-style: none;
  margin-top: 1rem;
}

.rules li {
  margin: 0.6rem 0;
  font-size: 1.1rem;
  position: relative;
  padding-left: 2rem;
}

.rules li::before {
  content: "🎭";
  position: absolute;
  left: 0;
  font-size: 1.2rem;
  color: #ff4444;
}

/* Trailer */
.trailer {
  text-align: center;
}

.trailer h2 {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #ff4444;
}

.trailer video {
  width: 100%;
  max-width: 900px;
  border: 5px solid gold;
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
  transition: transform 0.3s ease;
}

.trailer video:hover {
  transform: scale(1.02);
}

/* Controls */
.controls h2 {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #ff4444;
}

.controls {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-left: 4px solid gold;
  border-radius: 10px;
}

#controls-image {
  width: 100%;
  max-width: 600px;
  display: block;
  margin: 1rem auto 0;
  border: 3px solid gold;
  border-radius: 10px;
}

/* Characters */
.characters h2 {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #ff4444;
}

.characters {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-left: 4px solid gold;
  border-radius: 10px;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  justify-items: center;
  margin-top: 2rem;
}

.character-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: repeating-linear-gradient(45deg, #b71c1c 0 24px, #7b1818 24px 48px);
  border-radius: 16px;
  border: 2px solid gold;
  box-shadow: 0 0 8px #b71c1c inset;
  padding: 1.2em 1em 1em 1em;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}

.character-card:hover {
  background: repeating-linear-gradient(45deg, #cf1d1d 0 24px, #911818 24px 48px);
  box-shadow: 0 0 18px #ff4444, 0 0 8px #b71c1c inset;
  transform: translateY(-6px) scale(1.04);
}

.character-card img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  border: 3px solid gold;
  margin-bottom: 0.7em;
  background: #ffc9c9;
}

.character-card span {
  font-family: 'Cinzel', serif;
  color: gold;
  font-size: 1.15em;
  margin-top: 0.2em;
  letter-spacing: 1px;
  text-align: center;
}

/* Stages */
.stages h2 {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #ff4444;
}

.stages{
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-left: 4px solid gold;
  border-radius: 10px;
}

.stages-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1rem 0;
  scrollbar-width: thin;
  scrollbar-color: gold rgba(255, 255, 255, 0.1);
}

.stages-container::-webkit-scrollbar {
  height: 8px;
}

.stages-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.stages-container::-webkit-scrollbar-thumb {
  background: gold;
  border-radius: 4px;
}

.stages-container::-webkit-scrollbar-thumb:hover {
  background: #ffcc00;
}

.stages-image {
  flex: 0 0 auto;
  width: 400px;
  height: 225px;
  object-fit: cover;
  border: 3px solid gold;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stages-image:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 212, 0, 0.3);
}

/* Footer */
footer {
  background: linear-gradient(to right, #200000, #600000);
  padding: 1.2rem;
  text-align: center;
  border-top: 4px solid gold;
  font-size: 1rem;
  color: #ccc;
}

/* Other Websites Section */
#other-websites {
  padding: 80px 0;
}

.websites-container {
  margin-top: 3rem;
  overflow: visible;
  border-radius: 12px;
  position: relative;
  padding: 0 60px;
}

.website-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--panel); /* adjust to your color scheme */
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.website-nav-btn:hover {
  background: var(--brand); /* your brand color */
  color: var(--bg);
  transform: translateY(-50%) scale(1.1);
}

.website-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--line); /* muted color */
}

.website-nav-btn:disabled:hover {
  transform: translateY(-50%);
  background: var(--line);
  color: var(--muted);
}

.website-nav-prev {
  left: 10px;
}

.website-nav-next {
  right: 10px;
}

.websites-scroll {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0;
  margin: 0 -60px;
  padding-left: 60px;
  padding-right: 60px;
  scrollbar-width: thin;
  scrollbar-color: var(--brand) var(--line);
}

.websites-scroll::-webkit-scrollbar {
  height: 8px;
}

.websites-scroll::-webkit-scrollbar-track {
  background: var(--line);
  border-radius: 4px;
}

.websites-scroll::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 4px;
}

.websites-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--brand-2);
}

.website-card {
  flex: 0 0 calc(75vw - 2rem);
  max-width: 800px;
  min-width: 300px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 400px;
}

.website-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--brand);
}

.website-card:last-child {
  margin-right: 2rem;
}

.website-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.website-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.website-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.website-content h3 {
  color: var(--brand);
  margin: 0 0 0.75rem 0;
  font-size: 1.3rem;
}

.website-content p {
  color: var(--muted);
  margin: 0 0 1rem 0;
  line-height: 1.5;
  flex: 1;
}

.website-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.website-tech span {
  background: var(--line);
  color: var(--text);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.website-card:hover .website-tech span {
  background: var(--brand);
  color: var(--bg);
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
  /* Mobile test - red background to verify mobile styles are working */
  body {
    background: #0a0a0a !important;
  }
  
  /* Force mobile layout */
  * {
    box-sizing: border-box !important;
  }
  
  /* Mobile Header */
  .cinema-header {
    padding: 0.8rem 0.5rem !important;
  }
  
  .cinema-header .navbar {
    flex-direction: column !important;
    gap: 0.8rem !important;
  }
  
  .cinema-header .logo {
    font-size: 1.2rem !important;
    text-align: center !important;
  }
  
  .cinema-header nav ul {
    gap: 0.6rem !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
  }
  
  .cinema-header nav ul li a {
    font-size: 0.9rem !important;
    padding: 0.3rem 0.6rem !important;
  }
  
  /* Mobile Main Content */
  main {
    padding: 0.8rem 0.5rem !important;
    max-width: 100vw !important;
  }
  
  /* Mobile Overview */
  .overview h1 {
    font-size: 1.8rem !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
    line-height: 1.2 !important;
  }
  
  .overview p {
    font-size: 0.95rem !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
    line-height: 1.4 !important;
    max-width: 100% !important;
  }
  
  .rules {
    margin-top: 1rem !important;
    padding: 0 1rem !important;
  }
  
  .rules li {
    font-size: 0.9rem !important;
    margin: 0.5rem 0 !important;
    padding-left: 2rem !important;
    line-height: 1.3 !important;
  }
  
  .rules li::before {
    font-size: 1rem !important;
  }
  
  /* Mobile Trailer */
  .trailer {
    margin-bottom: 2rem !important;
    text-align: center !important;
  }
  
  .trailer h2 {
    font-size: 1.4rem !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
  }
  
  .trailer video {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border: 2px solid gold !important;
    border-radius: 8px !important;
  }
  
  /* Mobile Section Headers */
  .controls h2,
  .characters h2,
  .stages h2 {
    font-size: 1.4rem !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
  }
  
  /* Mobile Sections */
  section {
    margin-bottom: 2rem !important;
  }
  
  .controls,
  .characters,
  .stages {
    padding: 1rem !important;
    margin: 0 !important;
  }
  
  /* Mobile Controls */
  #controls-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border: 2px solid gold !important;
    border-radius: 8px !important;
  }
  
  /* Mobile Character Grid */
  .character-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
    margin-top: 1rem !important;
    justify-content: center !important;
    max-width: 100% !important;
  }
  
  .character-card {
    padding: 0.8rem 0.5rem !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  
  .character-card img {
    width: 80px !important;
    height: 80px !important;
  }
  
  .character-card span {
    font-size: 0.9rem !important;
  }
  
  /* Mobile Stages */
  .stages-container {
    padding: 0.5rem 0 !important;
    gap: 0.8rem !important;
    overflow-x: auto !important;
  }
  
  .stages-image {
    width: 250px !important;
    height: 140px !important;
    flex-shrink: 0 !important;
  }
  
  /* Other Websites Mobile */
  .websites-container {
    padding: 0 30px !important;
  }
  
  .website-nav-btn {
    width: 35px !important;
    height: 35px !important;
  }
  
  .website-nav-prev {
    left: 5px !important;
  }
  
  .website-nav-next {
    right: 5px !important;
  }
  
  .websites-scroll {
    margin: 0 -30px !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
  }
  
  .website-card {
    flex: 0 0 calc(85vw - 2rem) !important;
    height: 300px !important;
  }
  
  .website-image {
    height: 120px !important;
  }
  
  .website-content {
    padding: 0.8rem !important;
  }
  
  .website-content h3 {
    font-size: 1.1rem !important;
  }
  
  .website-content p {
    font-size: 0.85rem !important;
  }
}

@media (max-width: 480px) {
  /* Extra Small Mobile */
  .cinema-header {
    padding: 0.5rem 0.3rem !important;
  }
  
  .cinema-header .logo {
    font-size: 1rem !important;
  }
  
  .cinema-header nav ul li a {
    font-size: 0.8rem !important;
    padding: 0.2rem 0.4rem !important;
  }
  
  main {
    padding: 0.5rem 0.3rem !important;
  }
  
  .overview h1 {
    font-size: 1.5rem !important;
  }
  
  .overview p {
    font-size: 0.85rem !important;
  }
  
  .trailer h2,
  .controls h2,
  .characters h2,
  .stages h2 {
    font-size: 1.2rem !important;
  }
  
  .controls,
  .characters,
  .stages {
    padding: 0.8rem !important;
  }
  
  .character-card img {
    width: 70px !important;
    height: 70px !important;
  }
  
  .character-card span {
    font-size: 0.8rem !important;
  }
  
  .stages-image {
    width: 220px !important;
    height: 124px !important;
  }
  
  .rules li {
    font-size: 0.8rem !important;
    padding-left: 1.8rem !important;
  }
  
  /* Footer Mobile */
  footer {
    padding: 0.8rem 0.5rem !important;
    font-size: 0.8rem !important;
  }
}