@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800&display=swap');
:root {
  --primary-blue: #004e92;
  --secondary-blue: #00c6ff;
  --accent-gold: #f1c40f;
  --bg-body: #F5F7FA;
  --bg-card: #ffffff;
  --text-main: #2c3e50;
  --text-muted: #666666;
  --border-color: rgba(0, 0, 0, 0.08);
  --grad-header: linear-gradient(180deg, #00264d 0%, #004080 50%, #0099cc 100%);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 40px rgba(0, 78, 146, 0.15);
}
[data-theme="dark"] {
  --bg-body: #0f172a;
  --bg-card: #1e293b;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.3);
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Kanit', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.media-hero-header {
  background: var(--grad-header);
  position: relative;
  padding-top: 160px;
  padding-bottom: 380px;
  color: #ffffff !important;
  overflow: hidden;
  z-index: 1;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.header-geometric-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.7;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 100%);
}
.hero-icon-box {
  font-size: 4rem;
  color: var(--secondary-blue);
  background: rgba(255, 255, 255, 0.1);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}
.hero-title {
  position: relative;
  z-index: 2;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 3.5rem;
  margin: 20px 0 15px 0;
  text-shadow: 0 4px 0 #00264d, 0 10px 20px rgba(0, 0, 0, 0.3);
}
.hero-divider {
  width: 80px;
  height: 5px;
  background: var(--accent-gold);
  margin: 0 auto 20px auto;
  border-radius: 5px;
  box-shadow: 0 0 15px rgba(241, 196, 15, 0.5);
}
.hero-subtitle {
  position: relative;
  z-index: 2;
  font-weight: 300;
  font-size: 1.25rem;
  opacity: 0.9;
}
.main-content-overlap {
  margin-top: -70px;
  position: relative;
  z-index: 10;
  padding-bottom: 60px;
}
.video-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
}
.video-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--secondary-blue);
}
.video-wrapper {
  background: #000;
  position: relative;
  border-bottom: 4px solid var(--accent-gold);
}
.video-card-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.video-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-main);
  line-height: 1.5;
  height: 3em;
}
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.btn-watch {
  transition: all 0.2s;
}
.btn-watch:hover {
  background: #ff0000;
  color: #fff;
  border-color: #ff0000;
}
.video-meta {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
  gap: 10px;
}
.meta-left {
  display: flex;
  align-items: center;
  overflow: hidden;
  flex: 1;
}
.channel-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}
.meta-right {
  white-space: nowrap;
  flex-shrink: 0;
}
.modern-pagination .page-item {
  margin: 0 3px;
}
.modern-pagination .page-link {
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-weight: 600;
  background: var(--bg-card);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}
.modern-pagination .page-link:hover {
  background: var(--bg-body);
  color: var(--primary-blue);
  transform: translateY(-2px);
}
.modern-pagination .page-item.active .page-link {
  background: var(--grad-header);
  color: white;
  box-shadow: 0 5px 15px rgba(0, 78, 146, 0.4);
}
.modern-pagination .page-item.disabled .page-link {
  background: transparent;
  color: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}
@media (max-width: 991px) {
  .media-hero-header {
    padding-top: 140px;
    padding-bottom: 250px;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .main-content-overlap {
    margin-top: -80px;
  }
}
@media (max-width: 768px) {
  .media-hero-header {
    padding-top: 120px;
    padding-bottom: 280px;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
    padding: 0 20px;
  }
  .hero-icon-box {
    width: 70px;
    height: 70px;
    font-size: 2.5rem;
  }
  .main-content-overlap {
    margin-top: 20px;
  }
  .video-card {
    margin-bottom: 15px;
  }
  .video-meta {
    flex-direction: row;
  }
}
.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}
.delay-100 {
  animation-delay: 0.1s;
}
.delay-150 {
  animation-delay: 0.15s;
}
.delay-200 {
  animation-delay: 0.2s;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}