:root {
  --bg-color: #0b0b0b;
  --header-bg: #1a009d;
  --header-text: #ffffff;
  --card-bg: #1a1a1a;
  --card-label-bg: #25058e;
  --text-color: #ffffff;
  --font-main: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img,
iframe {
  max-width: 100%;
  height: auto;
}

iframe {
  height: unset; /* Allow aspect-ratio to work */
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
  width: 100%;
}

html {
  overflow-x: hidden;
  width: 100%;
}

/* HEADER & NAV */
header {
  background-color: var(--header-bg);
  color: var(--header-text);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand {
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
}

.brand-icon {
  height: 42px;
  width: 42px; /* Set equal width for a perfect circle */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%; /* Make it a circle */
  background-color: white; /* Optional: background for transparent logos */
}

.brand-icon img {
  height: 100%;
  width: 100%;
  object-fit: cover; /* Ensure image covers the circle without distortion */
  display: block;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--header-text);
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  text-decoration: underline;
}

/* MAIN CONTENT */
main {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 80vh; /* Increased slightly */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center content vertically */
}

h1 {
  text-align: center;
  margin: 2rem 0;
  font-size: clamp(2rem, 8vw, 3.5rem); /* Responsive typography */
  font-weight: bold;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: var(--header-bg);
}

/* POSTER GRID */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(180px, 1fr)
  ); /* Slightly smaller min size for better mobile fit */
  gap: 1.5rem;
}

.poster-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.poster-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.5);
}

.poster-image {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}

.poster-label {
  background-color: var(--card-label-bg);
  color: white;
  text-align: center;
  padding: 0.75rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  height: 4rem; /* Balanced height for 2 lines */
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

/* ABOUT SECTION */
.about-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem; /* Increased gap for breathing room */
  padding: 3rem;
  max-width: 1000px;
  margin: 2rem auto;
}

.about-illustration {
  flex: 1;
  max-width: 300px;
  display: flex;
  justify-content: center;
}

.about-illustration svg,
.profile-photo {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  display: block;
  object-fit: cover;
}

.about-details {
  flex: 1.2; /* Adjusted flex for better balance */
  min-width: 280px;
}

.about-details p {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: #bbb; /* Softer color for secondary info */
}

.about-details p strong {
  font-size: 1.8rem; /* Name stands out more */
  color: #fff;
  display: block;
  margin-bottom: 1.5rem;
}

/* DETAIL PAGE */
.detail-container {
  display: flex;
  gap: 3rem;
  padding: 2rem 0;
  align-items: center; /* Vertically center video and text relative to each other */
}

.video-container {
  flex: 1.8;
  min-width: 300px;
}

.video-container iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

.content-container {
  flex: 1;
  min-width: 250px;
}

.content-container p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: #ccc;
}

.content-container strong {
  color: #fff;
  display: block;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2.5rem 1rem;
  background-color: var(--header-bg);
  margin-top: 5rem;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
}

/* --- ANIMATIONS & HOVER EFFECTS --- */

/* Navigation Links */
nav a {
  color: var(--header-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

nav a:hover {
  text-decoration: none;
  color: #e0d5ff; /* Slightly lighter on hover */
}

/* Brand Logo */

.brand-icon {
  transition: box-shadow 0.4s ease;
}

.brand:hover .brand-icon {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Poster Cards (Enhanced) */
.poster-card {
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.4s ease;
}

.poster-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.6);
}

/* Profile Photo */
.profile-photo {
  transition: box-shadow 0.5s ease;
}

.profile-photo:hover {
  box-shadow: 0 30px 50px rgba(139, 92, 246, 0.3);
}

/* Video Containers */
.video-container iframe {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.video-container iframe:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8);
}

/* Floating Animation Keyframes */
@keyframes floating {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* MEDIA QUERIES */

/* Tablets */
@media (max-width: 992px) {
  main {
    padding: 1.5rem;
  }
  .detail-container {
    flex-direction: column;
    gap: 2rem;
  }
  .about-container {
    gap: 2rem;
  }
}

/* Mobile Devices */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    text-align: center;
  }

  nav {
    gap: 1.2rem;
  }

  main {
    padding: 1rem;
  }

  .about-container {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
    gap: 2rem;
  }

  .about-details {
    min-width: auto;
    width: 100%;
  }

  .about-illustration {
    max-width: 200px;
  }

  .poster-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
  }

  h1 {
    font-size: 2.2rem;
    margin: 1.5rem 0;
  }

  .about-details p strong {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .about-details p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
}

/* --- CUSTOM YOUTUBE THUMBNAIL --- */
.youtube-thumbnail {
  position: relative;
  display: block;
  width: 100%;
  max-width: 560px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.youtube-thumbnail:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8);
}

.youtube-thumbnail img {
  width: 100%;
  display: block;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 14px;
  transform: translate(-50%, -50%);
  transition: background 0.3s ease;
}

.youtube-thumbnail:hover .play-button {
  background: rgba(255, 0, 0, 0.9);
}

.play-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent white;
}
