:root {
  --bg-color: #0f1014;
  --header-bg: #0f1014; /* Dark header blending with bg */
  --header-text: #ffffff;
  --card-bg: #1c1c24;
  --card-label-bg: #25262c;
  --accent-gradient: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 100%);
  --text-color: #e0e0e0;
  --font-main: "Inter", "Segoe UI", 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.8rem;
  font-family: "Impact", "Arial Black", sans-serif;
  font-weight: bold;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.brand-icon {
  height: 48px;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px; /* Rounded square instead of circle */
  background-color: transparent;
}

.brand-icon img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  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 */



/* 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) {
  /* Fix header overflow */
  header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    text-align: center;
    width: 100%;
    margin: 0;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  /* Fix main content padding and overflow */
  main {
    padding: 1rem;
    width: 100%;
    overflow-x: hidden;
  }

  /* Fix About container layout */
  .about-container {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem; /* Reduce padding to fit screen */
    gap: 1.5rem;
    width: 90%; /* Prevent full width touching edges */
    margin: 1rem auto;
  }

  .about-details {
    width: 100%;
    min-width: 0; /* Allow flex item to shrink */
  }

  /* Ensure illustration doesn't overflow */
  .about-illustration {
    margin: 0 auto;
    width: 100%;
    max-width: 250px; /* Slightly larger on mobile for visibility */
  }

  .about-illustration img {
    width: 100%;
    height: auto;
  }

  /* Fix Poster Grid */
  .poster-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
  }

  /* Fix Typography */
  h1 {
    font-size: 2rem;
    margin: 1rem 0;
    line-height: 1.2;
    padding: 0 10px;
  }

  .about-details p strong {
    font-size: 1.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;
}

/* --- REFINED LOCAL VIDEO PLAYER --- */
.local-video-section {
  width: 100%;
  margin: 2rem 0;
  display: flex;
  justify-content: center;
}

.local-video-container {
  width: 100%;
  max-width: 800px; /* Adjust max-width to match card size preference */
  position: relative;
  border-radius: 12px; /* Smooth rounded corners like the screenshot */
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  background-color: #000;
  aspect-ratio: 16/9;
}

.local-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


