/* Movie Quiz - Cinema Theme */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-card: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent: #e50914;
  --accent-hover: #ff1a1a;
  --accent-gold: #d4af37;
  --success: #2ecc71;
  --warning: #f39c12;
  --error: #e74c3c;
  --border: #333333;
  --input-bg: #1e1e1e;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 30px;
  padding-top: 10px;
}

.back-link {
  display: inline-block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 15px;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--accent);
}

h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 5px;
  text-shadow: 0 0 30px rgba(229, 9, 20, 0.5);
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Main Content */
main {
  flex: 1;
}

/* Game Info */
.game-info {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-row span {
  color: var(--text-secondary);
}

.info-row strong {
  color: var(--accent-gold);
}

#game-status {
  font-weight: 600;
}

/* Guess Section */
.guess-section {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  flex-wrap: wrap;
  align-items: center;
}

.guess-section label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.input-wrapper {
  flex: 1;
  min-width: 200px;
  position: relative;
}

#movie-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}

#movie-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
}

#movie-input::placeholder {
  color: var(--text-secondary);
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.autocomplete-dropdown.active {
  display: block;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
  background: var(--accent);
  color: white;
}

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

.autocomplete-poster {
  width: 30px;
  height: 45px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}

.autocomplete-poster-placeholder {
  width: 30px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border);
  border-radius: 3px;
  font-size: 16px;
  flex-shrink: 0;
}

.autocomplete-info {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.autocomplete-title {
  font-weight: 600;
}

.autocomplete-year {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.autocomplete-item.selected .autocomplete-year,
.autocomplete-item:hover .autocomplete-year {
  color: rgba(255, 255, 255, 0.8);
}

/* Buttons */
.btn-primary {
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:disabled {
  background: var(--border);
  cursor: not-allowed;
}

.btn-secondary {
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 500;
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Clues Summary Panel */
.clues-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--accent-gold);
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
}

.clues-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(212, 175, 55, 0.1);
  cursor: pointer;
}

.clues-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.clues-toggle {
  background: none;
  border: none;
  color: var(--accent-gold);
  font-size: 0.8rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.clues-toggle.collapsed {
  transform: rotate(-90deg);
}

.clues-content {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clues-content.collapsed {
  display: none;
}

.clues-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.clues-ranges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.clues-confirmed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.clues-ranges + .clues-confirmed {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.clue-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  min-height: 58px;
  justify-content: center;
}

.clue-item.confirmed {
  border-color: var(--success);
  background: rgba(46, 204, 113, 0.15);
}

.clue-item.narrowed {
  border-color: var(--warning);
  background: rgba(243, 156, 18, 0.1);
}

.clue-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.clue-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.clue-item.confirmed .clue-value {
  color: var(--success);
}

.clue-item.narrowed .clue-value {
  color: var(--warning);
}

/* Tags (genres, cast) */
.clues-tags {
  flex-direction: column;
  gap: 6px;
}

.clue-tags-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.clue-tags-group .clue-label {
  display: inline;
  margin-bottom: 0;
  font-size: 0.65rem;
}

.clue-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.clue-tag {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 500;
}

.clue-tag.match {
  background: rgba(46, 204, 113, 0.25);
  color: #2ecc71;
  border: 1px solid #2ecc71;
}

.clue-tag.unknown {
  background: rgba(150, 150, 150, 0.15);
  color: #888;
  border: 1px dashed #666;
  font-style: italic;
}

/* Clue Actor Cards with Images */
.clue-actor {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 2px;
  padding: 4px;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid #2ecc71;
  border-radius: 8px;
  width: 56px;
  min-height: 60px;
  box-sizing: border-box;
}

.clue-actor.unknown {
  background: rgba(100, 100, 100, 0.15);
  border: 1px dashed #666;
}

.clue-actor-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 2px;
  border: 2px solid #2ecc71;
}

.clue-actor-name {
  font-size: 0.6rem;
  color: #2ecc71;
  max-width: 52px;
  word-break: break-word;
  line-height: 1.1;
}

.clue-actor.unknown .clue-actor-name {
  color: #888;
  font-style: italic;
}

/* Excluded values */
.clues-excluded {
  padding-top: 8px;
  border-top: 1px solid var(--border);
  flex-direction: column;
  gap: 4px;
}

.clue-excluded-section {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex-wrap: wrap;
}

.clue-excluded-section .clue-label {
  display: inline;
  margin-bottom: 0;
  font-size: 0.65rem;
  color: var(--error);
  white-space: nowrap;
}

.clue-excluded-values {
  font-size: 0.7rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

@media (max-width: 500px) {
  .clues-ranges {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .clues-confirmed {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Guesses Container */
.guesses-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Guess Card */
.guess-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-card);
  border-radius: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  animation: slideIn 0.3s ease;
}

/* Row 1: Poster + Info */
.guess-row-main {
  display: flex;
  gap: 16px;
}

/* Row 2: Actors */
.guess-row-cast {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.guess-card.correct {
  border-color: var(--success);
  background: rgba(46, 204, 113, 0.1);
}

.guess-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent-gold);
}

.guess-properties {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

@media (max-width: 500px) {
  .guess-properties {
    grid-template-columns: repeat(3, 1fr);
  }
}

.property {
  background: var(--bg-secondary);
  padding: 6px 4px;
  border-radius: 6px;
  text-align: center;
  font-size: 0.75rem;
}

.property-label {
  color: var(--text-secondary);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.property-value {
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.75rem;
}


.genre-match {
  background: rgba(46, 204, 113, 0.25);
  color: #2ecc71;
  border: 1px solid #2ecc71;
}

.genre-different {
  background: rgba(231, 76, 60, 0.15);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.property.match {
  background: rgba(46, 204, 113, 0.2);
  border: 1px solid var(--success);
}

.property.partial {
  background: rgba(243, 156, 18, 0.2);
  border: 1px solid var(--warning);
}

.property.different {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid var(--error);
}

.property.higher {
  background: rgba(229, 9, 20, 0.15);
  border: 1px solid var(--accent);
}

.property.lower {
  background: rgba(229, 9, 20, 0.15);
  border: 1px solid var(--accent);
}

/* Details Row (Genres + Cast) */
.details-row {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.7rem;
}

.details-label {
  color: var(--text-secondary);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.details-divider {
  color: var(--border);
  margin: 0 4px;
}

.actor, .genre {
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 500;
  display: inline-block;
}

.actor-match {
  background: rgba(46, 204, 113, 0.25);
  color: #2ecc71;
  border: 1px solid #2ecc71;
}

.actor-different {
  background: rgba(231, 76, 60, 0.15);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* Actor cards - vertical layout with image on top */
.actor {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 70px;
  margin: 4px;
  font-size: 0.75rem;
}

.actor-avatar {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  margin-bottom: 4px;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.actor-match .actor-avatar {
  border: 3px solid #2ecc71;
}

.actor-different .actor-avatar {
  border: 2px solid #555;
  opacity: 0.7;
}

.actor-different .actor-avatar img,
.actor-different .actor-img {
  filter: grayscale(100%);
}

.actor-name {
  word-break: break-word;
  line-height: 1.2;
}

/* Placeholder avatar for actors without images */
.actor-placeholder {
  font-size: 1.5rem;
  color: var(--text-secondary);
  opacity: 0.5;
}

/* Answer reveal cast section */
.answer-cast {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.answer-cast-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.answer-cast-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

.answer-cast-grid .actor {
  flex: 0 0 auto;
}

.answer-actor .actor-avatar {
  border: 2px solid var(--accent-gold);
}

/* Text-only actor pills for cast overflow (actors beyond first 10) */
.cast-overflow {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px dashed var(--border);
}

.cast-overflow-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.actor-pill {
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 500;
  display: inline-block;
}

.actor-pill.actor-match {
  background: rgba(46, 204, 113, 0.25);
  color: #2ecc71;
  border: 1px solid #2ecc71;
}

.actor-pill.actor-different {
  background: rgba(231, 76, 60, 0.1);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* Guess card poster */
.guess-poster {
  width: 80px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.4);
  flex-shrink: 0;
}

/* Content area next to poster */
.guess-content {
  flex: 1;
  min-width: 0;
}

.guess-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

/* Genres row */
.guess-genres {
  margin-top: 8px;
}

/* Share section styling now in shared.css */

/* Answer Reveal - styled to match guess-card but with yellow/gold theme */
.answer-reveal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(245, 197, 24, 0.08);
  border-radius: 10px;
  padding: 16px;
  border: 2px solid var(--accent-gold);
  animation: slideIn 0.3s ease;
}

.answer-reveal h3 {
  color: var(--accent-gold);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.answer-reveal .movie-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  color: var(--accent-gold);
  letter-spacing: 1px;
}

.answer-reveal .movie-details {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 4px;
}

.answer-reveal .movie-cast,
.answer-reveal .answer-cast {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--accent-gold);
}

/* Answer content with poster */
.answer-content {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
}

.movie-poster {
  width: 100px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.answer-info {
  text-align: left;
}

.imdb-link {
  display: inline;
  margin-left: 8px;
  color: var(--text-secondary, #9ca3af);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
  vertical-align: middle;
}

.imdb-link:hover {
  opacity: 1;
  color: #f5c518;
}

@media (max-width: 500px) {
  .answer-content {
    flex-direction: column;
  }
  .movie-poster {
    width: 80px;
  }
  .answer-info {
    text-align: center;
  }
}

/* Feedback Button */
.feedback-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 2px solid var(--border);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 50;
}

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

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 16px;
  max-width: 450px;
  width: 100%;
  position: relative;
  border: 1px solid var(--border);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
}

.close-btn:hover {
  color: var(--accent);
}

.modal h2 {
  margin-bottom: 20px;
  color: var(--accent-gold);
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
}

.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 0 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.data-attribution {
  font-size: 0.7rem;
  opacity: 0.5;
  margin-top: 0.5rem;
}

.data-attribution a {
  color: inherit;
}

/* Responsive */
@media (max-width: 600px) {
  h1 {
    font-size: 2.2rem;
  }
  
  .guess-section {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
  
  .guess-properties {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .feedback-btn {
    bottom: 15px;
    right: 15px;
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  
  /* Mobile guess card improvements */
  .guess-card {
    padding: 12px;
    gap: 10px;
  }
  
  .guess-row-main {
    gap: 12px;
  }
  
  .guess-poster {
    width: 60px;
    height: 90px;
  }
  
  .guess-title {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }
  
  /* Smaller actor cards on mobile */
  .actor {
    width: 55px;
    margin: 2px;
    font-size: 0.65rem;
  }
  
  .actor-avatar {
    width: 40px;
    height: 40px;
  }
  
  .actor-name {
    font-size: 0.6rem;
  }
  
  /* Compact actor pills */
  .actor-pill {
    padding: 3px 8px;
    font-size: 0.6rem;
  }
  
  .cast-overflow {
    padding-top: 6px;
    margin-top: 6px;
    gap: 4px;
  }
  
  .cast-overflow-label {
    font-size: 0.6rem;
  }
  
  /* Clue actor cards in summary */
  .clue-actor {
    padding: 3px;
    width: 48px;
    min-height: 52px;
  }
  
  .clue-actor-img {
    width: 32px;
    height: 32px;
  }
  
  .clue-actor-name {
    font-size: 0.55rem;
    max-width: 44px;
  }
}

/* Very small screens */
@media (max-width: 400px) {
  .guess-row-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .guess-poster {
    width: 80px;
    height: 120px;
  }
  
  .guess-content {
    width: 100%;
  }
  
  .guess-properties {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .actor {
    width: 50px;
    margin: 2px;
  }
  
  .actor-avatar {
    width: 36px;
    height: 36px;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Ad Containers */
.ad-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem 0;
  min-height: 50px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border);
  border-radius: 8px;
}

.ad-container::before {
  content: "Ad";
  color: var(--text-secondary);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.5;
}

/* Header Ad - Desktop Only */
.ad-header {
  display: none;
  margin-top: 0;
}

@media (min-width: 728px) {
  .ad-header {
    display: flex;
    min-height: 90px;
  }
}

/* In-Content Ad */
.ad-in-content {
  min-height: 100px;
  max-width: 336px;
  margin: 1rem auto;
}

@media (max-width: 400px) {
  .ad-in-content {
    max-width: 320px;
  }
}

/* Actor Image Lightbox */
.actor-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.actor-lightbox.open {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2001;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
  max-width: 90vw;
  max-height: 80vh;
}

.lightbox-content img {
  max-width: 300px;
  max-height: 400px;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-name {
  margin-top: 16px;
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}

/* Make actor avatars clickable */
.actor-avatar.clickable {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.actor-avatar.clickable:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.clue-actor-img.clickable {
  cursor: pointer;
  transition: transform 0.2s;
}

.clue-actor-img.clickable:hover {
  transform: scale(1.15);
}

/* Make posters clickable */
.guess-poster.clickable,
.movie-poster.clickable {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.guess-poster.clickable:hover,
.movie-poster.clickable:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Mobile adjustments for lightbox */
@media (max-width: 600px) {
  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  
  .lightbox-content img {
    max-width: 85vw;
    max-height: 60vh;
  }
  
  .lightbox-name {
    font-size: 1rem;
    padding: 0 16px;
  }
}

/* ========== LOADING STATE ========== */

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 1rem;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
