/* ==========================================================================
   YouTube Anime — Design System & Stylesheet
   ========================================================================== */

/* Variables & Theme Tokens */
:root {
  --yt-black-bg: #0f0f0f;
  --yt-dark-card: #1f1f1f;
  --yt-hover-bg: #272727;
  --yt-border-color: #3f3f3f;
  --yt-text-primary: #f1f1f1;
  --yt-text-secondary: #aaaaaa;
  --yt-red: #ff0000;
  --yt-red-dark: #cc0000;
  --font-main: 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --sidebar-width: 240px;
  --sidebar-collapsed-width: 72px;
  --topbar-height: 56px;
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-premium: 0 4px 20px rgba(0, 0, 0, 0.5);
  --glass-bg: rgba(31, 31, 31, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
}

/* Reset & Baseline */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background-color: var(--yt-black-bg);
  color: var(--yt-text-primary);
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.4;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; color: inherit; background: none; border: none; outline: none; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--yt-black-bg); }
::-webkit-scrollbar-thumb { background: #3e3e3e; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #5a5a5a; }

/* Utility */
.hidden { display: none !important; }

/* Keyframes */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes dropdownSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes popupIn {
  from { opacity: 0; transform: scale(0.92) translateY(24px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bannerSlide {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-fade-in { animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards; }

/* Skeleton Shimmer */
.skeleton {
  background: linear-gradient(90deg, #1f1f1f 25%, #2c2c2c 50%, #1f1f1f 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 12px;
}

/* Common UI */
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer; color: var(--yt-text-primary);
  transition: var(--transition-smooth);
}
.icon-btn:hover { background-color: var(--yt-hover-bg); }
.icon-btn:active { background-color: var(--yt-border-color); }

/* ==========================================================================
   Topbar
   ========================================================================== */
.topbar {
  position: fixed; top: 0; left: 0; width: 100%;
  height: var(--topbar-height); background-color: var(--yt-black-bg);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.logo-link { display: flex; align-items: center; }
.logo-container { display: flex; align-items: center; gap: 4px; }
.logo-icon { color: var(--yt-red); font-size: 28px; }
.logo-text {
  font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 700;
  letter-spacing: -0.5px; display: flex; align-items: center; color: var(--yt-text-primary);
}
.logo-badge {
  background-color: var(--yt-red); color: #fff; font-size: 10px;
  font-weight: 600; padding: 2px 6px; border-radius: 4px; margin-left: 4px; text-transform: uppercase;
}

/* Search */
.topbar-center { flex: 0 1 640px; position: relative; margin: 0 16px; }
.search-form { display: flex; align-items: center; width: 100%; height: 40px; }
.search-box-container {
  flex: 1; display: flex; align-items: center;
  background-color: #121212; border: 1px solid var(--yt-border-color);
  border-right: none; border-radius: 40px 0 0 40px;
  padding: 0 16px; height: 100%; transition: border-color 0.2s;
}
.search-box-container:focus-within { border-color: #1a73e8; }
.search-box-container input { width: 100%; height: 100%; font-size: 16px; color: var(--yt-text-primary); }
.search-box-container input::placeholder { color: #717171; }
.clear-btn { cursor: pointer; color: var(--yt-text-secondary); font-size: 16px; padding: 4px; }
.search-btn {
  width: 64px; height: 100%; background-color: #222;
  border: 1px solid var(--yt-border-color); border-radius: 0 40px 40px 0;
  cursor: pointer; font-size: 16px; display: flex; align-items: center;
  justify-content: center; transition: background-color 0.2s;
}
.search-btn:hover { background-color: #303030; }

/* Suggestions Panel */
.suggestions-panel {
  position: absolute; top: calc(100% + 4px); left: 0;
  width: calc(100% - 64px); background-color: #212121;
  border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.08); overflow: hidden;
  z-index: 1010; animation: dropdownSlide 0.2s cubic-bezier(0.4,0,0.2,1);
}
.rich-suggestion-item {
  padding: 10px 16px; display: flex; align-items: center;
  gap: 16px; cursor: pointer; transition: background-color 0.2s;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.rich-suggestion-item:hover { background-color: var(--yt-hover-bg); }
.rich-suggestion-thumb { width: 70px; height: 42px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.rich-suggestion-info { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; }
.rich-suggestion-title { font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rich-suggestion-meta { font-size: 11px; color: var(--yt-text-secondary); display: flex; align-items: center; gap: 6px; }
.rich-suggestion-score { color: #0385ff; font-weight: 700; }
.rich-suggestion-play { font-size: 16px; color: var(--yt-red); opacity: 0.8; margin-left: auto; transition: opacity 0.2s; }
.rich-suggestion-item:hover .rich-suggestion-play { opacity: 1; transform: scale(1.1); }

.topbar-right { display: flex; align-items: center; gap: 8px; position: relative; }
.avatar-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; cursor: pointer; border: 1.5px solid transparent; transition: var(--transition-smooth); }
.avatar-img:hover { border-color: var(--yt-red); }
.notification-badge {
  position: absolute; top: 2px; right: 2px;
  background-color: var(--yt-red); color: #fff; font-size: 11px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar {
  position: fixed; top: var(--topbar-height); left: 0;
  width: var(--sidebar-width); height: calc(100vh - var(--topbar-height));
  background-color: var(--yt-black-bg); padding: 12px 12px 24px 12px;
  overflow-y: auto; z-index: 900;
  transition: width 0.25s cubic-bezier(0.4,0,0.2,1);
}
.sidebar.collapsed { width: var(--sidebar-collapsed-width); padding: 8px 4px; overflow: hidden; }
.sidebar-section { display: flex; flex-direction: column; gap: 4px; }
.sidebar-header { padding: 6px 12px; font-size: 14px; font-weight: 700; color: var(--yt-text-primary); margin-top: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.sidebar.collapsed .sidebar-header, .sidebar.collapsed .sidebar-divider, .sidebar.collapsed .empty-subs-msg { display: none !important; }
.sidebar-item { height: 40px; display: flex; align-items: center; gap: 24px; padding: 0 12px; border-radius: 10px; cursor: pointer; transition: background-color 0.15s; color: var(--yt-text-primary); }
.sidebar-item:hover { background-color: var(--yt-hover-bg); }
.sidebar-item.active { background-color: var(--yt-hover-bg); font-weight: 500; }
.sidebar-icon { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; color: var(--yt-text-primary); }
.sidebar-item.active .sidebar-icon { color: var(--yt-red); }
.sidebar-label { font-size: 14px; white-space: nowrap; }
.sidebar.collapsed .sidebar-item { flex-direction: column; justify-content: center; gap: 6px; height: 72px; padding: 0; border-radius: 8px; }
.sidebar.collapsed .sidebar-label { font-size: 10px; }
.sidebar.collapsed .sidebar-icon { font-size: 20px; }
.sidebar-divider { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin: 12px 0; }

/* Sidebar Subscriptions */
.subscriptions-sub-list { display: flex; flex-direction: column; gap: 2px; }
.empty-subs-msg { padding: 8px 12px; font-size: 12px; color: var(--yt-text-secondary); line-height: 1.5; }
.subbed-anime-item { display: flex; align-items: center; gap: 12px; padding: 6px 12px; border-radius: 10px; cursor: pointer; transition: background-color 0.15s; }
.subbed-anime-item:hover { background-color: var(--yt-hover-bg); }
.subbed-anime-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.subbed-anime-title { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-grow: 1; }
.sidebar.collapsed .subbed-anime-item { justify-content: center; padding: 8px 0; height: 60px; }
.sidebar.collapsed .subbed-anime-title { display: none; }
.sidebar.collapsed .subbed-anime-avatar { width: 32px; height: 32px; }

/* ==========================================================================
   Main Viewport
   ========================================================================== */
.main-content {
  margin-top: var(--topbar-height);
  margin-left: var(--sidebar-width);
  min-height: calc(100vh - var(--topbar-height));
  padding: 24px;
  transition: margin-left 0.25s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}
.sidebar-collapsed-active .main-content { margin-left: var(--sidebar-collapsed-width); }

/* Loading Spinner */
.loading-container { display: flex; align-items: center; justify-content: center; width: 100%; height: calc(80vh - var(--topbar-height)); }
.yt-spinner { width: 48px; height: 48px; border: 4px solid var(--yt-dark-card); border-top-color: var(--yt-red); border-radius: 50%; animation: spin 0.8s linear infinite; }

/* Error */
.error-container { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 64px 0; text-align: center; }
.error-container p { font-size: 16px; color: var(--yt-text-secondary); }

/* ==========================================================================
   HOME PAGE — Shared Section Styles
   ========================================================================== */
.home-section { margin-bottom: 44px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.section-title i { color: var(--yt-red); }

/* Hero Banner (single featured anime at the top) */
.hero-banner {
  width: 100%; height: 380px; border-radius: 20px;
  position: relative; overflow: hidden; margin-bottom: 40px;
  background-size: cover; background-position: center top;
  box-shadow: 0 12px 40px rgba(0,0,0,0.7);
  border: 1px solid var(--glass-border);
}
.hero-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(10,10,10,0.97) 25%, rgba(10,10,10,0.65) 55%, rgba(0,0,0,0.1) 100%);
  display: flex; align-items: center; padding: 0 52px;
}
.hero-content { max-width: 580px; z-index: 2; animation: bannerSlide 0.5s ease forwards; }
.hero-tag {
  background-color: var(--yt-red); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 6px; text-transform: uppercase; letter-spacing: 1.2px;
  display: inline-block; margin-bottom: 14px;
}
.hero-title { font-family: 'Outfit', sans-serif; font-size: 40px; font-weight: 700; line-height: 1.1; margin-bottom: 12px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.6); }
.hero-desc { font-size: 14px; color: rgba(255,255,255,0.75); margin-bottom: 22px; line-height: 1.65; }
.hero-meta-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.hero-meta-badge {
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85);
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15); backdrop-filter: blur(4px);
}
.hero-meta-badge.airing { background: rgba(0,200,100,0.15); color: #00e676; border-color: rgba(0,200,100,0.3); }
.hero-meta-badge.score { background: rgba(3,133,255,0.15); color: #5cb8ff; border-color: rgba(3,133,255,0.3); }
.hero-btn-container { display: flex; gap: 12px; }
.btn-primary, .btn-secondary {
  padding: 11px 26px; border-radius: 40px; font-size: 15px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
  transition: var(--transition-smooth);
}
.btn-primary { background-color: #fff; color: #000; }
.btn-primary:hover { background-color: #e0e0e0; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,255,255,0.2); }
.btn-secondary { background-color: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(8px); }
.btn-secondary:hover { background-color: rgba(255,255,255,0.2); transform: translateY(-2px); }

/* ==========================================================================
   HOME — Recent / Top Airing Horizontal Banner Strip
   ========================================================================== */
.recent-banner-strip {
  display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.recent-banner-strip::-webkit-scrollbar { height: 4px; }
.recent-banner-card {
  flex: 0 0 340px; height: 200px; border-radius: 16px; position: relative;
  overflow: hidden; cursor: pointer; scroll-snap-align: start;
  transition: transform 0.3s cubic-bezier(0.2,0,0,1), box-shadow 0.3s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.recent-banner-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 12px 32px rgba(0,0,0,0.6); }
.recent-banner-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.recent-banner-card:hover img { transform: scale(1.08); }
.recent-banner-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  padding: 16px;
}
.recent-banner-title { font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-banner-meta { display: flex; align-items: center; gap: 8px; }
.recent-banner-status {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
  padding: 2px 8px; border-radius: 4px; background: rgba(0,230,118,0.2); color: #00e676;
}
.recent-banner-status.finished { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); }
.recent-banner-ep { font-size: 11px; color: rgba(255,255,255,0.7); }
.recent-banner-score { font-size: 11px; color: #5cb8ff; font-weight: 600; }

/* Skeleton for banner strip */
.recent-banner-card.skeleton-card { background: linear-gradient(90deg, #1f1f1f 25%, #2c2c2c 50%, #1f1f1f 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }

/* ==========================================================================
   HOME — Anime Grid Cards
   ========================================================================== */
.anime-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.anime-card { display: flex; flex-direction: column; gap: 12px; cursor: pointer; position: relative; transition: transform 0.25s cubic-bezier(0.2,0,0,1); }
.anime-card:hover { transform: translateY(-6px); }
.card-thumbnail-container { width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; position: relative; box-shadow: 0 4px 12px rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.05); }
.card-thumbnail { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.anime-card:hover .card-thumbnail { transform: scale(1.08); }
.card-ep-badge { position: absolute; bottom: 8px; right: 8px; background-color: rgba(0,0,0,0.85); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.card-score-badge { position: absolute; top: 8px; left: 8px; background-color: rgba(3,133,255,0.9); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 4px; backdrop-filter: blur(4px); }
.card-details { display: flex; gap: 12px; align-items: flex-start; }
.card-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.1); }
.card-info { flex: 1; min-width: 0; }
.card-title { font-size: 14px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; }
.card-studio { font-size: 12.5px; color: var(--yt-text-secondary); display: block; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { font-size: 12px; color: var(--yt-text-secondary); display: flex; align-items: center; gap: 4px; }
.card-dot { color: var(--yt-border-color); }

/* Skeleton card pieces */
.skeleton-card { pointer-events: none; }
.card-sk-thumb { width: 100%; aspect-ratio: 16/9; border-radius: 12px; }
.card-sk-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.card-sk-title { height: 16px; width: 80%; border-radius: 6px; margin-bottom: 8px; }
.card-sk-studio { height: 12px; width: 50%; border-radius: 6px; margin-bottom: 6px; }
.card-sk-meta { height: 12px; width: 35%; border-radius: 6px; }

/* ==========================================================================
   DETAILS POPUP OVERLAY (metadata only — no video)
   ========================================================================== */
.details-popup-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 2000; display: flex; justify-content: center; align-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4,0,0.2,1);
}
.details-popup-overlay.active { opacity: 1; pointer-events: auto; }
.details-popup-backdrop {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.82); backdrop-filter: blur(10px); z-index: 1;
}
.details-popup-container {
  position: relative; width: 92%; max-width: 900px;
  max-height: 88vh; background-color: #141414;
  border-radius: 20px; border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 24px 60px rgba(0,0,0,0.85);
  z-index: 2; overflow: hidden; display: flex; flex-direction: column;
  animation: popupIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.details-popup-close-btn {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px;
  border-radius: 50%; background-color: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.12); color: #fff; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10; transition: var(--transition-smooth);
}
.details-popup-close-btn:hover { background-color: var(--yt-red); transform: rotate(90deg); }
.details-popup-scroll { flex: 1; overflow-y: auto; }

/* Popup Banner Header */
.popup-banner-header {
  width: 100%; height: 200px; position: relative; overflow: hidden; flex-shrink: 0;
}
.popup-banner-bg { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.popup-banner-gradient {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(20,20,20,0) 0%, rgba(20,20,20,0.5) 60%, #141414 100%);
}

/* Popup Content Body */
.popup-body {
  display: flex; gap: 24px; padding: 0 28px 28px 28px;
  position: relative; margin-top: -60px;
}
.popup-poster-col { flex-shrink: 0; }
.popup-poster {
  width: 130px; height: 185px; border-radius: 12px; object-fit: cover;
  border: 3px solid rgba(255,255,255,0.1); box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  display: block;
}
.popup-info-col { flex: 1; min-width: 0; padding-top: 68px; }
.popup-title { font-family: 'Outfit', sans-serif; font-size: 26px; font-weight: 700; line-height: 1.2; margin-bottom: 10px; }
.popup-meta-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.popup-chip {
  font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 20px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: var(--yt-text-secondary);
}
.popup-chip.score-chip { background: rgba(3,133,255,0.15); color: #5cb8ff; border-color: rgba(3,133,255,0.3); }
.popup-chip.airing-chip { background: rgba(0,230,118,0.12); color: #00e676; border-color: rgba(0,230,118,0.25); }
.popup-stats-row { display: flex; gap: 24px; margin-bottom: 16px; flex-wrap: wrap; }
.popup-stat { display: flex; flex-direction: column; gap: 2px; }
.popup-stat-value { font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 700; }
.popup-stat-label { font-size: 11px; color: var(--yt-text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.popup-genres { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.popup-genre-tag {
  font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 14px;
  background: rgba(255,0,0,0.1); color: rgba(255,100,100,0.9); border: 1px solid rgba(255,0,0,0.15);
}
.popup-desc { font-size: 13.5px; color: var(--yt-text-secondary); line-height: 1.65; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* Popup Action Buttons */
.popup-action-row { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.popup-watch-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 32px; background: var(--yt-red); color: #fff;
  border-radius: 40px; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: var(--transition-smooth); border: none;
  box-shadow: 0 4px 20px rgba(255,0,0,0.35);
}
.popup-watch-btn:hover { background: var(--yt-red-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,0,0,0.5); }
.popup-sub-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 24px; background: rgba(255,255,255,0.08); color: #fff;
  border-radius: 40px; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: var(--transition-smooth); border: 1px solid rgba(255,255,255,0.15);
}
.popup-sub-btn:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }
.popup-sub-btn.subscribed { background: rgba(0,230,118,0.12); border-color: rgba(0,230,118,0.3); color: #00e676; }

/* Popup Episode Grid */
.popup-episodes-section { padding: 0 28px 28px; }
.popup-episodes-header { font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.popup-episodes-badge { background: rgba(255,255,255,0.08); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 12px; color: var(--yt-text-secondary); }
.popup-episodes-grid { display: flex; flex-wrap: wrap; gap: 8px; max-height: 200px; overflow-y: auto; }
.ep-btn {
  width: 44px; height: 44px; border-radius: 10px; font-size: 13px; font-weight: 700;
  cursor: pointer; background: var(--yt-dark-card); color: var(--yt-text-secondary);
  border: 1px solid rgba(255,255,255,0.08); transition: var(--transition-smooth);
}
.ep-btn:hover { background: var(--yt-hover-bg); color: #fff; border-color: rgba(255,255,255,0.2); }
.ep-btn.active { background: var(--yt-red); color: #fff; border-color: var(--yt-red); }
.ep-btn.watched { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.4); }

/* ==========================================================================
   DEDICATED WATCH PAGE (rendered in #main-content)
   ========================================================================== */
.watch-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 28px;
  max-width: 1600px;
}
.watch-left-column { min-width: 0; }
.watch-right-column { min-width: 0; }

/* Player */
.video-player-wrapper {
  width: 100%; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden;
  background: #000; box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.06);
}
.video-player-wrapper iframe { width: 100%; height: 100%; border: none; display: block; }

/* Server controls */
.player-controls-panel { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.server-selector-container { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.server-label { font-size: 13px; font-weight: 600; color: var(--yt-text-secondary); display: flex; align-items: center; gap: 6px; }
.server-btn {
  padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
  cursor: pointer; background: var(--yt-dark-card); color: var(--yt-text-secondary);
  border: 1px solid rgba(255,255,255,0.08); transition: var(--transition-smooth);
}
.server-btn:hover { background: var(--yt-hover-bg); color: #fff; }
.server-btn.active { background: rgba(3,133,255,0.2); color: #5cb8ff; border-color: rgba(3,133,255,0.4); }
.lang-toggle-container { display: flex; gap: 8px; }
.lang-btn {
  padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
  cursor: pointer; background: var(--yt-dark-card); color: var(--yt-text-secondary);
  border: 1px solid rgba(255,255,255,0.08); transition: var(--transition-smooth);
}
.lang-btn:hover { background: var(--yt-hover-bg); color: #fff; }
.lang-btn.active { background: rgba(255,0,0,0.15); color: #ff6b6b; border-color: rgba(255,0,0,0.3); }

/* Episode selector on watch page */
.episode-selector-panel { margin-top: 16px; background: var(--yt-dark-card); border-radius: 14px; padding: 16px; border: 1px solid rgba(255,255,255,0.06); }
.episodes-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 15px; font-weight: 700; }
.episodes-badge { font-size: 12px; color: var(--yt-text-secondary); background: rgba(255,255,255,0.07); padding: 3px 10px; border-radius: 12px; }
.episodes-grid { display: flex; flex-wrap: wrap; gap: 8px; max-height: 220px; overflow-y: auto; }
.episode-btn {
  width: 44px; height: 44px; border-radius: 10px; font-size: 13px; font-weight: 700;
  cursor: pointer; background: rgba(255,255,255,0.05); color: var(--yt-text-secondary);
  border: 1px solid rgba(255,255,255,0.08); transition: var(--transition-smooth);
}
.episode-btn:hover { background: var(--yt-hover-bg); color: #fff; }
.episode-btn.active { background: var(--yt-red); color: #fff; border-color: var(--yt-red); }
.episode-btn.watched { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.35); }

/* Watch info section below player */
.watch-video-info { margin-top: 20px; }
.watch-title { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 700; line-height: 1.25; margin-bottom: 14px; }
.watch-stats-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.watch-channel-container { display: flex; align-items: center; gap: 12px; }
.channel-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,0.1); }
.channel-details { display: flex; flex-direction: column; gap: 2px; }
.channel-name { font-size: 15px; font-weight: 700; }
.channel-subs { font-size: 12px; color: var(--yt-text-secondary); }
.subscribe-btn {
  padding: 9px 20px; border-radius: 20px; font-size: 13.5px; font-weight: 700;
  cursor: pointer; background-color: #fff; color: #000; transition: var(--transition-smooth);
  display: flex; align-items: center; gap: 8px;
}
.subscribe-btn:hover { background-color: #e0e0e0; }
.subscribe-btn.subscribed { background-color: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.watch-actions-container { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.action-pill-btn {
  display: flex; align-items: center; gap: 8px; padding: 9px 18px;
  background-color: var(--yt-dark-card); border-radius: 20px;
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.08); transition: var(--transition-smooth);
}
.action-pill-btn:hover { background-color: var(--yt-hover-bg); }
.action-pill-btn.active { background-color: rgba(3,133,255,0.15); color: #5cb8ff; border-color: rgba(3,133,255,0.3); }

/* Description */
.watch-description-box { background: var(--yt-dark-card); border-radius: 14px; padding: 16px; cursor: pointer; transition: background-color 0.2s; border: 1px solid rgba(255,255,255,0.06); }
.watch-description-box:hover { background-color: var(--yt-hover-bg); }
.desc-meta-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.desc-meta-stats span { font-size: 13px; font-weight: 600; color: var(--yt-text-primary); }
.desc-text { font-size: 13.5px; color: var(--yt-text-secondary); line-height: 1.65; white-space: pre-line; }
.desc-text.collapsed { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.desc-toggle-btn { background: none; border: none; font-weight: 700; font-size: 13.5px; color: #fff; cursor: pointer; margin-top: 10px; }

/* Comments */
.watch-comments-section { margin-top: 24px; }
.comments-header-row { display: flex; align-items: center; gap: 32px; margin-bottom: 24px; }
.comments-count { font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 700; }
.comments-sort { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; color: var(--yt-text-secondary); font-size: 13px; }
.add-comment-form { display: flex; gap: 16px; margin-bottom: 32px; }
.comment-input-container { flex-grow: 1; display: flex; flex-direction: column; gap: 8px; }
.comment-input-container textarea { width: 100%; border: none; border-bottom: 1.5px solid var(--yt-border-color); padding: 4px 0; font-size: 14px; color: var(--yt-text-primary); resize: none; height: 28px; transition: border-color 0.2s, height 0.2s; }
.comment-input-container textarea:focus { border-color: #fff; height: 60px; }
.comment-form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.comment-btn { padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 700; cursor: pointer; transition: var(--transition-smooth); }
.comment-btn.cancel-btn { background-color: transparent; color: var(--yt-text-primary); }
.comment-btn.cancel-btn:hover { background-color: var(--yt-hover-bg); }
.comment-btn.submit-btn { background-color: #0385ff; color: #fff; }
.comment-btn.submit-btn:disabled { background-color: var(--yt-hover-bg); color: var(--yt-text-secondary); cursor: not-allowed; }
.comments-list { display: flex; flex-direction: column; gap: 24px; }
.comment-item { display: flex; gap: 16px; animation: fadeIn 0.3s ease; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background-color: var(--yt-hover-bg); flex-shrink: 0; }
.comment-details { display: flex; flex-direction: column; gap: 4px; }
.comment-author-row { display: flex; align-items: center; gap: 8px; }
.comment-author-name { font-size: 13px; font-weight: 700; }
.comment-author-badge { background-color: var(--yt-hover-bg); color: var(--yt-text-secondary); font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; text-transform: uppercase; }
.comment-time { font-size: 11px; color: var(--yt-text-secondary); }
.comment-body { font-size: 13.5px; line-height: 1.45; color: var(--yt-text-primary); }
.comment-actions { display: flex; align-items: center; gap: 16px; margin-top: 8px; color: var(--yt-text-secondary); font-size: 12px; }
.comment-action-btn { cursor: pointer; display: flex; align-items: center; gap: 6px; transition: var(--transition-smooth); }
.comment-action-btn:hover { color: var(--yt-text-primary); }

/* Empty comments placeholder */
.empty-comments-msg {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 40px 0; text-align: center;
}
.empty-comments-msg i { font-size: 40px; color: rgba(255,255,255,0.15); }
.empty-comments-msg p { font-size: 15px; color: var(--yt-text-secondary); }

/* ==========================================================================
   WATCH PAGE — Right Sidebar (Up Next)
   ========================================================================== */
.watch-recommendations-header { font-family: 'Outfit', sans-serif; font-size: 17px; font-weight: 700; margin-bottom: 16px; }

/* Next Episode special card */
.next-ep-card {
  display: flex; gap: 10px; cursor: pointer; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,0,0,0.12) 0%, rgba(30,30,30,0.9) 100%);
  border: 1px solid rgba(255,0,0,0.25); padding: 12px;
  transition: var(--transition-smooth); margin-bottom: 16px;
}
.next-ep-card:hover { background: linear-gradient(135deg, rgba(255,0,0,0.2) 0%, rgba(40,40,40,0.95) 100%); transform: translateX(4px); }
.next-ep-thumb-wrap { position: relative; flex-shrink: 0; width: 150px; height: 85px; border-radius: 10px; overflow: hidden; }
.next-ep-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.next-ep-play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 28px; color: rgba(255,255,255,0.9); text-shadow: 0 2px 8px rgba(0,0,0,0.8); }
.next-ep-info { display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.next-ep-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: #ff6b6b; display: flex; align-items: center; gap: 5px; margin-bottom: 2px; }
.next-ep-title { font-size: 14px; font-weight: 700; line-height: 1.3; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.next-ep-num { font-size: 12px; color: var(--yt-text-secondary); margin-top: 4px; }

/* Standard compact rec card */
.compact-anime-card { display: flex; gap: 10px; cursor: pointer; border-radius: 10px; padding: 6px; transition: var(--transition-smooth); }
.compact-anime-card:hover { background: var(--yt-dark-card); transform: translateX(4px); }
.compact-thumbnail-container { width: 160px; height: 90px; border-radius: 8px; overflow: hidden; position: relative; flex-shrink: 0; }
.compact-thumbnail { width: 100%; height: 100%; object-fit: cover; }
.compact-info { display: flex; flex-direction: column; gap: 3px; justify-content: center; min-width: 0; }
.compact-title { font-size: 13.5px; font-weight: 700; line-height: 1.25; color: var(--yt-text-primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.compact-studio { font-size: 11.5px; color: var(--yt-text-secondary); font-weight: 500; margin-top: 2px; }
.compact-meta { font-size: 11px; color: var(--yt-text-secondary); }
.up-next-list { display: flex; flex-direction: column; gap: 12px; }

/* ==========================================================================
   SEARCH VIEW
   ========================================================================== */
.search-results-layout { max-width: 1100px; margin: 0 auto; }
.search-query-title { font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 700; margin-bottom: 24px; }
.search-results-list { display: flex; flex-direction: column; gap: 20px; }
.search-anime-card { display: flex; gap: 20px; cursor: pointer; transition: transform 0.2s; padding: 10px; border-radius: 12px; }
.search-anime-card:hover { background-color: var(--yt-dark-card); transform: scale(1.01); }
.search-thumbnail-container { width: 320px; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; position: relative; flex-shrink: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.search-thumbnail { width: 100%; height: 100%; object-fit: cover; }
.search-info { display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.search-title { font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 700; line-height: 1.3; }
.search-meta { font-size: 12px; color: var(--yt-text-secondary); }
.search-author-row { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.search-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background-color: var(--yt-hover-bg); }
.search-studio { font-size: 13px; color: var(--yt-text-secondary); font-weight: 500; }
.search-desc { font-size: 12.5px; color: var(--yt-text-secondary); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ==========================================================================
   LIBRARY VIEW
   ========================================================================== */
.library-layout { max-width: 1280px; margin: 0 auto; }
.library-tabs-row { display: flex; gap: 12px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 28px; }
.library-tab { padding: 12px 24px; font-size: 16px; font-weight: 700; cursor: pointer; color: var(--yt-text-secondary); border-bottom: 3px solid transparent; transition: var(--transition-smooth); }
.library-tab:hover { color: var(--yt-text-primary); }
.library-tab.active { color: var(--yt-red); border-bottom-color: var(--yt-red); }
.empty-library-container { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 64px 0; text-align: center; }
.empty-library-icon { font-size: 64px; color: var(--yt-text-secondary); opacity: 0.4; }
.empty-library-title { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 700; }
.empty-library-desc { font-size: 14px; color: var(--yt-text-secondary); max-width: 400px; line-height: 1.5; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
  .watch-layout { grid-template-columns: 1fr; }
  .watch-right-column { width: 100%; max-width: 640px; }
  .compact-thumbnail-container { width: 200px; height: 112px; }
}
@media (max-width: 992px) {
  :root { --sidebar-width: var(--sidebar-collapsed-width); }
  .sidebar { width: var(--sidebar-collapsed-width); padding: 8px 4px; overflow: hidden; }
  .sidebar-section { gap: 2px; }
  .sidebar-header, .sidebar-divider, .empty-subs-msg { display: none !important; }
  .sidebar-item { flex-direction: column; justify-content: center; gap: 6px; height: 72px; padding: 0; border-radius: 8px; }
  .sidebar-label { font-size: 10px; }
  .sidebar-icon { font-size: 20px; }
  .main-content { margin-left: var(--sidebar-collapsed-width); }
  .search-anime-card { gap: 16px; }
  .search-thumbnail-container { width: 240px; }
}
@media (max-width: 768px) {
  .topbar-center { flex: 1; margin: 0 8px; }
  .hero-banner { height: 260px; }
  .hero-overlay { padding: 0 24px; }
  .hero-title { font-size: 28px; }
  .hero-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .search-anime-card { flex-direction: column; }
  .search-thumbnail-container { width: 100%; }
  .popup-body { flex-direction: column; margin-top: -30px; padding: 0 16px 20px; gap: 16px; }
  .popup-poster { width: 100px; height: 145px; }
  .popup-info-col { padding-top: 0; }
  .popup-title { font-size: 20px; }
  .watch-stats-row { flex-direction: column; align-items: flex-start; }
  .recent-banner-card { flex: 0 0 280px; height: 170px; }
  .next-ep-thumb-wrap { width: 120px; height: 68px; }
  .compact-thumbnail-container { width: 130px; height: 73px; }
}
@media (max-width: 480px) {
  :root { --sidebar-collapsed-width: 0px; }
  .sidebar { width: 0; padding: 0; }
  .main-content { margin-left: 0; padding: 12px; }
  .topbar-left #menu-toggle { display: none; }
  .logo-text { font-size: 16px; }
  .search-box-container { padding: 0 8px; }
  .search-box-container input { font-size: 14px; }
  .search-btn { width: 48px; }
  .popup-container { width: 98%; }
  .popup-banner-header { height: 140px; }
}
/* ==========================================================================
   EXPLORE HEADER BANNER (Anime / Movies / TV)
   ========================================================================== */
.explore-header-banner {
  border-radius: 16px; padding: 28px 32px; margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.explore-header-content {
  display: flex; align-items: center; gap: 20px;
}
.explore-header-icon {
  width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--yt-red), var(--yt-red-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.explore-header-title {
  font-family: 'Outfit', sans-serif; font-size: 32px; font-weight: 800;
  line-height: 1.1; margin: 0 0 4px;
}
.explore-header-sub {
  font-size: 14px; color: var(--yt-text-secondary); margin: 0;
}

/* Card type overlay (film/tv icon badge in corner) */
.card-type-overlay {
  position: absolute; bottom: 8px; right: 8px;
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.1);
}

/* ==========================================================================
   MOVIE INFO PANEL (Right column of Movie Watch Page)
   ========================================================================== */
.movie-info-panel {
  background: var(--yt-dark-card); border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.movie-info-poster {
  width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block;
  max-height: 320px; object-position: center top;
}
.movie-info-details { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.movie-info-row { display: flex; gap: 12px; align-items: flex-start; }
.movie-info-label {
  font-size: 11px; font-weight: 700; color: var(--yt-text-secondary);
  text-transform: uppercase; letter-spacing: 0.5px; flex-shrink: 0; min-width: 64px; padding-top: 1px;
}
.movie-info-value {
  font-size: 13px; color: var(--yt-text-primary); font-weight: 500; line-height: 1.4;
}


/* ==========================================================================
   SETTINGS MODAL & PREMIUM EXTENSIONS
   ========================================================================== */
.settings-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; z-index: 2000;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.settings-modal-overlay.active {
  opacity: 1; visibility: visible;
}
.settings-modal-backdrop {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px);
}
.settings-modal-container {
  position: relative; width: 90%; max-width: 480px;
  background-color: #141414; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-premium); z-index: 2;
  overflow: hidden; padding: 24px;
  animation: popupIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.settings-modal-close-btn {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
  border-radius: 50%; background-color: rgba(255, 255, 255, 0.05);
  color: #fff; font-size: 16px; display: flex; align-items: center;
  justify-content: center; cursor: pointer; transition: var(--transition-smooth);
}
.settings-modal-close-btn:hover { background-color: var(--yt-red); transform: rotate(90deg); }
.settings-modal-title { font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.settings-group { margin-bottom: 24px; }
.settings-label { font-size: 14px; font-weight: 600; color: #fff; display: block; margin-bottom: 8px; }
.settings-help-text { font-size: 12px; color: var(--yt-text-secondary); line-height: 1.5; margin-bottom: 12px; }
.api-key-input-container { position: relative; display: flex; align-items: center; }
.api-key-input-container input {
  width: 100%; padding: 12px 48px 12px 16px; background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 8px;
  color: #fff; font-size: 14px; transition: border-color 0.2s;
}
.api-key-input-container input:focus { border-color: var(--yt-red); background-color: rgba(255, 255, 255, 0.08); }
.toggle-password-btn {
  position: absolute; right: 12px; font-size: 16px; color: var(--yt-text-secondary);
  cursor: pointer; padding: 4px; transition: color 0.2s;
}
.toggle-password-btn:hover { color: #fff; }
.settings-actions { display: flex; justify-content: flex-end; gap: 12px; }
.settings-btn { padding: 10px 20px; border-radius: 20px; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: var(--transition-smooth); }
.settings-cancel-btn { background-color: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.15); }
.settings-cancel-btn:hover { background-color: var(--yt-hover-bg); }
.settings-save-btn { background-color: var(--yt-red); color: #fff; box-shadow: 0 4px 14px rgba(255, 0, 0, 0.25); }
.settings-save-btn:hover { background-color: var(--yt-red-dark); transform: translateY(-1px); }

/* Season Selector & TV Custom Dropdown Styles */
.season-selector-wrapper { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.season-selector-label { font-size: 14px; font-weight: 700; color: var(--yt-text-secondary); }
.season-select-custom {
  background-color: var(--yt-dark-card); border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff; font-size: 14px; font-weight: 700; padding: 8px 36px 8px 16px;
  border-radius: 8px; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 14px;
  transition: var(--transition-smooth);
}
.season-select-custom:hover { background-color: var(--yt-hover-bg); border-color: rgba(255,255,255,0.25); }
.season-select-custom:focus { outline: none; border-color: var(--yt-red); }

/* Banner Warning / TMDb Status Badge */
.tmdb-badge-container { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #ffb300; background: rgba(255, 179, 0, 0.1); border: 1px solid rgba(255, 179, 0, 0.2); padding: 4px 10px; border-radius: 12px; margin-top: 10px; align-self: flex-start; }
.tmdb-badge-container.verified { color: #00e676; background: rgba(0, 230, 118, 0.1); border-color: rgba(0, 230, 118, 0.2); }

