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

:root {
  --primary: #0066FF;
  --primary-dark: #0052CC;
  --accent: #FF6B35;
  --background: #FFFFFF;
  --surface: #F8F9FA;
  --text: #0A0E27;
  --text-secondary: #5A6270;
  --border: #E5E7EB;
  --radius: 16px;
}

body.dark-mode {
  --background: #0A0E27;
  --surface: #13172E;
  --text: #F5F7FA;
  --text-secondary: #A0A9B8;
  --border: #1F2847;
  --primary: #5B9FFF;
  --accent: #FF8A55;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  transition: background .3s, color .3s;
}

.header {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.2rem 0;
  transition: all .3s;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color .2s;
}

.nav-links a:hover { color: var(--primary); }

.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.6rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all .3s;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--background);
}

.hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8rem 2rem;
  text-align: center;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
}

.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0 auto 3rem;
  max-width: 700px;
}

.media-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
}

#moviesGrid {
  display: flex;
  justify-content: center;
}

#moviesGrid .media-card {
  width: 320px;
}

.media-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(30px);
  animation: cardFadeIn .5s ease forwards;
  cursor: pointer;
}

@keyframes cardFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.media-card:nth-child(1) { animation-delay: 0.1s; }
.media-card:nth-child(2) { animation-delay: 0.15s; }
.media-card:nth-child(3) { animation-delay: 0.2s; }
.media-card:nth-child(4) { animation-delay: 0.25s; }
.media-card:nth-child(5) { animation-delay: 0.3s; }

.media-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.media-card-image {
  width: 100%;
  aspect-ratio: 2 / 3;
  background: var(--border);
  overflow: hidden;
  position: relative;
}

.media-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.media-card:hover .media-card-image img { transform: scale(1.08); }

.media-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  z-index: 2;
}

.media-card-content { padding: 1.5rem; }

.media-card-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 1rem;
}

.media-card-year {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.media-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap .2s;
}

.media-card-link:hover { gap: 0.75rem; }

.actor-section {
  background: linear-gradient(135deg, var(--primary) 0%, #0052CC 50%, var(--accent) 100%);
  padding: 5rem 2rem;
  border-radius: var(--radius);
  margin: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.actor-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.actor-section::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,0,0,0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.actor-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.actor-image {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  aspect-ratio: 3 / 4;
}

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

.actor-section:hover .actor-image img { transform: scale(1.05); }

.actor-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.actor-content { color: white; }

.actor-label {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 1rem;
  font-weight: 600;
}

.actor-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.actor-bio {
  font-size: 1rem;
  line-height: 1.8;
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

.actor-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.actor-stat { text-align: center; }

.actor-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.actor-stat-label {
  font-size: 0.85rem;
  opacity: 0.85;
  letter-spacing: 0.05em;
}

.gallery-section {
  background: var(--surface);
  padding: 5rem 2rem;
  border-radius: var(--radius);
  margin: 4rem 2rem;
}

.folders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.folder {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform .2s;
  opacity: 0;
  animation: folderIn .5s ease forwards;
}

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

.folder:nth-child(1) { animation-delay: 0.1s; }
.folder:nth-child(2) { animation-delay: 0.2s; }
.folder:nth-child(3) { animation-delay: 0.3s; }
.folder:nth-child(4) { animation-delay: 0.4s; }
.folder:nth-child(5) { animation-delay: 0.5s; }
.folder:nth-child(6) { animation-delay: 0.6s; }

.folder:hover { transform: scale(1.1); }

.folder-icon {
  width: 130px;
  height: 110px;
  background: linear-gradient(135deg, #FFD966 0%, #F5C84F 100%);
  border-radius: 12px 12px 4px 4px;
  margin-bottom: 0.8rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transition: all .3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.folder:hover .folder-icon {
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
  transform: translateY(-4px);
}

.folder-tab {
  position: absolute;
  top: -28px;
  left: 0;
  width: 55px;
  height: 28px;
  background: linear-gradient(135deg, #FFD966 0%, #F5C84F 100%);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.folder-label {
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  max-width: 140px;
  color: var(--text);
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeInModal .3s;
  backdrop-filter: blur(4px);
}

.modal.active { display: flex; }

@keyframes fadeInModal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-content {
  background: var(--background);
  border-radius: var(--radius);
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  animation: slideUpModal .3s ease;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 800;
}

.modal-close {
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color .2s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover { color: var(--text); }

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--surface);
  animation: galleryIn .4s ease forwards;
  opacity: 0;
}

@keyframes galleryIn {
  to { opacity: 1; transform: scale(1); }
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.15s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s; }
.gallery-item:nth-child(4) { animation-delay: 0.25s; }
.gallery-item:nth-child(5) { animation-delay: 0.3s; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.gallery-item:hover img { transform: scale(1.1); }

.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-content { max-width: 1400px; margin: 0 auto; }

.footer p { margin-bottom: 0.5rem; color: var(--text-secondary); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 4rem 2rem; }
  .section { padding: 3rem 2rem; }
  .media-cards-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.5rem; }
  .folders-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 1rem; }
  .actor-container { grid-template-columns: 1fr; gap: 2rem; }
  .actor-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .modal-gallery { grid-template-columns: repeat(2, 1fr); }
  .actor-section { margin: 2rem; padding: 3rem 1.5rem; }
  .gallery-section { margin: 2rem; padding: 3rem 1.5rem; }
}
