* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

:root {
  --bg-main: #0a0e17;
  --bg-card: #151d2c;
  --bg-card-hover: #1e293b;
  --primary-gold: #ffd700;
  --primary-red: #e50914;
  --accent-cyan: #00e5ff;
  --text-white: #ffffff;
  --text-gray: #94a3b8;
  --btn-back-bg: #243048;
}

body {
  background-color: var(--bg-main);
  color: var(--text-white);
  overflow-x: hidden;
  overflow-y: auto;
  width: 100vw;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0e17;
}
::-webkit-scrollbar-thumb {
  background: #243048;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-gold);
}

/* Focusable items for LG Remote & Magic Remote (Hardware Accelerated) */
.focusable {
  outline: none;
  transition: transform 0.1s ease;
  cursor: pointer;
  transform: translateZ(0);
}
.focusable:focus,
.focusable.focused,
.focusable:hover {
  transform: scale(1.04) translateZ(0);
  outline: 3px solid #00e5ff !important;
  outline-offset: 2px !important;
  border-color: var(--accent-cyan) !important;
  z-index: 10;
}

/* Header */
.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 36px;
  background: linear-gradient(180deg, #121927 0%, rgba(10, 14, 23, 0.95) 100%);
  border-bottom: 1px solid #1f293d;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-badge {
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
  border: 1px solid #ff7961;
  box-shadow: 0 2px 10px rgba(229, 9, 20, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.brand-subtitle {
  color: var(--primary-gold);
  font-size: 14px;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-header {
  background: #1a2234;
  color: #ffffff;
  border: 1px solid #2e3a52;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
}

.clock-display {
  font-size: 18px;
  font-weight: bold;
  color: var(--accent-cyan);
  background: #101622;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid #232d3f;
  margin-left: 8px;
}

/* 4 Sources Selector (TV Box Style) */
.sources-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 14px 36px 8px 36px;
}

.btn-source {
  background: #1a2234;
  color: #cbd5e1;
  border: 2px solid transparent;
  padding: 12px 0;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.btn-source.active {
  background: linear-gradient(135deg, #e50914, #c62828);
  color: #ffffff;
  border-color: #ffcdd2;
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.4);
}

/* Category Filter Bar Wrapper for Windows PC */
.filter-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  padding: 4px 20px 8px 20px;
  gap: 8px;
}

.filter-nav-btn {
  background: #1e293b;
  color: var(--primary-gold);
  border: 1px solid #334155;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.filter-nav-btn:hover {
  background: var(--primary-gold);
  color: #000000;
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(255, 215, 0, 0.4);
}

.filter-bar {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 8px 8px 12px 8px;
  scroll-behavior: smooth;
  flex: 1;
}

/* Thanh cuộn ngang mỏng thanh lịch cho Windows PC */
.filter-bar::-webkit-scrollbar {
  height: 6px;
}
.filter-bar::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 3px;
}
.filter-bar::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}
.filter-bar::-webkit-scrollbar-thumb:hover {
  background: var(--primary-gold);
}

.btn-filter {
  background: #161e2e;
  color: #94a3b8;
  border: 1px solid #26334d;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-filter.active {
  background: var(--primary-gold);
  color: #000000;
  border-color: #ffd700;
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
}

/* History Row (Tiếp Tục Xem) */
.history-section {
  padding: 0 36px 14px 36px;
}
.history-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-gold);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.history-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.history-item {
  width: 200px;
  flex-shrink: 0;
  background: #141b29;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #243048;
  position: relative;
}
.history-thumb {
  width: 100%;
  height: 112px;
  object-fit: cover;
  background: #0d121c;
}
.history-progress-bg {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
}
.history-progress-bar {
  height: 100%;
  background: var(--primary-gold);
}
.history-info {
  padding: 6px 10px;
}
.history-name {
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
}
.history-sub {
  font-size: 11px;
  color: #94a3b8;
}

/* Movie & TV Grid (Responsive cho Windows PC) */
.grid-container {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  padding: 8px 36px 40px 36px;
}

@media (max-width: 1600px) {
  .grid-container {
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    padding: 8px 24px 40px 24px;
  }
}

@media (max-width: 1300px) {
  .grid-container {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    padding: 8px 20px 40px 20px;
  }
}

@media (max-width: 1000px) {
  .grid-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 8px 16px 40px 16px;
  }
}

.movie-card {
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #232d42;
  display: flex;
  flex-direction: column;
  position: relative;
  contain: content;
  transform: translateZ(0);
  will-change: transform;
}

.movie-card.tv-card .poster-wrapper {
  height: 140px;
  background: #101624;
  display: flex;
  align-items: center;
  justify-content: center;
}
.movie-card.tv-card .card-poster {
  width: 90%;
  height: 90%;
  object-fit: contain;
  padding: 6px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.poster-wrapper {
  position: relative;
  width: 100%;
  height: 230px;
  background: #0f1420;
}

.card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-quality {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(229, 9, 20, 0.9);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.badge-fav {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffd700;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.badge-episode {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #38bdf8;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
}

.card-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f1f5f9;
}

.card-subtitle {
  font-size: 12px;
  color: var(--text-gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Detail Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 12, 20, 0.94);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  width: 90vw;
  max-width: 1200px;
  max-height: 90vh;
  background: #111827;
  border: 1px solid #2e3a52;
  border-radius: 14px;
  overflow-y: auto;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
}

.detail-layout {
  display: flex;
  gap: 30px;
}

.detail-poster {
  width: 260px;
  height: 380px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #2e3a52;
  flex-shrink: 0;
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.detail-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--primary-gold);
}

.detail-sub {
  font-size: 15px;
  color: #94a3b8;
}

.detail-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-badge {
  background: #1e293b;
  color: var(--accent-cyan);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: bold;
}

.detail-desc {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.5;
  max-height: 120px;
  overflow-y: auto;
}

.detail-buttons {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

.btn-primary-yellow {
  background: var(--primary-gold);
  color: #000000;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-back-style {
  background: var(--btn-back-bg);
  color: #ffffff;
  border: 1px solid #3b4c6e;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
}

.episodes-section {
  margin-top: 24px;
  border-top: 1px solid #1f293d;
  padding-top: 16px;
}

.server-title {
  font-size: 16px;
  font-weight: bold;
  color: #38bdf8;
  margin-bottom: 10px;
}

.episodes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
}

.btn-episode {
  background: #1e293b;
  color: #ffffff;
  border: 1px solid #334155;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
}
.btn-episode.active {
  background: var(--primary-gold);
  color: #000000;
  border-color: var(--primary-gold);
}

/* Fullscreen Video Player */
.player-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000000;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
}

#videoPlayer {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 36px;
  background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, transparent 25%, transparent 70%, rgba(0,0,0,0.9) 100%);
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.player-overlay.hide {
  opacity: 0;
}
.player-overlay * {
  pointer-events: auto;
}

.player-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.player-title-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.player-title {
  font-size: 22px;
  font-weight: bold;
  color: #ffffff;
}

.player-subtitle {
  font-size: 16px;
  color: var(--primary-gold);
}

.player-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 14px;
}

.seek-bar {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.3);
  outline: none;
  cursor: pointer;
  accent-color: var(--primary-gold);
}

.time-label {
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
  min-width: 60px;
}

.player-buttons-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-player {
  background: rgba(30, 41, 59, 0.85);
  color: #ffffff;
  border: 1px solid #475569;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Quick Zapping Sidebar in Player */
.zapping-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 380px;
  height: 100%;
  background: rgba(10, 14, 23, 0.95);
  border-left: 1px solid #2e3a52;
  padding: 24px;
  overflow-y: auto;
  z-index: 2100;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.zapping-panel.open {
  transform: translateX(0);
}
.zapping-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--primary-gold);
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.zapping-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.zapping-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  background: #141b29;
  border: 1px solid #232d3f;
  cursor: pointer;
}
.zapping-item.active {
  background: #1e293b;
  border-color: var(--primary-gold);
}
.zapping-logo {
  width: 48px;
  height: 32px;
  object-fit: contain;
}
.zapping-name {
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
  flex: 1;
}

/* Match Schedule Dialog */
.matches-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
  margin: 16px 0;
}
.match-card {
  background: #162032;
  border: 1px solid #2a374f;
  border-radius: 10px;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.match-card:hover, .match-card.focused {
  border-color: var(--accent-cyan);
  background: #1e2c45;
}
.match-teams {
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 4px;
}
.match-league {
  font-size: 13px;
  color: var(--accent-cyan);
}
.match-channel {
  font-size: 13px;
  color: #cbd5e1;
}
.match-time-badge {
  background: #b91c1c;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: bold;
}

/* Toast Notification */
.toast-box {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  border: 1px solid var(--accent-cyan);
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  z-index: 3000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  display: none;
}

/* Pagination & Load More for Windows PC */
.pagination-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 60px 20px;
  gap: 12px;
}

.pagination-info {
  font-size: 15px;
  color: #cbd5e1;
  font-weight: 600;
}

.btn-load-more {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: var(--primary-gold);
  border: 2px solid var(--primary-gold);
  padding: 14px 40px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-load-more:hover,
.btn-load-more:focus {
  background: var(--primary-gold);
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 215, 0, 0.4);
}

.loading-more-spinner {
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-cyan);
  padding: 10px;
}

/* Scroll To Top Button */
.btn-scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.9);
  color: #ffffff;
  border: 2px solid var(--accent-cyan);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  transition: all 0.2s ease;
}

.btn-scroll-top:hover {
  background: var(--accent-cyan);
  color: #000000;
  transform: scale(1.1);
}

/* 4 Server Selection Options (v2.5) */
.btn-server-option {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #141c2b;
  border: 1px solid #28354d;
  padding: 12px 16px;
  border-radius: 10px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-server-option:hover,
.btn-server-option:focus {
  background: #1e293b;
  border-color: var(--primary-gold);
  transform: translateX(4px);
  box-shadow: 0 4px 14px rgba(255, 215, 0, 0.25);
}

.server-badge {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.badge-green { background: #059669; color: #fff; }
.badge-blue { background: #0284c7; color: #fff; }
.badge-purple { background: #7c3aed; color: #fff; }
.badge-yellow { background: #d97706; color: #fff; }

.server-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.server-title {
  font-size: 15px;
  font-weight: bold;
  color: #f8fafc;
}

.server-desc {
  font-size: 12px;
  color: #94a3b8;
}

/* Match Notification Bell & LIVE badge */
.match-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #131b29;
  border: 1px solid #232e43;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.match-card:hover {
  background: #1a2538;
  border-color: var(--accent-cyan);
}

.btn-bell-reminder {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #94a3b8;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-bell-reminder.active {
  background: rgba(255, 215, 0, 0.2);
  border-color: var(--primary-gold);
  color: var(--primary-gold);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.match-live-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  margin-right: 6px;
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}



/* --- 3D Depth & Embossed Styling (v2.5 Enhanced) --- */
.sub-sources-bar {
  display: flex;
  gap: 10px;
  padding: 6px 36px 10px 36px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sub-sources-bar::-webkit-scrollbar {
  display: none;
}

.btn-sub-source {
  background: linear-gradient(180deg, #222d42 0%, #151d2c 100%);
  color: #cbd5e1;
  border: 1px solid #334460;
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.15);
  transition: all 0.15s cubic-bezier(0.2, 0, 0, 1);
}

.btn-sub-source:hover, .btn-sub-source:focus {
  border-color: #ffd700;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-sub-source.active {
  background: linear-gradient(135deg, #ffd700 0%, #ffa000 100%) !important;
  color: #0b0e14 !important;
  font-weight: 800 !important;
  border-color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.45), inset 0 1px 1px rgba(255,255,255,0.4) !important;
}

/* Tương phản cao: Chữ đen tuyền trên nền vàng */
.btn-source.active {
  background: linear-gradient(135deg, #ffd700 0%, #ff9100 100%) !important;
  color: #0b0e14 !important;
  font-weight: 800 !important;
  border-color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(255, 215, 0, 0.45), inset 0 1px 1px rgba(255,255,255,0.4) !important;
}

.btn-filter.active {
  background: linear-gradient(135deg, #ffd700 0%, #ffa000 100%) !important;
  color: #0b0e14 !important;
  font-weight: 800 !important;
  border-color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(255, 215, 0, 0.4) !important;
}

/* Hiệu ứng 3D nảy nổi lên khi bấm (Active / Click / Tap) */
.btn-source:active,
.btn-filter:active,
.btn-sub-source:active,
.movie-card:active,
.btn-player:active,
.btn-header:active {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5) !important;
  filter: brightness(1.15) !important;
  transition: transform 0.08s ease, box-shadow 0.08s ease !important;
}

/* Banner tiêu đề hiệu ứng 3D */
.header-title, .logo-text, .brand-title {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 14px rgba(255, 215, 0, 0.45) !important;
  letter-spacing: 0.5px;
}

/* Card phim hiệu ứng 3D dập nổi */
.movie-card {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 1px 0 rgba(255, 215, 0, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s ease !important;
}

.movie-card:hover, .movie-card:focus {
  transform: translateY(-4px) scale(1.03) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.8), 0 0 16px rgba(255, 215, 0, 0.4) !important;
  border-color: #ffd700 !important;
}


/* PWA Install Banner */
.pwa-install-banner {
  background: linear-gradient(90deg, #0f172a, #1e1b4b, #172554);
  border-bottom: 2px solid #eab308;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}
.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pwa-banner-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #ffd700;
}
.pwa-banner-title {
  color: #ffd700;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.pwa-banner-sub {
  color: #94a3b8;
  font-size: 11px;
}
.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-banner-install {
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #000;
  font-weight: 900;
  border: none;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.4);
}
.btn-banner-close {
  background: transparent;
  color: #94a3b8;
  border: none;
  font-size: 16px;
  padding: 4px 8px;
  cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .header-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 10px 14px !important;
    gap: 10px !important;
  }
  .brand-section {
    justify-content: space-between !important;
  }
  .brand-subtitle {
    display: none !important;
  }
  .header-actions {
    overflow-x: auto !important;
    width: 100% !important;
    padding-bottom: 4px !important;
    gap: 8px !important;
    scrollbar-width: none !important;
  }
  .header-actions::-webkit-scrollbar {
    display: none !important;
  }
  .btn-header {
    padding: 6px 12px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  .clock-display {
    display: none !important;
  }
  .sources-bar {
    padding: 6px 10px !important;
    gap: 6px !important;
  }
  .btn-source {
    font-size: 13px !important;
    padding: 8px 6px !important;
  }
  .grid-container {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    padding: 8px 10px 40px 10px !important;
  }
}

@media (max-width: 480px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
