/* ==========================================================================
   Google Light Theme (Lite Mode) - Design Tokens & Global Styles
   ========================================================================== */

:root {
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f3f4;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f3f4;
  --bg-input: #f1f3f4;
  --bg-modal: rgba(255, 255, 255, 0.98);

  --text-primary: #202124;
  --text-secondary: #5f6368;
  --text-muted: #80868b;

  --accent-blue: #1a73e8;
  --accent-blue-hover: #1557b0;
  --accent-red: #ea4335;
  --accent-green: #34a853;
  --accent-yellow: #fbbc04;

  --border-subtle: #dadce0;
  --border-focus: #1a73e8;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --font-main: 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --header-height: 60px;
  --sidebar-width: 240px;
  --sidebar-collapsed-width: 72px;

  --shadow-sm: 0 1px 3px rgba(60, 64, 67, 0.12), 0 1px 2px rgba(60, 64, 67, 0.24);
  --shadow-md: 0 4px 12px rgba(60, 64, 67, 0.15);
  --shadow-lg: 0 12px 28px rgba(60, 64, 67, 0.2);

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #dadce0;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #bdc1c6;
}

/* Common interactive elements */
button, input, select, textarea {
  font-family: inherit;
  font-size: 14px;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

/* ==========================================================================
   Header / Navbar (Google Light Mode)
   ========================================================================== */

.yt-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: #ffffff;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-secondary);
}
.icon-btn:hover {
  background-color: #f1f3f4;
  color: var(--text-primary);
}

.yt-logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
  position: relative;
  user-select: none;
}
.google-logo-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.google-logo-text {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
  font-family: 'Product Sans', 'Roboto', sans-serif;
}
.google-admin-badge {
  background: #ea4335;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
  letter-spacing: 0.5px;
}

/* Center Search */
.header-center {
  flex: 0 1 700px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 16px;
}

.search-box-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.1);
  transition: all var(--transition-fast);
}
.search-box-wrapper:focus-within {
  border-color: var(--accent-blue);
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.2);
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 18px;
  color: var(--text-primary);
  font-size: 15px;
}
.search-input::placeholder {
  color: var(--text-muted);
}

.search-btn {
  background-color: #f8f9fa;
  border-left: 1px solid var(--border-subtle);
  padding: 0 20px;
  height: 40px;
  color: var(--text-secondary);
}
.search-btn:hover {
  background-color: #f1f3f4;
  color: var(--text-primary);
}

.voice-btn {
  background-color: #f8f9fa;
  border: 1px solid var(--border-subtle);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  color: var(--text-secondary);
}
.voice-btn:hover {
  background-color: #f1f3f4;
  color: var(--accent-blue);
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 13.5px;
  background-color: #f1f3f4;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
}
.pill-action-btn:hover {
  background-color: #e8eaed;
}

.user-avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: #1a73e8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Top Dashboard Banner on index.html (Light Mode)
   "top me deshbord ho jis per me jo likhu admin se bo show ho"
   ========================================================================== */

.top-dashboard-banner {
  background: linear-gradient(135deg, #e8f0fe, #fce8e6, #fef7e0, #e6f4ea);
  border: 1px solid rgba(26, 115, 232, 0.25);
  border-left: 5px solid var(--accent-blue);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.1);
}
.dashboard-badge-tag {
  background: var(--accent-blue);
  color: #ffffff;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.3);
}
.dashboard-content-text {
  font-size: 14.5px;
  color: #202124;
  font-weight: 500;
  line-height: 1.45;
  flex: 1;
}

/* ==========================================================================
   App Layout & Sidebar (Light Mode)
   ========================================================================== */

.app-container {
  display: flex;
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}

.yt-sidebar {
  width: var(--sidebar-width);
  background-color: #ffffff;
  position: fixed;
  top: var(--header-height);
  bottom: 0;
  left: 0;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 90;
  border-right: 1px solid var(--border-subtle);
  transition: width var(--transition-normal), transform var(--transition-normal);
}

.yt-sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
  padding: 12px 6px;
}

.yt-sidebar.collapsed .sidebar-text,
.yt-sidebar.collapsed .sidebar-header,
.yt-sidebar.collapsed .badge-pill {
  display: none;
}

.yt-sidebar.collapsed .sidebar-item {
  flex-direction: column;
  padding: 14px 4px;
  gap: 6px;
  font-size: 10px;
  text-align: center;
  justify-content: center;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-header {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: background-color var(--transition-fast);
}
.sidebar-item:hover {
  background-color: #f1f3f4;
}
.sidebar-item.active {
  background-color: #e8f0fe;
  color: var(--accent-blue);
  font-weight: 600;
}

.sidebar-item.close-video-item {
  background: #fce8e6;
  border: 1px solid #fad2cf;
  color: #c5221f;
}
.sidebar-item.close-video-item:hover {
  background: #f9d2ce;
}
.sidebar-item.close-video-item.active {
  background: #ea4335;
  color: #ffffff;
}

.badge-pill {
  margin-left: auto;
  background-color: var(--accent-red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.sidebar-divider {
  height: 1px;
  background-color: var(--border-subtle);
  margin: 6px 4px;
}

/* Main Content Area */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 16px 24px 60px 24px;
  transition: margin-left var(--transition-normal);
  width: calc(100% - var(--sidebar-width));
}

.yt-sidebar.collapsed ~ .main-content {
  margin-left: var(--sidebar-collapsed-width);
  width: calc(100% - var(--sidebar-collapsed-width));
}

/* ==========================================================================
   Category Chips Bar (Light Mode)
   ========================================================================== */

.category-bar-wrapper {
  position: sticky;
  top: var(--header-height);
  background-color: var(--bg-primary);
  z-index: 80;
  padding: 8px 0 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.category-bar-wrapper::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.06);
  transition: all var(--transition-fast);
}
.cat-chip:hover {
  background-color: #f1f3f4;
}
.cat-chip.active {
  background-color: #202124;
  color: #ffffff;
  border-color: #202124;
  font-weight: 600;
}

.cat-chip.close-video-chip {
  background: #fce8e6;
  border: 1px solid #fad2cf;
  color: #c5221f;
}
.cat-chip.close-video-chip:hover {
  background: #f9d2ce;
}
.cat-chip.close-video-chip.active {
  background: var(--accent-red);
  color: #ffffff;
  border-color: var(--accent-red);
}

.feed-header-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 12px 18px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent-blue);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-blue);
}
.feed-header-info h2 {
  font-size: 18px;
  font-weight: 600;
}
.feed-header-info p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ==========================================================================
   Video / Picture Feed Grid (Light Mode)
   "jitne pic size ho resion and utne me he show ho"
   ========================================================================== */

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px 18px;
}

.media-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  border-radius: var(--radius-md);
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
}
.media-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(60, 64, 67, 0.16);
}

/* Video thumbnail box (16:9) */
.card-thumbnail-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #e8eaed;
}

/* Picture / Image box (ORIGINAL RATIO & RESOLUTION - NO CROPPING) */
.card-thumbnail-box.is-image-box {
  aspect-ratio: auto;
  min-height: 180px;
  max-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f3f4;
}

.card-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}
.card-thumbnail-box.is-image-box .card-thumbnail-img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
}
.media-card:hover .card-thumbnail-img {
  transform: scale(1.02);
}

.duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(32, 33, 36, 0.85);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
}

.type-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.type-badge.badge-pic {
  background: rgba(168, 85, 247, 0.9);
  color: #fff;
}
.type-badge.badge-video {
  background: rgba(26, 115, 232, 0.9);
  color: #fff;
}
.type-badge.badge-close-video {
  background: var(--accent-red);
  color: #fff;
}

.card-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.media-card:hover .card-play-overlay {
  opacity: 1;
}
.play-icon-circle {
  width: 48px;
  height: 48px;
  background-color: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Card details (Title shows below image or video) */
.card-details {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 0 14px 14px 14px;
}

.channel-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background-color: #e8eaed;
}

.card-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}
.card-channel-name {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-stats {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Admin Studio Panel (Light Mode)
   "admin se he video upliode kr saku and delete bhe and hide bhe"
   ========================================================================== */

.studio-banner {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.studio-banner-title h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #202124;
}
.studio-badge {
  background-color: var(--accent-blue);
  color: white;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}
.studio-banner-title p {
  color: var(--text-secondary);
  font-size: 14px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.stat-card {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: #f1f3f4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.stat-num {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  color: #202124;
}
.stat-label {
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* Admin Add Card */
.admin-add-card {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}
.admin-add-card h3 {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #202124;
}

.type-toggle-group {
  display: inline-flex;
  background-color: #f1f3f4;
  border-radius: var(--radius-full);
  padding: 4px;
  border: 1px solid var(--border-subtle);
  width: fit-content;
}
.type-toggle-btn {
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}
.type-toggle-btn.active {
  background-color: #ffffff;
  color: var(--accent-blue);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  font-weight: 600;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.form-input {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  outline: none;
  font-size: 14px;
  transition: border-color var(--transition-fast);
}
.form-input:focus {
  border-color: var(--border-focus);
}

.file-dropzone {
  border: 2px dashed #dadce0;
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  background-color: #f8f9fa;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.file-dropzone:hover {
  border-color: var(--accent-blue);
  background-color: #e8f0fe;
}
.choose-file-btn {
  background-color: #ffffff;
  color: var(--accent-blue);
  border: 1px solid #dadce0;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.1);
}
.choose-file-btn:hover {
  background-color: #f1f3f4;
}

.media-preview-container {
  display: none;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #000;
  border: 1px solid var(--border-subtle);
}
.media-preview-container.active {
  display: block;
}
.media-preview-container video,
.media-preview-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.remove-preview-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.remove-preview-btn:hover {
  background-color: var(--accent-red);
}

/* ==========================================================================
   Admin Content List & TOGGLE SWITCHES + DELETE BUTTON
   "admin se he video upliode kr saku and delete bhe and hide bhe"
   ========================================================================== */

.admin-table-container {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.admin-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-table-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #202124;
}

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

.admin-media-item-card {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
  transition: all var(--transition-fast);
}
.admin-media-item-card.is-off {
  border-color: #fce8e6;
  background-color: #fff8f7;
  opacity: 0.9;
}

.admin-item-thumb-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #f1f3f4;
  overflow: hidden;
}
.admin-item-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-item-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
}
.admin-item-badge.category {
  top: 8px;
  right: 8px;
  left: auto;
  background: rgba(32, 33, 36, 0.85);
  color: #fff;
}

.admin-item-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.admin-item-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #202124;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.admin-item-meta {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

/* ==========================================================================
   THE TOGGLE SWITCH (Hide/Show on Website) & DELETE BUTTON
   ========================================================================== */

.admin-toggle-wrapper {
  margin-top: auto;
  padding: 14px 16px;
  background-color: #f8f9fa;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toggle-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toggle-title {
  font-size: 13px;
  font-weight: 600;
  color: #202124;
}
.toggle-status-badge {
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.toggle-status-badge.status-on {
  color: #188038;
}
.toggle-status-badge.status-off {
  color: #d93025;
}

/* Switch Slider */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #dadce0;
  border-radius: 34px;
  transition: var(--transition-fast);
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: var(--transition-fast);
}
input:checked + .slider {
  background-color: #34a853;
}
input:checked + .slider:before {
  transform: translateX(24px);
}

/* Delete Button */
.admin-delete-btn {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background-color: #fce8e6;
  color: #d93025;
  border: 1px solid #fad2cf;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.admin-delete-btn:hover {
  background-color: #f9d2ce;
  border-color: #d93025;
}

/* ==========================================================================
   Watch / Theater Player Modal (Light Mode)
   ========================================================================== */

.watch-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(32, 33, 36, 0.7);
  backdrop-filter: blur(8px);
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 10px;
}
.watch-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.watch-container {
  width: 100%;
  max-width: 1280px;
  max-height: 96vh;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  border: 1px solid var(--border-subtle);
}

@media (max-width: 1024px) {
  .watch-container {
    grid-template-columns: 1fr;
  }
}

.watch-close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 36px;
  height: 36px;
  background-color: #f1f3f4;
  border-radius: 50%;
  color: #202124;
  z-index: 10;
}
.watch-close-btn:hover {
  background-color: #e8eaed;
}

.watch-player-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.watch-player-box video {
  width: 100%;
  height: 100%;
  outline: none;
}
.watch-player-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.watch-title {
  font-size: 20px;
  font-weight: 700;
  margin-top: 16px;
  line-height: 1.35;
  color: #202124;
}

.watch-channel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.watch-channel-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.watch-channel-name {
  font-weight: 600;
  font-size: 15px;
  color: #202124;
}
.watch-sub-count {
  font-size: 12px;
  color: var(--text-secondary);
}

.btn-subscribe {
  background-color: #202124;
  color: #ffffff;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
}
.btn-subscribe.subscribed {
  background-color: #f1f3f4;
  color: #202124;
}

.watch-actions-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-watch-action {
  background-color: #f1f3f4;
  color: #202124;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 500;
  gap: 6px;
}
.btn-watch-action:hover {
  background-color: #e8eaed;
}

/* Comments Section */
.comments-section {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.comment-input-box {
  display: flex;
  gap: 12px;
}
.comment-input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  color: #202124;
  padding: 8px 0;
  outline: none;
}
.comment-input:focus {
  border-bottom-color: var(--accent-blue);
}

.comment-item {
  display: flex;
  gap: 12px;
}
.comment-author {
  font-size: 13px;
  font-weight: 600;
  color: #202124;
}
.comment-text {
  font-size: 14px;
  color: #3c4043;
}

/* ==========================================================================
   Toast Notification System
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.toast {
  background: #ffffff;
  color: #202124;
  border: 1px solid var(--border-subtle);
  border-left: 5px solid var(--accent-blue);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease-out forwards;
}
.toast.toast-success {
  border-left-color: #34a853;
}
.toast.toast-close-special {
  border-left-color: #ea4335;
  font-weight: 600;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Empty state */
.empty-feed {
  grid-column: 1 / -1;
  text-align: center;
  padding: 70px 20px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.empty-feed svg {
  margin-bottom: 16px;
  color: var(--accent-blue);
}
.empty-feed h3 {
  font-size: 18px;
  color: #202124;
  margin-bottom: 8px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .yt-sidebar {
    position: fixed;
    transform: translateX(-100%);
    z-index: 150;
  }
  .yt-sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 12px;
  }
  .header-center {
    display: none;
  }
  .media-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Choose Video Upload Section & Card Delete Button on index.html
   "us me asa ho jitne bhe pic and video he bha per un ko dlete krne ka butten ho
    and ek video uplode krne ki opction ho but jo video yaha se uplod hogi o
    admin me show hogi video ya pic index file me nhi ho"
   ========================================================================== */

.choose-video-panel {
  margin-bottom: 24px;
}

.choose-video-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-left: 5px solid #ea4335;
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.choose-video-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.choose-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fce8e6;
  color: #ea4335;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.choose-upload-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.choose-file-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-choose-file {
  background: #1a73e8;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(26, 115, 232, 0.3);
  transition: all var(--transition-fast);
}

.btn-choose-file:hover {
  background: #1557b0;
  transform: translateY(-1px);
}

.user-file-name {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-preview-box {
  position: relative;
  max-width: 450px;
  background: #000000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

#user-preview-content {
  width: 100%;
  max-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#user-preview-content video,
#user-preview-content img {
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
}

.user-remove-preview-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(32, 33, 36, 0.85);
  color: #ffffff;
  border: none;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.user-remove-preview-btn:hover {
  background: #ea4335;
}

.user-input-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.user-title-input {
  flex: 1;
  min-width: 260px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: #f8f9fa;
  font-size: 14px;
  color: #202124;
  outline: none;
  transition: all var(--transition-fast);
}
.user-title-input:focus {
  background: #ffffff;
  border-color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.15);
}

.btn-user-submit {
  background: #34a853;
  color: #ffffff;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(52, 168, 83, 0.3);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.btn-user-submit:hover {
  background: #2d9249;
  transform: translateY(-1px);
}

.user-upload-alert {
  background: #e6f4ea;
  border: 1px solid #ceead6;
  color: #137333;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.5;
}

/* Card Delete Button for Choose Video Category */
.card-delete-action-btn {
  margin-top: 8px;
  padding: 5px 12px;
  background: #fce8e6;
  color: #d93025;
  border: 1px solid #fad2cf;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  align-self: flex-start;
}
.card-delete-action-btn:hover {
  background: #f9d2ce;
  border-color: #d93025;
  transform: translateY(-1px);
}

/* Badge for Admin items submitted from index.html */
.admin-item-badge.submission {
  background: #fef7e0;
  color: #b06000;
  border: 1px solid #fce8b2;
  font-weight: 700;
}
