/* ==========================================================================
   CR GKT VIDEO HUB - STYLESHEET
   Branding:
     - Background: #101010
     - Secondary Background: #181818
     - Red Accent: #E50914
     - Silver Accent: #C0C0C0
     - Text Primary: #FFFFFF
     - Text Muted: #A0A0A0
   ========================================================================== */

:root {
  --bg-main: #101010;
  --bg-secondary: #181818;
  --bg-tertiary: #222222;
  --bg-card: #161616;
  --bg-card-hover: #202020;
  
  --red-accent: #E50914;
  --red-hover: #b80710;
  --red-subtle: rgba(229, 9, 20, 0.15);
  
  --silver-accent: #C0C0C0;
  --silver-light: #E0E0E0;
  --silver-dark: #808080;
  
  --text-primary: #FFFFFF;
  --text-secondary: #C0C0C0;
  --text-muted: #888888;
  
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-focus: rgba(229, 9, 20, 0.6);
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.2, 0, 0, 1);
  --transition-normal: 0.3s cubic-bezier(0.2, 0, 0, 1);
  
  --shadow-card: 0 4px 14px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 10px 25px rgba(229, 9, 20, 0.35);
  --shadow-modal: 0 20px 50px rgba(0, 0, 0, 0.85);
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-main);
  overflow-x: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #333333;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--red-accent);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 70px;
  background: linear-gradient(180deg, rgba(16, 16, 16, 0.98) 0%, rgba(16, 16, 16, 0.85) 85%, transparent 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color var(--transition-fast);
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
  transition: transform var(--transition-fast);
}

.brand-section:hover .brand-logo-img {
  transform: scale(1.05);
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.1;
}

.brand-title-badge {
  background-color: var(--red-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--silver-accent);
  letter-spacing: 0.5px;
  font-weight: 500;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-btn {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.nav-btn:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-btn.active {
  color: #ffffff;
  font-weight: 700;
  border-bottom: 2px solid var(--red-accent);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  font-size: 0.88rem;
  padding: 8px 36px 8px 14px;
  border-radius: var(--radius-full);
  width: 220px;
  transition: all var(--transition-normal);
}

.search-input:focus {
  outline: none;
  width: 280px;
  border-color: var(--red-accent);
  background-color: rgba(0, 0, 0, 0.9);
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.4);
}

.search-icon-btn {
  position: absolute;
  right: 10px;
  color: var(--silver-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.badge-mode {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.07);
  color: var(--silver-accent);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.badge-mode:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.badge-mode.sample-mode {
  border-color: rgba(255, 193, 7, 0.45);
  color: #FFD54F;
  background: rgba(255, 193, 7, 0.08);
}

.badge-mode.sample-mode:hover {
  background: rgba(255, 193, 7, 0.18);
  color: #FFE082;
}

.badge-mode.full-mode {
  border-color: rgba(0, 230, 118, 0.45);
  color: #B9F6CA;
  background: rgba(0, 230, 118, 0.08);
}

.badge-mode.full-mode:hover {
  background: rgba(0, 230, 118, 0.18);
  color: #E8F5E9;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #00E676;
}

.badge-dot.sample-dot {
  background-color: #FFC107;
  box-shadow: 0 0 6px rgba(255, 193, 7, 0.7);
}

.badge-dot.full-dot {
  background-color: #00E676;
  box-shadow: 0 0 6px rgba(0, 230, 118, 0.7);
}

/* ==========================================================================
   MAIN HERO BANNER (NETFLIX STYLE)
   ========================================================================== */
.hero-banner {
  position: relative;
  min-height: 480px;
  background: radial-gradient(circle at 75% 40%, rgba(229, 9, 20, 0.12) 0%, rgba(16, 16, 16, 0) 65%),
              linear-gradient(135deg, #181818 0%, #101010 100%);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #101010 0%, rgba(16, 16, 16, 0.85) 45%, rgba(16, 16, 16, 0.2) 100%),
              linear-gradient(0deg, #101010 0%, transparent 60%);
  z-index: 1;
}

.hero-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 24px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  position: relative;
  z-index: 2;
  gap: 30px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229, 9, 20, 0.2);
  border: 1px solid rgba(229, 9, 20, 0.4);
  color: #ff858b;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 1px;
  width: fit-content;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-primary);
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
  word-wrap: break-word;
  overflow-wrap: break-word;
  letter-spacing: -0.5px;
}

.hero-meta-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.88rem;
  color: var(--silver-accent);
  flex-wrap: wrap;
}

.hero-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(229, 9, 20, 0.18);
  border: 1px solid rgba(229, 9, 20, 0.45);
  color: #ff858b;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: all var(--transition-fast);
}

.hero-badge-live.is-live {
  background: #e50914;
  border-color: #ff333a;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(229, 9, 20, 0.7);
  animation: live-glow-pulse 1.6s infinite ease-in-out;
}

@keyframes live-glow-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(229, 9, 20, 0);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(229, 9, 20, 0);
    transform: scale(1);
  }
}

.hero-badge-syllabus {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: #fff;
}

.hero-live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  color: var(--silver-accent);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

.live-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #00e676;
  box-shadow: 0 0 6px rgba(0, 230, 118, 0.7);
  display: inline-block;
}

.live-status-dot.is-live {
  background-color: #e50914;
  box-shadow: 0 0 8px rgba(229, 9, 20, 0.9);
  animation: live-dot-blink 1s infinite alternate;
}

.live-status-dot.is-offline {
  background-color: #ffc107;
  box-shadow: 0 0 6px rgba(255, 193, 7, 0.7);
}

@keyframes live-dot-blink {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

.hero-description {
  font-size: 1.05rem;
  color: #d0d0d0;
  line-height: 1.6;
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.btn-primary {
  background-color: var(--red-accent);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background-color: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.6);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
}

.hero-player-card {
  position: relative;
  width: 100%;
  max-width: 580px;
}

.hero-iframe-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  border: 1px solid rgba(229, 9, 20, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 35px rgba(229, 9, 20, 0.35);
  overflow: hidden;
}

.hero-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

/* 16:9 Netflix Hero Video Preview Card */
.hero-card-preview {
  position: relative;
  width: 100%;
  max-width: 580px;
  background: #141414;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 30px rgba(229, 9, 20, 0.2);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.hero-card-preview:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.nav-btn:focus-visible {
  outline: 3px solid #e50914;
  outline-offset: 4px;
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.7);
}

.hero-card-preview:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85), 0 0 35px rgba(229, 9, 20, 0.45);
  border-color: rgba(229, 9, 20, 0.6);
}

.hero-thumbnail-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
  overflow: hidden;
}

.hero-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hero-card-preview:hover .hero-thumbnail-img {
  transform: scale(1.05);
}

.hero-thumb-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.1) 45%, rgba(0, 0, 0, 0.88) 100%),
              radial-gradient(circle at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
}

.hero-thumb-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.hero-card-preview:hover .hero-thumb-play-overlay {
  opacity: 1;
}

.hero-play-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--red-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  padding-left: 4px;
  box-shadow: 0 4px 20px rgba(229, 9, 20, 0.6);
  transform: scale(0.9);
  transition: transform var(--transition-fast);
}

.hero-card-preview:hover .hero-play-icon {
  transform: scale(1.08);
}

.hero-play-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-thumb-badge-live {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(229, 9, 20, 0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.hero-thumb-badge-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
}

.hero-thumb-caption {
  padding: 10px 16px;
  background: #141414;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-caption-channel {
  font-size: 0.8rem;
  color: var(--silver-accent);
  font-weight: 600;
}

.hero-caption-status {
  font-size: 0.75rem;
  color: #00E676;
  font-weight: 700;
}

.hero-channel-badge {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  color: var(--silver-accent);
  font-size: 0.82rem;
}

/* ==========================================================================
   APP CONTENT CONTAINER
   ========================================================================== */
.main-content {
  flex: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 24px 60px;
  width: 100%;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  margin-top: 32px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.2px;
}

.section-title-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background-color: #262626;
  color: var(--silver-accent);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-btn {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--silver-accent);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-btn:hover {
  background-color: var(--red-accent);
  color: #fff;
  border-color: var(--red-accent);
  transform: scale(1.08);
}

/* ==========================================================================
   HORIZONTAL SCROLLING TOPIC ROW (NETFLIX CAROUSEL)
   ========================================================================== */
.carousel-track-wrapper {
  position: relative;
  overflow: hidden;
  padding: 10px 0 20px;
}

.topic-row-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  padding-top: 4px;
}

.topic-row-track::-webkit-scrollbar {
  height: 6px;
}

.topic-row-track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
}

.topic-card {
  flex: 0 0 290px;
  scroll-snap-align: start;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  user-select: none;
}

.topic-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--red-accent);
  background-color: var(--bg-card-hover);
  box-shadow: var(--shadow-hover);
}

.topic-card-thumb {
  position: relative;
  height: 160px;
  background: linear-gradient(135deg, #222222 0%, #141414 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topic-card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-normal);
}

.topic-card:hover .topic-card-thumb-img {
  transform: scale(1.08);
}

.topic-card-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(16, 16, 16, 0.8) 100%);
  pointer-events: none;
  z-index: 1;
}

.topic-card-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(229, 9, 20, 0.25) 0%, transparent 70%);
  opacity: 0.6;
  transition: opacity var(--transition-fast);
  z-index: 1;
}

.topic-card:hover .topic-card-bg-glow {
  opacity: 1;
}

.topic-card-icon-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: rgba(255, 255, 255, 0.45);
  background: linear-gradient(135deg, #222222 0%, #141414 100%);
  transition: transform var(--transition-fast), color var(--transition-fast);
  z-index: 0;
}

.topic-card:hover .topic-card-icon-fallback {
  transform: scale(1.1);
  color: var(--red-accent);
}

.topic-card-icon {
  font-size: 2.8rem;
  color: rgba(255, 255, 255, 0.4);
  transition: transform var(--transition-fast), color var(--transition-fast);
  z-index: 1;
}

.topic-card:hover .topic-card-icon {
  transform: scale(1.1);
  color: var(--red-accent);
}

.topic-card-form-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  z-index: 2;
  text-transform: uppercase;
}

.topic-card-count-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--red-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.topic-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  justify-content: space-between;
}

.topic-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.topic-card-years {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.year-chip {
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--silver-accent);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.topic-card-footer {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--silver-accent);
}

.topic-card-action-text {
  color: var(--red-accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   TOPIC DETAIL VIEW (THE CORE HIERARCHY PAGE)
   ========================================================================== */
.topic-detail-view {
  display: none; /* toggled via JS */
  flex-direction: column;
  gap: 24px;
}

.topic-detail-view.active {
  display: flex;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--silver-accent);
  margin-bottom: 4px;
}

.breadcrumb-link {
  color: var(--silver-accent);
  transition: color var(--transition-fast);
  cursor: pointer;
}

.breadcrumb-link:hover {
  color: var(--red-accent);
}

.breadcrumb-separator {
  color: var(--text-muted);
}

.topic-banner-card {
  background: linear-gradient(135deg, #202020 0%, #141414 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.topic-banner-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 350px;
  height: 100%;
  background: radial-gradient(circle at 100% 50%, rgba(229, 9, 20, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.topic-banner-info {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.topic-banner-badges {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-form {
  background: var(--red-accent);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.badge-subcode {
  background: rgba(255, 255, 255, 0.1);
  color: var(--silver-light);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.topic-banner-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.15;
}

.topic-banner-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--silver-accent);
  font-size: 0.9rem;
}

.topic-source-link {
  color: #ff6b72;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.topic-source-link:hover {
  color: #fff;
}

/* ==========================================================================
   RECORDING YEAR SELECTION TOOLBAR
   ========================================================================== */
.year-selector-section {
  background-color: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.year-selector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.year-selector-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.year-selector-hint {
  font-size: 0.78rem;
  color: var(--silver-dark);
}

.year-pills-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.year-pill {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
}

/* Available year style */
.year-pill.available {
  background-color: #262626;
  color: var(--silver-light);
  border-color: rgba(255, 255, 255, 0.12);
}

.year-pill.available:hover {
  background-color: #333333;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Empty year style (intentionally clickable to trigger fallback) */
.year-pill.empty-year {
  background-color: rgba(255, 255, 255, 0.03);
  color: #666666;
  border-color: rgba(255, 255, 255, 0.05);
}

.year-pill.empty-year:hover {
  background-color: rgba(229, 9, 20, 0.1);
  color: #ff999d;
  border-color: rgba(229, 9, 20, 0.3);
}

/* Active selected pill */
.year-pill.active {
  background-color: var(--red-accent) !important;
  color: #ffffff !important;
  border-color: var(--red-accent) !important;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.45);
  font-weight: 700;
}

.year-pill-count {
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

/* Explicit Year Selection Cards Grid */
.year-guide-header {
  margin-bottom: 6px;
}

.year-guide-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--red-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.year-guide-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.year-guide-desc {
  font-size: 0.86rem;
  color: var(--silver-accent);
  margin-top: 4px;
  line-height: 1.4;
}

.year-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

/* Base Year Card - Soft Dark Mode Tone with subtle depth */
.year-card {
  position: relative;
  background: linear-gradient(145deg, #1d1e23 0%, #131417 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  text-align: left;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

/* Subtle top edge illumination for cards */
.year-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  opacity: 0.7;
  transition: opacity var(--transition-fast), background var(--transition-fast);
}

/* Very subtle background tone variations between unselected cards */
/* Tone 1: Dark Slate / Charcoal */
.year-card:nth-child(3n+1) {
  background: linear-gradient(145deg, #1c1f26 0%, #121418 100%);
  border-color: rgba(255, 255, 255, 0.09);
}

/* Tone 2: Subtle Dark Burgundy / Mahogany tint */
.year-card:nth-child(3n+2) {
  background: linear-gradient(145deg, #241518 0%, #150d0f 100%);
  border-color: rgba(229, 9, 20, 0.14);
}
.year-card:nth-child(3n+2)::before {
  background: linear-gradient(90deg, transparent, rgba(229, 9, 20, 0.35), transparent);
}

/* Tone 3: Dark Graphite / Neutral Charcoal */
.year-card:nth-child(3n) {
  background: linear-gradient(145deg, #212125 0%, #141416 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Distinct Card "Semua" (Cohort Overview Card) */
.year-card:has(.count-all),
.year-card:last-child {
  background: linear-gradient(145deg, #1b232a 0%, #11171d 100%);
  border: 1px solid rgba(192, 192, 192, 0.18);
}
.year-card:has(.count-all)::before,
.year-card:last-child::before {
  background: linear-gradient(90deg, transparent, rgba(192, 192, 192, 0.4), transparent);
}

/* Unselected Card Hover Effect */
.year-card:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 9, 20, 0.6);
  background: linear-gradient(145deg, #281a1d 0%, #181013 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.65), 0 0 14px rgba(229, 9, 20, 0.18);
}

.year-card:hover::before {
  opacity: 1;
  background: linear-gradient(90deg, transparent, var(--red-accent), transparent);
}

.year-card:hover .year-card-year {
  color: #ffffff;
}

.year-card:hover .year-card-action {
  color: #ff4d55;
}

/* Selected Active Year Card: Prominent dark red / burgundy, crisp border and controlled red glow */
.year-card.active,
.year-card:has(.count-all).active,
.year-card:last-child.active {
  background: linear-gradient(140deg, #3d0d12 0%, #24090c 55%, #160507 100%) !important;
  border: 1.5px solid var(--red-accent) !important;
  box-shadow: 0 0 22px rgba(229, 9, 20, 0.4), 0 10px 28px rgba(0, 0, 0, 0.75) !important;
  transform: translateY(-2px);
}

.year-card.active::before {
  opacity: 1;
  background: linear-gradient(90deg, transparent, #ff4d55, transparent);
  height: 2px;
}

.year-card.active:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 28px rgba(229, 9, 20, 0.55), 0 12px 30px rgba(0, 0, 0, 0.8) !important;
}

.year-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.year-card-year {
  font-size: 1.38rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1.1;
  transition: color var(--transition-fast);
}

.year-card.active .year-card-year {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.year-card-count {
  font-size: 0.74rem;
  background: rgba(229, 9, 20, 0.16);
  color: #ff858b;
  border: 1px solid rgba(229, 9, 20, 0.38);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.year-card-count.count-all {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.year-card.active .year-card-count {
  background: var(--red-accent);
  color: #ffffff;
  border-color: #ff4d55;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.5);
  font-weight: 800;
}

.year-card.active .year-card-count.count-all {
  background: var(--red-accent);
  color: #ffffff;
  border-color: #ff4d55;
}

.year-card-label {
  font-size: 0.82rem;
  color: var(--silver-accent);
  line-height: 1.35;
  font-weight: 500;
}

.year-card.active .year-card-label {
  color: rgba(255, 255, 255, 0.9);
}

.year-card-action {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red-accent);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.year-card.active .year-card-action {
  color: #ff757c;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(229, 9, 20, 0.4);
}

/* ==========================================================================
   CLASS SELECTION TOOLBAR (HIERARCHY: TOPIK -> TAHUN -> KELAS -> VIDEO)
   ========================================================================== */
.class-selector-section {
  background-color: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
  animation: fadeIn 0.3s ease-in-out;
}

.class-guide-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #ff3b45;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.class-guide-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.class-guide-desc {
  font-size: 0.86rem;
  color: var(--silver-accent);
  margin-top: 4px;
  line-height: 1.4;
}

.class-pills-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.class-pill {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: #242424;
  color: var(--silver-light);
}

.class-pill:hover {
  background-color: #333333;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.class-pill.active {
  background-color: var(--red-accent) !important;
  color: #ffffff !important;
  border-color: var(--red-accent) !important;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.45);
  font-weight: 700;
}

.class-pill-count {
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

.class-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: #e0e0e0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.class-badge-tag.highlight {
  background: rgba(229, 9, 20, 0.18);
  color: #ff9da2;
  border-color: rgba(229, 9, 20, 0.45);
}

/* ==========================================================================
   FALLBACK ENGINE UI (MANDATORY REQUIREMENT)
   ========================================================================== */
.fallback-alert-banner {
  background: linear-gradient(90deg, rgba(229, 9, 20, 0.15) 0%, rgba(24, 24, 24, 0.8) 100%);
  border: 1px solid rgba(229, 9, 20, 0.5);
  border-left: 5px solid var(--red-accent);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.fallback-alert-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.fallback-alert-icon {
  font-size: 1.8rem;
  color: var(--red-accent);
  flex-shrink: 0;
  line-height: 1;
}

.fallback-alert-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.fallback-alert-message {
  font-size: 0.92rem;
  color: #dddddd;
  line-height: 1.5;
}

.fallback-available-years-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.fallback-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 6px;
}

.fallback-section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 16px;
}

.fallback-section-divider-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--silver-accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.fallback-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   VIDEO CARDS GRID
   ========================================================================== */
.videos-grid-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.video-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.video-card:hover {
  transform: translateY(-5px);
  border-color: var(--red-accent);
  background-color: var(--bg-card-hover);
  box-shadow: var(--shadow-hover);
}

.video-thumb-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #050505;
  overflow: hidden;
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.video-card:hover .video-thumb-img {
  transform: scale(1.06);
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.video-card:hover .video-play-overlay {
  opacity: 1;
}

.play-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--red-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  transform: scale(0.9);
  transition: transform var(--transition-fast);
}

.video-card:hover .play-circle {
  transform: scale(1);
}

.video-year-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: var(--silver-light);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-seq-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(229, 9, 20, 0.9);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

.video-class-overlay-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(18, 18, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.70rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  z-index: 2;
  letter-spacing: 0.5px;
}

.video-class-overlay-badge.highlight {
  background: rgba(229, 9, 20, 0.9);
  border-color: #ff4752;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
}

.video-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  justify-content: space-between;
}

.video-card-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--silver-dark);
  margin-top: 4px;
}

.video-status-tag {
  font-size: 0.72rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.video-status-tag.tag-verified {
  color: #00E676;
}

.video-status-tag.tag-review {
  color: #FFB300;
  background: rgba(255, 179, 0, 0.12);
  border: 1px solid rgba(255, 179, 0, 0.35);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
}

.video-status-tag.tag-duplicate {
  color: #B0B0B0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
}

.video-verified-tag {
  color: #00E676;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   VIDEO PLAYBACK MODAL / CINEMA PLAYER
   ========================================================================== */
.player-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.player-modal-backdrop.active {
  display: flex;
}

.player-modal-card {
  background-color: #141414;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1080px;
  max-height: 94vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  position: relative;
  animation: modalPop 0.25s cubic-bezier(0.2, 0, 0, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.player-modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.player-topbar-topic {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--silver-accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-modal {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.btn-close-modal:hover {
  background-color: var(--red-accent);
  transform: rotate(90deg);
}

.player-video-embed-box {
  width: 100%;
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #000;
}

.player-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.player-helper-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #181818;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 20px;
  font-size: 0.82rem;
  color: var(--silver-accent);
  flex-wrap: wrap;
}

.player-helper-text {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.player-helper-bar code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: #ff858b;
  font-size: 0.8rem;
  font-family: monospace;
}

.player-details-section {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.player-video-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
}

.player-meta-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.player-nav-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 12px;
}

.btn-nav-video {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-nav-video:hover:not(:disabled) {
  background: var(--red-accent);
  transform: translateY(-2px);
}

.btn-nav-video:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Playlist Drawer inside Player */
.player-playlist-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.player-playlist-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--silver-accent);
}

.player-playlist-items {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.player-playlist-item {
  flex: 0 0 160px;
  cursor: pointer;
  background: #1e1e1e;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.player-playlist-item.active {
  border-color: var(--red-accent);
  background: #282828;
}

.player-playlist-item:hover {
  border-color: rgba(229, 9, 20, 0.6);
  transform: translateY(-3px);
}

.player-item-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.player-item-title {
  font-size: 0.74rem;
  padding: 6px;
  font-weight: 600;
  color: #ddd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   SEARCH RESULTS VIEW
   ========================================================================== */
.search-results-view {
  display: none;
  flex-direction: column;
  gap: 20px;
}

.search-results-view.active {
  display: flex;
}

.search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

.search-results-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.search-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-pill {
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: #242424;
  color: var(--silver-accent);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-pill.active {
  background: var(--red-accent);
  color: #fff;
  font-weight: 700;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background-color: #0c0c0c;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px 24px 30px;
  color: var(--silver-dark);
  font-size: 0.85rem;
}

.footer-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6));
}

.footer-brand-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.footer-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-copy {
  color: var(--silver-dark);
}

.footer-copy a {
  color: var(--silver-light);
  text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .header-container {
    gap: 12px;
    padding: 0 16px;
  }

  .brand-subtitle {
    display: none;
  }

  .nav-links {
    gap: 4px;
  }

  .nav-btn {
    padding: 6px 10px;
    font-size: 0.86rem;
  }

  .search-input {
    width: 160px;
  }

  .search-input:focus {
    width: 200px;
  }
}

@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 30px 16px;
  }

  .hero-content {
    align-items: center;
  }

  .hero-meta-strip, .hero-cta-group {
    justify-content: center;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-visual {
    order: -1;
  }

  .hero-card-preview {
    max-width: 100%;
    margin: 0 auto;
  }

  .topic-card {
    flex: 0 0 240px;
  }
}

@media (max-width: 820px) {
  .site-header {
    height: auto;
    padding: 8px 0;
  }

  .header-container {
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-links {
    order: 2;
    display: flex;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .header-actions {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .search-box-wrapper {
    flex: 1;
  }

  .search-input {
    width: 100%;
  }

  .search-input:focus {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: auto;
    padding: 8px 0;
  }

  .header-container {
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand-section {
    width: 100%;
    justify-content: flex-start;
  }

  .header-actions {
    order: 2;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

  .main-content {
    padding: 16px 14px 40px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding: 6px 0 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-btn {
    padding: 6px 10px;
    font-size: 0.82rem;
    flex-shrink: 0;
  }

  .search-box-wrapper {
    width: 100%;
  }

  .search-input {
    width: 100% !important;
  }

  .topic-banner-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .topic-banner-title {
    font-size: 1.6rem;
  }

  .videos-grid {
    grid-template-columns: 1fr;
  }

  .year-selector-section {
    padding: 16px 14px;
  }

  .year-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .year-card {
    padding: 14px 12px;
    gap: 8px;
  }

  .year-card-year {
    font-size: 1.15rem;
  }

  .year-card-count {
    font-size: 0.68rem;
    padding: 2px 6px;
  }

  .year-card-label {
    font-size: 0.75rem;
  }

  .year-card-action {
    font-size: 0.72rem;
  }
}

@media (max-width: 350px) {
  .year-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FILE PROTOCOL HELPER BANNER (NON-TECHNICAL USER GUIDANCE)
   ========================================================================== */
.file-protocol-banner {
  background: linear-gradient(90deg, #241600 0%, #3a2200 100%);
  border-bottom: 2px solid rgba(255, 193, 7, 0.6);
  color: #fff;
  padding: 12px 24px;
  position: relative;
  z-index: 1000;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

.file-protocol-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.file-protocol-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.file-protocol-content {
  flex: 1;
  min-width: 280px;
}

.file-protocol-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: #ffd54f;
  margin-bottom: 2px;
}

.file-protocol-desc {
  font-size: 0.84rem;
  color: #f0f0f0;
  line-height: 1.4;
}

.file-protocol-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.file-banner-dismiss-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ccc;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.file-banner-dismiss-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ==========================================================================
   ARKIB VIDEO LUKISAN KEJURUTERAAN (LKJ) - SECONDARY ARCHIVE STYLES
   ========================================================================== */

/* Header Archive Nav Button */
.btn-archive-nav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e0e0e0;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-archive-nav:hover {
  background: rgba(229, 9, 20, 0.15);
  border-color: rgba(229, 9, 20, 0.5);
  color: #fff;
  transform: translateY(-1px);
}

.archive-nav-icon {
  font-size: 0.95rem;
}

/* Home Page Archive Teaser Section */
.archive-teaser-section {
  margin-top: 48px;
  margin-bottom: 24px;
  padding: 0 4%;
}

.archive-teaser-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, rgba(30, 24, 18, 0.8) 0%, rgba(20, 20, 20, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.archive-teaser-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #d4af37, #f39c12);
}

.archive-teaser-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.15);
  color: #f1c40f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.archive-teaser-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.archive-teaser-desc {
  font-size: 0.88rem;
  color: var(--silver-accent);
  line-height: 1.5;
  max-width: 650px;
}

.archive-teaser-btn {
  white-space: nowrap;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #fff;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.archive-teaser-btn:hover {
  background: #d4af37;
  color: #000;
  border-color: #d4af37;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

/* Dedicated LK Archive View */
.lk-archive-view {
  padding-bottom: 60px;
}

.archive-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4%;
  margin-bottom: 12px;
  background: rgba(20, 20, 20, 0.6);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

.btn-back-gkt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red-accent);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-back-gkt:hover {
  background: var(--red-hover);
  transform: translateX(-3px);
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.4);
}

.archive-status-badge {
  font-size: 0.78rem;
  color: var(--silver-accent);
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Archive Hero Banner Card */
.archive-banner-card {
  position: relative;
  margin: 16px 4% 36px 4%;
  padding: 36px 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(35, 28, 20, 0.9) 0%, rgba(18, 18, 18, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

.archive-banner-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.archive-banner-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: #f1c40f;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.archive-banner-title {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}

.archive-banner-desc {
  font-size: 0.92rem;
  color: var(--silver-accent);
  max-width: 800px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.archive-banner-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--silver-dark);
  flex-wrap: wrap;
}

.section-title-badge.archive-badge {
  background: rgba(212, 175, 55, 0.15);
  color: #f1c40f;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Search Results Archive Badge */
.search-archive-tag {
  background: rgba(212, 175, 55, 0.2);
  color: #f39c12;
  border: 1px solid rgba(212, 175, 55, 0.4);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
  .archive-teaser-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .archive-banner-card {
    padding: 24px;
  }
  .archive-banner-title {
    font-size: 1.5rem;
  }
}
