/* ==========================================================================
   ANITUBE - YOUTUBE THEME DESIGN SYSTEM (VANILLA CSS)
   ========================================================================== */

:root {
  --bg-color: #0f0f0f;
  --bg-secondary: #181818;
  --bg-card: #212121;
  --bg-hover: #272727;
  --bg-active: #383838;
  
  --text-main: #f1f1f1;
  --text-muted: #aaaaaa;
  --text-dark: #0f0f0f;

  --accent-red: #FF0033;
  --accent-red-hover: #d9002b;
  --accent-blue: #3ea6ff;
  --accent-gold: #f5c518;

  --border-color: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.2);

  --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  
  --header-height: 56px;
  --sidebar-width: 200px;
  --sidebar-collapsed-width: 72px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.5);
  --transition-fast: 0.2s cubic-bezier(0.2, 0, 0, 1);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.5;
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

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

.grid-span-all {
  grid-column: 1 / -1;
}
.p-60 {
  padding: 60px 0;
}
.spinner-lg {
  margin: 20px auto;
}
.spinner-sm {
  width: 22px;
  height: 22px;
  border-width: 2px;
}

/* ==========================================================================
   HEADER / TOPBAR (YouTube Style)
   ========================================================================== */

.yt-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 1000;
  border-bottom: none;
}

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

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-main);
  transition: background var(--transition-fast);
  position: relative;
}
.icon-btn:hover {
  background-color: var(--bg-hover);
}

.badge-count {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--accent-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

/* Logo */
.yt-brand {
  display: flex;
  align-items: center;
  gap: 4px;
}
.yt-logo-box {
  display: flex;
  align-items: center;
  gap: 4px;
}
.yt-logo-red {
  color: #FF0033;
  font-size: 24px;
}
.brand-text {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
}
.brand-country {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 2px;
  top: -0.6em;
  position: relative;
}

/* Remove all unwanted red focus outlines and text selection highlighting */
*:focus, *:focus-visible {
  outline: none !important;
}

::selection {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
::-moz-selection {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Header Search Box (Exact YouTube Screenshot Style) */
.header-center {
  flex: 1;
  max-width: 620px;
  margin: 0 20px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  background: #121212;
  border: 1px solid #303030;
  border-radius: 40px;
  height: 40px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.search-box:focus-within {
  border-color: #1a73e8;
}

.search-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  padding-left: 16px;
  height: 100%;
}

.search-input-wrapper input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 15px;
  font-weight: 400;
}
.search-input-wrapper input::placeholder {
  color: #888888;
  font-size: 15px;
}

.clear-btn {
  color: var(--text-muted);
  padding: 4px 8px;
  font-size: 14px;
}
.clear-btn:hover {
  color: #ffffff;
}

.search-btn {
  width: 64px;
  height: 100%;
  background: #222222;
  border: none;
  border-left: 1px solid #303030;
  border-radius: 0 40px 40px 0;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.search-btn:hover {
  background: #272727;
}

.voice-search-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #222222;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.2s;
}
.voice-search-btn:hover {
  background: #272727;
}

.search-suggestions-dropdown {
  position: absolute;
  top: 45px;
  left: 0;
  right: 52px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  max-height: 350px;
  overflow-y: auto;
  z-index: 1010;
}

.suggestion-item {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.suggestion-item:hover,
.suggestion-item.active-suggestion {
  background: var(--bg-hover);
}
.suggestion-item i {
  color: var(--text-muted);
  font-size: 14px;
}

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

.create-btn {
  background: #272727;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}
.create-btn:hover {
  background: #383838;
}

.notif-wrapper {
  position: relative;
}

.notif-btn {
  position: relative;
}

.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #cc0000;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notif-badge.hidden {
  display: none !important;
}

.notif-dropdown {
  position: absolute;
  top: 48px;
  right: 0;
  width: 360px;
  max-height: 520px;
  background: #212121;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.85);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: dropdownFadeIn 0.2s ease-out;
}

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

.notif-dropdown-header {
  padding: 14px 18px;
  background: #181818;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.notif-dropdown-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.notif-dropdown-list {
  overflow-y: auto;
  max-height: 460px;
  display: flex;
  flex-direction: column;
}

/* Notification Item Layout (Left Poster, Right Title & Genre) */
.notif-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.15s ease;
  position: relative;
}
.notif-item:hover {
  background: rgba(255, 255, 255, 0.08);
}
.notif-item.unread {
  background: rgba(230, 0, 31, 0.06);
}
.notif-item.unread::after {
  content: '';
  width: 7px;
  height: 7px;
  background: #E6001F;
  border-radius: 50%;
  position: absolute;
  top: 14px;
  right: 14px;
  box-shadow: 0 0 6px rgba(230, 0, 31, 0.8);
}

/* Left Side Poster */
.notif-poster {
  width: 52px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Right Side Content (Title & Genre) */
.notif-info-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.notif-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.notif-item-genre {
  font-size: 12px;
  color: #ffffff;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.notif-item-genre span {
  background: transparent;
  color: #ffffff;
  padding: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 500;
}

/* Video Thumbnail on Right (16:9 Aspect Ratio) */
.notif-video-thumb {
  width: 72px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Options 3-dots Menu */
.notif-item-options {
  color: #aaaaaa;
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 50%;
  opacity: 0.7;
  transition: opacity 0.15s, background 0.15s;
}
.notif-item:hover .notif-item-options {
  opacity: 1;
}
.notif-item-options:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Pagination Bar Styling */
.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 32px 0 20px;
  padding: 16px 0;
}

.pagination-btn {
  background: #222222;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(230, 0, 31, 0.3);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-indicator {
  font-size: 14px;
  font-weight: 600;
  color: #aaaaaa;
  background: #181818;
  padding: 6px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Exact YouTube Sign In Button */
.yt-sign-in-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: #3ea6ff;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.yt-sign-in-btn i {
  font-size: 18px;
  color: #3ea6ff;
}
.yt-sign-in-btn:hover {
  background: rgba(62, 166, 255, 0.15);
  border-color: #3ea6ff;
}

/* User Profile Menu Wrapper */
.user-profile-wrapper {
  position: relative;
}

.user-avatar-yt {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a73e8, #3ea6ff);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}
.user-avatar-yt.large {
  width: 42px;
  height: 42px;
  font-size: 18px;
}

.profile-dropdown {
  position: absolute;
  top: 48px;
  right: 0;
  width: 260px;
  background: #282828;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  padding: 12px;
  z-index: 1100;
  animation: dropdownFadeIn 0.2s ease-out;
}

.profile-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
}
.user-profile-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}
.user-profile-info span {
  font-size: 12px;
  color: var(--text-muted);
}

.dropdown-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 8px 0;
}

.dropdown-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-main);
  transition: background 0.15s;
}
.dropdown-menu-item:hover {
  background: var(--bg-hover);
}

/* ==========================================================================
   GOOGLE / YOUTUBE SIGN IN MODAL
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2500;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

.google-login-card {
  width: 100%;
  max-width: 440px;
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  padding: 36px 40px;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
  color: #e3e3e3;
  display: flex;
  flex-direction: column;
}

.close-modal-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 24px;
  color: #aaa;
  transition: color 0.15s;
}
.close-modal-btn:hover {
  color: #fff;
}

.google-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 28px;
}
.google-logo-svg {
  margin-bottom: 12px;
}
.google-card-header h2 {
  font-size: 24px;
  font-weight: 400;
  color: #ffffff;
}
.google-card-header p {
  font-size: 15px;
  color: #aaa;
  margin-top: 4px;
}

.login-step-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-floating-group input {
  width: 100%;
  height: 52px;
  background: transparent;
  border: 1px solid #5f6368;
  border-radius: 4px;
  padding: 0 16px;
  color: #ffffff;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}
.input-floating-group input:focus {
  border-color: #8ab4f8;
  border-width: 2px;
}

.forgot-link {
  font-size: 14px;
  color: #8ab4f8;
  font-weight: 500;
}
.forgot-link:hover {
  text-decoration: underline;
}

.guest-mode-note {
  font-size: 13px;
  color: #9aa0a6;
  line-height: 1.5;
  margin-top: 12px;
}
.guest-mode-note a {
  color: #8ab4f8;
}

.login-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.btn-text {
  font-size: 14px;
  color: #8ab4f8;
  font-weight: 500;
}
.btn-text:hover {
  background: rgba(138, 180, 248, 0.1);
  padding: 8px 12px;
  border-radius: 20px;
  margin: -8px -12px;
}

.btn-google-next {
  background: #8ab4f8;
  color: #202124;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 20px;
  transition: background 0.2s;
}
.btn-google-next:hover {
  background: #a6c8ff;
}

.selected-account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid #5f6368;
  border-radius: 16px;
  font-size: 14px;
  color: #e3e3e3;
  margin-bottom: 8px;
  align-self: center;
}

.show-password-check {
  font-size: 14px;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* ==========================================================================
   APP LAYOUT (Sidebar + Main Content)
   ========================================================================== */

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

/* SIDEBAR */
.yt-sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-color);
  height: calc(100vh - var(--header-height));
  position: fixed;
  top: var(--header-height);
  left: 0;
  overflow-y: auto;
  padding: 0px 10px 12px;
  z-index: 900;
  transition: width var(--transition-fast);
  border-right: none;
}

.yt-sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}
.yt-sidebar.collapsed .sidebar-menu span,
.yt-sidebar.collapsed .sidebar-section-title,
.yt-sidebar.collapsed .genre-menu-list,
.yt-sidebar.collapsed .sidebar-divider,
.yt-sidebar.collapsed .sidebar-footer {
  display: none;
}
.yt-sidebar.collapsed .menu-item {
  flex-direction: column;
  justify-content: center;
  padding: 12px 0;
  gap: 6px;
}
.yt-sidebar.collapsed .menu-item i {
  font-size: 20px;
}

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

.menu-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-main);
  transition: background var(--transition-fast);
}
.menu-item i {
  font-size: 18px;
  width: 24px;
  text-align: center;
}
.menu-item:hover {
  background-color: var(--bg-hover);
}
.menu-item.active {
  background-color: var(--bg-active);
  font-weight: 600;
}
.menu-item.active i {
  color: #ffffff;
}

.sidebar-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 12px 0;
}

.sidebar-section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 8px 14px;
  font-weight: 600;
}

.genre-menu-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.genre-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-muted);
  transition: all 0.15s;
  text-align: left;
}
.genre-item:hover {
  background-color: var(--bg-hover);
  color: var(--text-main);
}
.genre-item.active {
  background-color: rgba(62, 166, 255, 0.15);
  color: var(--accent-blue);
  font-weight: 600;
}

.sidebar-footer {
  padding: 16px 14px;
  font-size: 11px;
  color: #717171;
  line-height: 1.6;
}

/* MAIN CONTENT AREA */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 12px 24px 24px;
  transition: margin-left var(--transition-fast);
  min-width: 0;
  max-width: calc(100vw - var(--sidebar-width));
  box-sizing: border-box;
}

.yt-sidebar.collapsed + .main-content {
  margin-left: var(--sidebar-collapsed-width);
  max-width: calc(100vw - var(--sidebar-collapsed-width));
}

/* WATCH MODE (Hide Sidebar entirely) */
.app-layout.watch-mode .yt-sidebar {
  display: none !important;
}
.app-layout.watch-mode .main-content {
  margin-left: 0 !important;
  max-width: 100vw !important;
}

/* APP VIEWS */
.app-view {
  animation: fadeIn 0.3s ease-in-out;
}

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

/* ==========================================================================
   FILTER CHIPS BAR (Exact YouTube Scrollable Bar)
   ========================================================================== */

.filter-chips-wrapper {
  margin-top: 0;
  margin-bottom: 24px;
  position: relative;
  background: var(--bg-color);
  padding: 4px 0 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  width: 100%;
}

.filter-chips {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-behavior: smooth;
  width: 100%;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}
.filter-chips.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}
.filter-chips::-webkit-scrollbar {
  display: none;
}

.chip {
  padding: 6px 12px;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  color: #f1f1f1;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.15s ease;
  cursor: pointer;
  user-select: none;
}
.chip:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
.chip.active {
  background-color: #f1f1f1;
  color: #0f0f0f;
  font-weight: 500;
  border: none;
}

.chip-scroll-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 20;
  position: absolute;
  right: 0;
  top: calc(50% - 3px);
  transform: translateY(-50%);
  box-shadow: -12px 0 16px 8px #0f0f0f;
}
.chip-scroll-btn:hover {
  background: #272727;
  border-color: rgba(255, 255, 255, 0.3);
}
.chip.active:hover {
  background-color: #ffffff;
}

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

.section-title {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title i {
  color: var(--accent-red);
}

.status-badge {
  font-size: 12px;
  background: #1a2a3a;
  color: var(--accent-blue);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(62, 166, 255, 0.2);
}

/* ==========================================================================
   EXACT HIANIME / ANIWATCH SECTION HEADER & 6-POSTER GRID (Screenshot Style)
   ========================================================================== */

.hianime-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 16px;
}

.hianime-section-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.3px;
}

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

.hianime-link {
  background: transparent;
  border: none;
  color: #888888;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}
.hianime-link:hover {
  color: #ffffff;
}
.hianime-link.active {
  color: #ffffff;
  font-weight: 700;
}

.hianime-nav-arrows {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
}

.hianime-arrow-btn {
  background: transparent;
  border: none;
  color: #888888;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.2s;
}
.hianime-arrow-btn:hover {
  color: #ffffff;
}

.catalog-section-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  margin-top: 6px;
}

.catalog-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 6-Column Responsive Grid - 6 Items in 1 Line */
.video-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px 12px;
  margin-top: 16px;
  width: 100%;
  justify-content: center;
  align-items: stretch;
}

.hianime-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.hianime-poster-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.42;
  border-radius: 6px;
  overflow: hidden;
  background: #141414;
}

.hianime-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.25s ease;
}
.hianime-card:hover .hianime-poster {
  transform: scale(1.03);
}

/* Bottom Overlay Badges Bar inside Poster - Exact Screenshot Replica */
.hianime-badges-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 5px 7px;
  background: rgba(18, 18, 24, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hianime-badge-group {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
}

.badge-sub {
  background: #581c87;
  color: #d8b4fe;
  padding: 1.5px 5px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.badge-dub {
  background: #78350f;
  color: #fde047;
  padding: 1.5px 5px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.badge-total {
  background: #3f3f46;
  color: #d4d4d8;
  padding: 1.5px 6px;
  border-radius: 3px;
}

.badge-type {
  font-size: 11px;
  font-weight: 600;
  color: #a1a1aa;
  text-transform: uppercase;
  margin-left: auto;
}

.yt-card-body {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.yt-card-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff3b30;
  font-size: 16px;
  flex-shrink: 0;
}

.yt-card-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.hianime-card-title {
  font-size: 13.5px;
  font-weight: 500;
  color: #f1f1f1;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}
.hianime-card:hover .hianime-card-title {
  color: #ffffff;
}

.yt-card-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 11.5px;
  color: #aaaaaa;
  margin-top: 2px;
}

.yt-channel-name {
  color: #aaaaaa;
  font-weight: 400;
}
.yt-channel-name:hover {
  color: #f1f1f1;
}

.yt-stats {
  color: #888888;
  font-size: 11px;
}

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

.thumbnail-box {
  position: relative;
  width: 100%;
  padding-top: 135%; /* 3:4 Aspect ratio for poster */
  background-color: #121212;
  overflow: hidden;
}

.thumbnail-box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-card:hover .thumbnail-box img {
  transform: none;
}

/* Badge overlays on Thumbnail */
.badge-episodes {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.badge-subdub {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 4px;
}
.badge-subdub span {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}
.badge-sub {
  background: var(--accent-blue);
  color: #fff;
}
.badge-dub {
  background: var(--accent-red);
  color: #fff;
}

.badge-score {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--accent-gold);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Card Details */
.card-details {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 36px;
}

.card-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-genres {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.genre-tag-sm {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: #bbb;
}

/* Pagination Box */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 30px 0;
}

.btn {
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--text-main);
  color: var(--text-dark);
}
.btn-primary:hover:not(:disabled) {
  background: #ddd;
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--bg-hover);
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-danger-sm {
  background: rgba(255, 0, 0, 0.15);
  color: var(--accent-red);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
}
.btn-danger-sm:hover {
  background: rgba(255, 0, 0, 0.3);
}

.page-indicator {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   WATCH / PLAYER PAGE (YouTube Player Layout)
   ========================================================================== */

.watch-page-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  max-width: 1800px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 1900px) {
  .watch-page-container {
    grid-template-columns: 240px 1fr;
    gap: 32px;
  }
}
@media (max-width: 1280px) {
  .watch-page-container {
    grid-template-columns: 300px 1fr;
    gap: 16px;
  }
}
@media (max-width: 1024px) {
  .watch-page-container {
    grid-template-columns: 1fr;
  }
}

.watch-primary {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

/* Sleek YouTube Player Control Strip */
.yt-player-control-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(33, 33, 33, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.control-strip-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-strip-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.audio-switch-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #181818;
  padding: 3px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.audio-pill-btn {
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.audio-pill-btn:hover {
  color: #ffffff;
}
.audio-pill-btn.active {
  background: #E6001F;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(230, 0, 31, 0.4);
}

.control-strip-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ep-nav-btn {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.ep-nav-btn.prev-btn {
  background: #2b2b2b;
  color: #f1f1f1;
}
.ep-nav-btn.prev-btn:hover:not(:disabled) {
  background: #383838;
}
.ep-nav-btn.next-btn {
  background: #ffffff;
  color: #0f0f0f;
}
.ep-nav-btn.next-btn:hover:not(:disabled) {
  background: #e5e5e5;
}
.ep-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Custom iOS/YouTube Toggle Switch */
.autoplay-switch-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.switch-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #383838;
  transition: .2s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent-blue);
}

input:checked + .slider:before {
  transform: translateX(16px);
}

.player-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.player-loader {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: opacity 0.3s ease;
}
.player-loader.hidden {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* YouTube Video Action Bar (Exact Screenshot 1 Style) */
.yt-video-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  margin-bottom: 16px;
}

.yt-channel-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yt-channel-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #272727;
  flex-shrink: 0;
}
.yt-channel-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-channel-name-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.yt-channel-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.verified-badge {
  font-size: 12px;
  color: #aaa;
}

.yt-sub-count {
  font-size: 12px;
  color: var(--text-muted);
}

.yt-subscribe-btn {
  background: #ffffff;
  color: #0f0f0f;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 20px;
  transition: background 0.2s;
  margin-left: 8px;
}
.yt-subscribe-btn:hover {
  background: #e5e5e5;
}
.yt-subscribe-btn.subscribed {
  background: #272727;
  color: #ffffff;
}

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

.yt-audio-pill-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.yt-action-pill {
  height: 36px;
  padding: 0 14px;
  background: #272727;
  border: none;
  border-radius: 18px;
  color: #f1f1f1;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
  cursor: pointer;
}
.yt-action-pill:hover {
  background: #383838;
}
.yt-action-pill.active {
  background: #ffffff;
  color: #0f0f0f;
  font-weight: 600;
}
.yt-action-pill.icon-only {
  padding: 0 12px;
}

/* Combined Like / Dislike Split Pill (Exact to Screenshot 1) */
.yt-like-dislike-pill {
  height: 36px;
  background: #272727;
  border-radius: 18px;
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: background 0.2s;
}
.yt-like-dislike-pill:hover {
  background: #383838;
}

.yt-like-btn, .yt-dislike-btn {
  height: 100%;
  padding: 0 14px;
  background: transparent;
  border: none;
  color: #f1f1f1;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.yt-like-btn:hover, .yt-dislike-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.yt-like-btn.active, .yt-dislike-btn.active {
  color: var(--accent-blue);
}

.yt-pill-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
}

.server-toggle-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.server-btn {
  padding: 6px 12px;
  background: #181818;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
}
.server-btn:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}
.server-btn.active {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
  font-weight: 600;
}
.control-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.toggle-btn {
  padding: 6px 14px;
  background: #181818;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.toggle-btn:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}
.toggle-btn.active {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
}

.player-nav-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-ep-btn {
  padding: 6px 14px;
  background: var(--bg-hover);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}
.nav-ep-btn:hover:not(:disabled) {
  background: var(--bg-active);
}
.nav-ep-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.autoplay-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  margin-left: 8px;
}

/* Video Meta Block */
.video-meta-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.watch-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}
.watch-subtitle {
  font-size: 15px;
  color: var(--accent-blue);
  font-weight: 600;
}

.video-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.anime-quick-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}
.rating-tag {
  background: rgba(245, 197, 24, 0.15);
  color: var(--accent-gold);
}
.status-tag {
  background: rgba(62, 166, 255, 0.15);
  color: var(--accent-blue);
}
.type-tag, .year-tag {
  background: var(--bg-hover);
  color: var(--text-muted);
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.action-btn {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.action-btn:hover {
  background: var(--bg-hover);
}
.action-btn.active {
  background: rgba(255, 0, 0, 0.2);
  color: var(--accent-red);
  border-color: var(--accent-red);
}

/* Details Box */
.anime-details-box {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-color);
}

.details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.details-header h3 {
  font-size: 16px;
  font-weight: 700;
}
.episodes-count-text {
  font-size: 12px;
  color: var(--text-muted);
}

.synopsis-text {
  font-size: 14px;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 16px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.detail-item .label {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
}
.detail-item .value {
  color: var(--text-main);
  font-weight: 500;
}
.value-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

/* ==========================================================================
   WATCH SECONDARY: EPISODE PLAYLIST PANEL & RECOMMENDED
   ========================================================================== */

/* ==========================================================================
   EXACT 100% ANIME EPISODE SELECTOR GRID (Screenshot Exact Match)
   ========================================================================== */

.watch-secondary {
  order: -1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ep-selector-card {
  background: #0b1015;
  border: none;
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ep-selector-topbar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.ep-select-dropdown, .ep-find-input {
  background: #141414;
  border: 1px solid #242424;
  border-radius: 4px;
  color: #8e95a5;
  font-size: 12px;
  font-weight: 500;
  height: 34px;
  padding: 0 8px;
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
}
.ep-select-dropdown:focus, .ep-find-input:focus {
  border-color: #6d33cc;
}
.ep-find-input::placeholder {
  color: #555c68;
}

.episodes-grid-5col {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding-right: 2px;
}

.ep-btn-num {
  height: 28px;
  background: #151515;
  border: none;
  border-radius: 4px;
  color: #7c8594;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.ep-btn-num:hover {
  background: #252525;
  color: #ffffff;
}

/* Active Episode - Match Screenshot */
.ep-btn-num.active {
  background: #3bb3e0 !important;
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 4px;
  border: none !important;
}

.playlist-header {
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.playlist-info h4 {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ep-count-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.ep-search-mini input {
  width: 70px;
  padding: 4px 8px;
  background: #121212;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
}

.episodes-playlist-list {
  padding: 12px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 8px;
  max-height: 480px;
}

.ep-btn {
  padding: 10px 4px;
  background: #181818;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: all 0.15s;
}
.ep-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent-blue);
}
.ep-btn.active {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
}

/* Recommended Sidebar List */
.recommended-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.recommended-title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recommended-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rec-item {
  display: flex;
  gap: 12px;
  cursor: pointer;
  background: var(--bg-card);
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.15s;
}
.rec-item:hover {
  transform: translateX(4px);
  border-color: var(--border-hover);
}
.rec-thumb {
  width: 90px;
  height: 110px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}
.rec-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.rec-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rec-meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  gap: 12px;
}
.empty-icon {
  font-size: 48px;
  color: var(--text-muted);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
}

.toast {
  background: #222;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  border-left: 4px solid var(--accent-red);
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION BAR & BACKDROP SYSTEM
   ========================================================================== */

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sidebar-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color);
  z-index: 1200;
  align-items: center;
  justify-content: space-around;
  padding: 4px 8px;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  flex: 1;
  height: 100%;
  transition: color 0.15s ease;
}

.bottom-nav-item i {
  font-size: 18px;
}

.bottom-nav-item.active {
  color: #ffffff;
  font-weight: 700;
}

.bottom-nav-item.active i {
  color: var(--accent-red);
}

.mobile-search-trigger {
  display: none;
}

.mobile-search-close-btn {
  display: none;
}

/* ==========================================================================
   ADVANCED RESPONSIVE MEDIA QUERIES (PC, LAPTOP, TABLET, MOBILE)
   ========================================================================== */

/* 1. Large Screens & 4K PCs (>= 1600px) */
@media (min-width: 1600px) {
  .video-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 20px 14px;
  }
  .watch-page-container {
    max-width: 1750px;
  }
}

/* ==========================================================================
   ADVANCED RESPONSIVE MEDIA QUERIES (PC, LAPTOP, TABLET, MOBILE)
   ========================================================================== */

/* 1. Large Screens & 4K PCs (>= 1600px) */
@media (min-width: 1600px) {
  .video-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 20px 14px;
  }
  .watch-page-container {
    max-width: 1750px;
  }
}

/* 2. Desktop & Standard Laptop (1200px - 1599px) */
@media (max-width: 1599px) and (min-width: 1200px) {
  .video-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 16px 12px;
  }
}

/* 3. Small Laptop / Large Tablet (960px - 1199px) */
@media (max-width: 1199px) and (min-width: 960px) {
  .video-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px 10px;
  }
  .watch-page-container {
    grid-template-columns: 280px 1fr;
    gap: 16px;
  }
}

/* 4. Medium Tablet Portrait (700px - 959px) */
@media (max-width: 959px) and (min-width: 700px) {
  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px 10px;
  }
  .watch-page-container {
    grid-template-columns: 1fr;
  }
  .watch-secondary {
    order: 0;
  }
  .sub-catalog-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* 5. Mobile & Small Tablet (< 768px Container Centering) */
@media (max-width: 768px) {
  .yt-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    z-index: 1300;
    background: #0f0f0f;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.8);
    padding-top: var(--header-height);
  }

  .yt-sidebar.mobile-open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    padding: 12px 14px 80px 14px !important;
    box-sizing: border-box !important;
  }

  .app-view {
    width: 100% !important;
    margin: 0 auto !important;
  }

  .header-left {
    gap: 10px;
  }

  .brand-country {
    display: none;
  }

  .yt-action-pills {
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .yt-action-pills::-webkit-scrollbar {
    display: none;
  }
}

/* 6. Phablet & Mobile Phones (< 700px 2-Column Centered Grid) */
@media (max-width: 699px) {
  #sidebar-toggle-btn {
    display: none !important;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .mobile-search-trigger {
    display: flex;
  }

  .header-center {
    display: none;
  }

  .header-center.mobile-search-active {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--header-height);
    background: var(--bg-color);
    z-index: 1100;
    margin: 0;
    padding: 0 12px;
    max-width: 100%;
  }

  .header-center.mobile-search-active .mobile-search-close-btn {
    display: flex;
  }

  .main-content {
    margin: 0 auto !important;
    padding: 12px 12px 80px 12px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 8px !important;
    width: 100% !important;
    margin: 0 auto !important;
    justify-content: center !important;
    justify-items: center !important;
  }

  .hianime-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hianime-section-title {
    font-size: 18px;
  }

  .yt-player-control-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .control-strip-left, .control-strip-right {
    justify-content: space-between;
    width: 100%;
  }

  .episodes-grid-5col {
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
  }

  .filter-chips-wrapper {
    margin-bottom: 14px;
  }

  .details-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .hianime-badges-bar {
    padding: 3px 5px;
  }

  .badge-sub, .badge-dub, .badge-total {
    font-size: 10px;
    padding: 1px 4px;
  }
}

/* 7. Extra Small Phones (< 380px) */
@media (max-width: 380px) {
  .brand-text {
    font-size: 16px;
  }
  .yt-logo-red {
    font-size: 20px;
  }
  .video-grid {
    gap: 10px 8px !important;
  }
  .hianime-card-title {
    font-size: 12px;
  }
  .episodes-grid-5col {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Poster Card Play Overlay */
.poster-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 5;
}
.hianime-card:hover .poster-play-overlay {
  opacity: 1;
}
.play-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #0f0f0f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  padding-left: 3px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  transform: scale(0.9);
  transition: transform 0.2s ease;
}
.hianime-card:hover .play-icon-circle {
  transform: scale(1);
}

/* 3-Column Sub-Catalog Section (New Release, New Added, Just Completed - Screenshot Replica) */
.sub-catalog-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  width: 100%;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 960px) {
  .sub-catalog-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.sub-catalog-col {
  display: flex;
  flex-direction: column;
}

.sub-catalog-title-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}
.sub-catalog-title-link:hover h3 {
  color: var(--accent-blue);
}

.sub-catalog-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px 0;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: color 0.15s ease;
}
.sub-catalog-header h3 i {
  font-size: 13px;
}
.sub-catalog-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sub-catalog-item {
  background: #1C1C1C;
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.sub-catalog-item:hover {
  background: #282828;
}

.sub-catalog-poster {
  width: 58px;
  height: 82px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.sub-catalog-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.sub-catalog-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #e4e4e7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  transition: color 0.15s ease;
}
.sub-catalog-item:hover .sub-catalog-title {
  color: #ffffff;
}

.sub-catalog-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #a1a1aa;
}

.sub-badge-sub {
  background: #581c87;
  color: #d8b4fe;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.sub-badge-dub {
  background: #78350f;
  color: #fde047;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.sub-badge-total {
  background: #3f3f46;
  color: #d4d4d8;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 11.5px;
}

.sub-catalog-right-tag {
  margin-left: auto;
  flex-shrink: 0;
}

.star-rating-pill {
  background: rgba(234, 179, 8, 0.12);
  color: #eab308;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* AniWave Replica Dedicated Sub-Page Layout (View 5) */
.sub-page-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 0 30px;
}

.sub-page-main-layout {
  display: flex;
  gap: 24px;
  width: 100%;
}

@media (max-width: 1050px) {
  .sub-page-main-layout {
    flex-direction: column;
  }
  .sub-page-right-sidebar {
    width: 100% !important;
  }
}

.sub-page-left-col {
  flex: 1;
  min-width: 0;
}

.sub-page-right-sidebar {
  width: 280px;
  flex-shrink: 0;
}

.sub-page-main-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px 0;
  letter-spacing: -0.2px;
}

/* AniWave Filter Bar */
.aniwave-filter-bar {
  background: #141419;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 24px;
}

.filter-inputs-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  width: 100%;
}

@media (max-width: 900px) {
  .filter-inputs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 550px) {
  .filter-inputs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.filter-input-box.search input,
.filter-select {
  width: 100%;
  box-sizing: border-box;
  background: #18181f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 8px 12px;
  color: #888888;
  font-size: 13px;
  outline: none;
}

.filter-select {
  color: #a1a1aa;
}

.aniwave-filter-btn {
  background: #6d28d9;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}
.aniwave-filter-btn:hover {
  background: #5b21b6;
}

.sub-page-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: #888888;
}

.grid-view-icons i {
  font-size: 14px;
  color: #666666;
  cursor: pointer;
  margin-left: 8px;
}
.grid-view-icons i.active {
  color: #ffffff;
}

.aniwave-pagination {
  display: flex;
  justify-content: center;
  margin-top: 36px;
  margin-bottom: 24px;
}

.pag-pill-bar {
  display: inline-flex;
  align-items: center;
  background: #202027;
  border-radius: 8px;
  overflow: hidden;
  height: 38px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pag-btn {
  background: transparent;
  color: #a1a1aa;
  border: none;
  height: 100%;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.pag-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.pag-btn.active {
  background: #6d28d9;
  color: #ffffff;
  font-weight: 700;
}

.quick-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  background: #ffffff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.quick-google-btn:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3);
}

/* Top Rated Anime Sidebar Box */
.top-rated-box {
  background: #141419;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 16px;
}

.top-rated-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 2px 0;
}

.top-rated-subtitle {
  font-size: 11px;
  color: #888888;
  display: block;
  margin-bottom: 14px;
}

.top-rated-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.top-rated-card {
  background: #18181f;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.top-rated-card:hover {
  background: #23232c;
}

.top-rated-poster {
  width: 46px;
  height: 64px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.top-rated-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.top-rated-name {
  font-size: 13px;
  font-weight: 500;
  color: #e4e4e7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
.top-rated-card:hover .top-rated-name {
  color: #ffffff;
}

.top-rated-score {
  font-size: 11px;
  font-weight: 600;
  color: #eab308;
}

/* A-Z List Section */
.az-list-section {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.az-header {
  margin-bottom: 12px;
}

.az-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-right: 12px;
}

.az-subtitle {
  font-size: 12px;
  color: #888888;
}

.az-buttons-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.az-btn {
  background: #1c1c24;
  color: #a1a1aa;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.az-btn:hover, .az-btn.active {
  background: #8b5cf6;
  color: #ffffff;
  border-color: #8b5cf6;
}
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sub-catalog-item {
  background: #18181f;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.sub-catalog-item:hover {
  background: #23232c;
  border-color: rgba(255, 255, 255, 0.15);
}

.sub-catalog-poster {
  width: 48px;
  height: 68px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.sub-catalog-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.sub-catalog-title {
  font-size: 13.5px;
  font-weight: 500;
  color: #e4e4e7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  transition: color 0.15s ease;
}
.sub-catalog-item:hover .sub-catalog-title {
  color: #ffffff;
}

.sub-catalog-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #a1a1aa;
}

.sub-badge-sub {
  background: #581c87;
  color: #d8b4fe;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 10.5px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.sub-badge-dub {
  background: #78350f;
  color: #fde047;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 10.5px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.sub-badge-total {
  background: #3f3f46;
  color: #d4d4d8;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 10.5px;
}





/* =========================================================================
   NEW 3-COLUMN WATCH PAGE STYLES (ANIWAVE STYLE)
   ========================================================================= */
.watch-main {
  background-color: #0b1015; /* Extremely dark blue/black background */
  min-height: 100vh;
  padding: 20px;
}

.watch-container-3col {
  display: grid;
  grid-template-columns: 280px 1fr 320px; /* Left Sidebar, Center, Right Sidebar */
  gap: 20px;
  max-width: 1600px;
  margin: 0 auto;
  align-items: start;
}

/* --- Left Column: Episodes --- */
.watch-col-left {
  background-color: #1a222d;
  border-radius: 4px;
  overflow: hidden;
  height: 80vh;
  display: flex;
  flex-direction: column;
}

.ep-selector-topbar {
  display: flex;
  background-color: #0b1015;
  padding: 10px;
  gap: 5px;
  border-bottom: 1px solid #2a3441;
}

.ep-select-dropdown {
  background-color: #212936;
  color: #ccc;
  border: none;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  flex: 1;
}

.ep-find-input {
  background-color: #212936;
  color: #fff;
  border: none;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 12px;
  flex: 1;
}

.episodes-list-vertical {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.ep-list-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid #141b24;
  color: #aaa;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  font-size: 13px;
}

.ep-list-btn:hover {
  background-color: #212936;
  color: #fff;
}

.ep-list-btn.active {
  background-color: var(--accent-red); /* YouTube Red */
  color: #fff;
  font-weight: 500;
}

.ep-num-label {
  width: 30px;
  font-weight: bold;
}

.ep-title-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 10px;
}

.ep-play-icon {
  font-size: 12px;
  opacity: 0;
}

.ep-list-btn.active .ep-play-icon {
  opacity: 1;
}

/* Scrollbar for episodes list */
.episodes-list-vertical::-webkit-scrollbar {
  width: 6px;
}
.episodes-list-vertical::-webkit-scrollbar-track {
  background: #141b24;
}
.episodes-list-vertical::-webkit-scrollbar-thumb {
  background: #2a3441;
  border-radius: 3px;
}

/* --- Center Column: Player --- */
.watch-col-center {
  display: flex;
  flex-direction: column;
  gap: 0; /* Tight spacing between player and controls */
}

/* Player wrapper already exists but let us reset some margins */
.player-wrapper {
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  background-color: #000;
  aspect-ratio: 16 / 9;
  position: relative;
}

.aw-player-control-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #000;
  padding: 10px 16px;
  border-radius: 0 0 4px 4px;
  font-size: 13px;
  color: #aaa;
}

.aw-controls-left, .aw-controls-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.aw-control-btn {
  background: none;
  border: none;
  color: #aaa;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.aw-control-btn:hover {
  color: #fff;
}

.aw-control-btn.yellow-btn {
  color: #ffc107;
}

.aw-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
}

.aw-checkbox-label input {
  display: none;
}

.aw-checkmark {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background-color: #212936;
  border: 1px solid #3a4451;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aw-checkbox-label input:checked ~ .aw-checkmark {
  background-color: #1ca2d9;
  border-color: #1ca2d9;
}

.aw-checkbox-label input:checked ~ .aw-checkmark::after {
  content: "\f00c"; /* FontAwesome check */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 10px;
  color: #fff;
}

.aw-server-box {
  background-color: #131a23;
  margin-top: 20px;
  border-radius: 4px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.server-notice {
  text-align: center;
  font-size: 14px;
  color: #aaa;
}

.cyan-text {
  color: #1ca2d9;
}

.dim-text {
  color: #666;
  font-size: 13px;
}

.server-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.server-lang-label {
  color: #aaa;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.server-lang-label.ml-4 {
  margin-left: 16px;
}

.server-btn {
  background-color: #212936;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.server-btn:hover {
  background-color: #2a3441;
}

.server-btn.active {
  background-color: #1ca2d9;
  color: #fff;
}

/* --- Right Column: Related --- */
.watch-col-right {
  display: flex;
  flex-direction: column;
  height: 80vh;
}

.related-title {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 15px;
}

.related-list-vertical {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.related-list-vertical::-webkit-scrollbar {
  width: 6px;
}
.related-list-vertical::-webkit-scrollbar-track {
  background: #0b1015;
}
.related-list-vertical::-webkit-scrollbar-thumb {
  background: #2a3441;
  border-radius: 3px;
}

.related-card {
  display: flex;
  background-color: #161e27;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  transition: background-color 0.2s;
  height: 80px;
  cursor: pointer;
}

.related-card:hover {
  background-color: #1a222d;
}

.related-poster {
  width: 60px;
  height: 100%;
  object-fit: cover;
}

.related-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.related-name {
  font-size: 13px;
  font-weight: 500;
  color: #1ca2d9;
  margin: 0 0 5px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-meta {
  font-size: 11px;
  color: #888;
  display: flex;
  gap: 8px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .watch-container-3col {
    grid-template-columns: 250px 1fr;
  }
  .watch-col-right {
    grid-column: 1 / -1;
    height: auto;
  }
}

@media (max-width: 900px) {
  .watch-container-3col {
    grid-template-columns: 1fr;
  }
  .watch-col-left {
    height: 300px;
  }
  .aw-player-control-strip {
    flex-direction: column;
    gap: 10px;
  }
}

