/* Clean, borderless, high-clarity layout: LARGE HD video frame + LARGE sharp character visuals */
* {
  box-sizing: border-box;
}

.ms-page-body {
  margin: 0;
  font-family: 'Poppins', 'Assistant', sans-serif;
  color: #16243d;
  background: #f8fafc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Clean minimal header (no heavy colored border lines) */
.ms-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.ms-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ms-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.ms-logo-img {
  height: 54px;
  width: auto;
  display: block;
  object-fit: contain;
}

.ms-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ms-nav-link {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  color: #334155;
  padding: 8px 18px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}

.ms-nav-link:hover,
.ms-nav-link.active {
  background: #437BBD;
  color: #ffffff;
}

/* Watch Page: Extra-Large Cinema Video Frame */
.watch-page {
  flex: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.watch-card {
  width: 100%;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.public-video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.public-video-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.public-video-info {
  padding: 26px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #ffffff;
}

.public-video-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
  color: #16243d;
}

.public-video-title a {
  color: inherit;
  text-decoration: none;
}

.public-video-title a:hover {
  color: #437BBD;
}

.public-video-date {
  font-size: 0.95rem;
  font-weight: 500;
  color: #64748b;
}

.public-video-desc {
  margin: 4px 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #334155;
  white-space: pre-line;
}

/* Large, Sharp, Borderless Character Images Gallery */
.ms-characters-gallery {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center;
}

.ms-character-figure {
  margin: 0;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 340px;
  padding: 16px;
}

.ms-character-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Public Videos Page & Homepage Section */
.public-videos-section {
  flex: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  font-family: 'Poppins', 'Assistant', sans-serif;
}

.public-videos-container {
  width: 100%;
}

.public-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(560px, 1fr));
  gap: 32px;
}

.public-video-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
}

.public-video-card .public-video-title {
  font-size: 1.45rem;
}

.watch-empty {
  max-width: 640px;
  margin: 60px auto;
  text-align: center;
  padding: 40px 24px;
  background: #ffffff;
  border-radius: 20px;
  color: #475569;
  font-size: 1.05rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

/* Clean Footer */
.ms-footer {
  background: #437BBD;
  color: #ffffff;
  padding: 24px 28px;
  margin-top: auto;
}

.ms-footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

.ms-footer-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.ms-footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ms-footer-copy {
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.96;
}

.ms-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  opacity: 0.92;
}

.ms-footer-links a {
  color: #ffffff;
  text-decoration: none;
}

.ms-footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .ms-footer-inner {
    justify-content: center;
    text-align: center;
  }
  .ms-footer-info {
    align-items: center;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .ms-characters-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .ms-character-figure {
    height: 280px;
  }
  .public-videos-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .watch-page,
  .public-videos-section {
    padding: 16px 14px 44px;
  }
  .ms-characters-gallery {
    grid-template-columns: 1fr;
  }
  .ms-character-figure {
    height: 260px;
  }
  .public-video-info {
    padding: 20px;
  }
  .public-video-title {
    font-size: 1.35rem;
  }
}
