/* -----------------------------------------------------------------------------
   NETSHORT API EXPLORER & DECRYPTOR - DESIGN SYSTEM
   Theme: Ultra Dark Glassmorphism / Cyber-Cyan / Emerald & Purple Accents
   ----------------------------------------------------------------------------- */

:root {
  --bg-primary: #080d19;
  --bg-secondary: #0d1527;
  --bg-card: rgba(16, 26, 48, 0.75);
  --bg-card-hover: rgba(22, 36, 66, 0.9);
  --bg-input: #0b1220;
  
  --border-subtle: #1e293b;
  --border-focus: #06b6d4;
  --border-active: #38bdf8;

  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.35);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-purple: #8b5cf6;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;
}

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

a, a:hover, a:visited, a:active, a:focus {
  text-decoration: none;
  color: inherit;
}


body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 0% 0%, rgba(6, 182, 212, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.08) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* -----------------------------------------------------------------------------
   HEADER
   ----------------------------------------------------------------------------- */
.app-header {
  height: 74px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(11, 18, 33, 0.85);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 0 20px var(--accent-cyan-glow);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.meta-pill {
  padding: 0.4rem 0.85rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.meta-pill.online {
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* -----------------------------------------------------------------------------
   MAIN WORKSPACE LAYOUT
   ----------------------------------------------------------------------------- */
.workspace-container {
  display: grid;
  grid-template-columns: 430px 1fr;
  flex: 1;
  height: calc(100vh - 74px);
  overflow: hidden;
}

.panel-left {
  border-right: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 1.5rem;
  gap: 1.5rem;
}

.panel-right {
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1.25rem 2rem;
  gap: 0.85rem;
  height: 100%;
}

/* Section Header */
.section-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.section-num {
  padding: 0.15rem 0.45rem;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* -----------------------------------------------------------------------------
   ENDPOINT SELECTOR CARDS
   ----------------------------------------------------------------------------- */
.endpoint-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.endpoint-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.endpoint-card:hover {
  background: var(--bg-card-hover);
  border-color: #334155;
  transform: translateY(-1px);
}

.endpoint-card.active {
  background: rgba(14, 116, 144, 0.18);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px var(--accent-cyan-glow);
}

.endpoint-card.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-cyan);
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.method-badge {
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.35rem;
}

.card-path {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

/* -----------------------------------------------------------------------------
   INPUT FORM STYLING
   ----------------------------------------------------------------------------- */
.input-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.form-input, .form-select {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus, .form-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.form-input::placeholder {
  color: var(--text-dim);
}

.btn-execute {
  width: 100%;
  padding: 0.85rem;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 18px var(--accent-cyan-glow);
  transition: all 0.25s ease;
}

.btn-execute:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(6, 182, 212, 0.55);
}

.btn-execute:active {
  transform: translateY(0);
}

.btn-execute.loading {
  opacity: 0.75;
  pointer-events: none;
}

/* -----------------------------------------------------------------------------
   RESPONSE PANEL
   ----------------------------------------------------------------------------- */
.response-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.85rem;
}

.response-status-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.status-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.error {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.3);
}

.metric-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.6);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

/* Tabs */
.tabs-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.6rem;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.subtabs-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.25rem;
}

.subtab-buttons {
  display: flex;
  gap: 0.4rem;
}

.subtab-btn {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.subtab-btn:hover {
  color: #fff;
  border-color: #334155;
}

.subtab-btn.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
}

.btn-copy {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy:hover {
  color: #fff;
  border-color: var(--accent-cyan);
}

/* Content Container */
.response-view-content {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* JSON Code Box */
.code-container {
  padding: 1.25rem;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.6;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-all;
  flex: 1;
  height: 100%;
}

/* -----------------------------------------------------------------------------
   VISUAL CARDS SYSTEM (RICH UI RENDERING)
   ----------------------------------------------------------------------------- */
.visual-container {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
  height: 100%;
}

/* User Card */
.user-profile-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 1.5rem;
}

.user-avatar {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.user-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.user-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.stat-value {
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

/* Drama Grid */
.drama-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.25rem;
}

.drama-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.drama-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--accent-cyan-glow);
}

.drama-poster {
  width: 100%;
  height: 270px;
  object-fit: cover;
  background: #1e293b;
}

.drama-body {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.4rem;
}

.drama-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7rem;
}

.drama-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tag-badge {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  font-weight: 600;
}

.btn-view-detail {
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.45rem;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #38bdf8;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-view-detail:hover {
  background: var(--accent-cyan);
  color: #fff;
}

/* Drama Detail Hero */
.detail-hero {
  display: flex;
  gap: 1.5rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.25rem;
}

.detail-hero-poster {
  width: 130px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #334155;
}

.detail-hero-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.episode-cell {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.6rem 0.4rem;
  text-align: center;
  cursor: default;
  transition: all 0.2s ease;
}

.episode-cell.free {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

.episode-cell.locked {
  border-color: rgba(244, 63, 94, 0.3);
  opacity: 0.75;
}

.episode-cell.loading {
  border-color: #f59e0b !important;
  background: rgba(245, 158, 11, 0.15) !important;
  opacity: 1 !important;
  animation: pulse-border 1.2s infinite ease-in-out;
}

.episode-cell.playing {
  border-color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.2) !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
  opacity: 1 !important;
}

@keyframes pulse-border {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(245, 158, 11, 0); }
  50% { transform: scale(1.05); box-shadow: 0 0 10px rgba(245, 158, 11, 0.5); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(245, 158, 11, 0); }
}

.episode-num {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #fff;
}

.episode-status {
  font-size: 0.65rem;
  margin-top: 0.25rem;
}

.episode-status.free {
  color: #34d399;
}

.episode-status.locked {
  color: #fb7185;
}

/* VIP & Coin Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.pricing-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.pricing-card.vip {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(15, 23, 42, 0.9));
}

.pricing-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  background: #f59e0b;
  color: #000;
}

.pricing-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.pricing-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.pricing-sku {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  word-break: break-all;
}

/* Toast */
.toast-msg {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0284c7;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 100;
}

.toast-msg.show {
  opacity: 1;
  transform: translateY(0);
}

/* Clarity Switcher */
.clarity-switcher {
  display: flex;
  background: #0f172a;
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
  border: 1px solid #334155;
}

.clarity-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.clarity-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.clarity-btn.active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

/* Header Share Button */
.btn-share-header {
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  color: #fff;
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.25);
}

.btn-share-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.45);
}

/* Global Search Bar Component */
.search-bar-container {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  backdrop-filter: blur(8px);
}

.search-input-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

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

.search-icon-inside {
  position: absolute;
  left: 0.85rem;
  font-size: 1rem;
  pointer-events: none;
  color: #64748b;
}

.search-main-input {
  width: 100%;
  background: #090d16;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 0.7rem 2.4rem 0.7rem 2.5rem;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-main-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.search-clear-btn {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  color: #64748b;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.2rem;
  display: none;
}

.search-clear-btn:hover {
  color: #cbd5e1;
}

.btn-search-submit {
  padding: 0.7rem 1.25rem;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-search-submit:hover {
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.search-hot-tags {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: #94a3b8;
}

.hot-tag-pill {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid #334155;
  color: #cbd5e1;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.hot-tag-pill:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* -----------------------------------------------------------------------------
   CINEMA STREAMING PLATFORM STYLES
   ----------------------------------------------------------------------------- */
/* Dev Mode Toggle Button in Header */
.btn-dev-toggle {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid #334155;
  color: #94a3b8;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.btn-dev-toggle:hover {
  color: #fff;
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
}

.btn-dev-toggle.active {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--accent-cyan);
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

/* Cache Manager Button in Header */
.btn-cache-header {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.btn-cache-header:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: #10b981;
  color: #fff;
  transform: translateY(-1px);
}

.cinema-card-resume {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92), rgba(0,0,0,0.4) 70%, transparent);
  padding: 0.8rem 0.6rem 0.4rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.resume-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  overflow: hidden;
}

.resume-progress-fill {
  height: 100%;
  background: #38bdf8;
  border-radius: 2px;
}

.resume-badge-text {
  font-size: 0.68rem;
  font-weight: 700;
  color: #38bdf8;
}

/* Sticky Category Navigation Bar */
.category-nav-bar {
  background: rgba(11, 18, 33, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 74px;
  z-index: 45;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.category-nav-wrapper {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
  position: relative;
}

.category-nav-arrow {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #334155;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.category-nav-arrow:hover {
  background: #0284c7;
  border-color: #38bdf8;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

.category-nav-arrow:active {
  transform: scale(0.95);
}

.category-nav-arrow.hidden {
  opacity: 0.2;
  cursor: default;
  pointer-events: none;
}

.category-scroll-container {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px;
  flex: 1;
  min-width: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.35) transparent;
  cursor: grab;
}

.category-scroll-container.dragging {
  cursor: grabbing;
  user-select: none;
  scroll-behavior: auto;
}

.category-scroll-container::-webkit-scrollbar {
  height: 4px;
}

.category-scroll-container::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.4);
  border-radius: 4px;
}

.category-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.25);
  border-radius: 4px;
}

.category-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #38bdf8;
}

.category-pill-btn {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #1e293b;
  color: #94a3b8;
  padding: 0.45rem 0.9rem;
  border-radius: 25px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.category-pill-btn:hover {
  color: #fff;
  border-color: #475569;
  background: rgba(30, 41, 59, 0.8);
  transform: translateY(-1px);
}

.category-pill-btn.active {
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  color: #fff;
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
  font-weight: 700;
}

.category-count-badge {
  font-size: 0.68rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.1rem 0.35rem;
  border-radius: 10px;
  opacity: 0.85;
}

/* Category Quick Search input */
.category-filter-box {
  display: flex;
  align-items: center;
  background: #090d16;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 0.3rem 0.65rem;
  gap: 0.4rem;
  min-width: 190px;
}

.category-filter-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.8rem;
  width: 100%;
}

/* Cinema Container */
.cinema-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Cinema Hero Spotlight Banner */
.cinema-hero-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.2);
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center 25%;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8);
}

.cinema-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #080d19 15%, rgba(8, 13, 25, 0.75) 60%, rgba(8, 13, 25, 0.3) 100%);
  backdrop-filter: blur(1px);
}

.cinema-hero-content {
  position: relative;
  z-index: 10;
  padding: 2.5rem;
  max-width: 750px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cinema-hero-badges {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-pill-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-synopsis {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.btn-hero-play {
  padding: 0.75rem 1.6rem;
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
}

.btn-hero-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.55);
}

.btn-hero-unlock {
  padding: 0.75rem 1.4rem;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.btn-hero-unlock:hover {
  background: rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

/* Cinema Movie Grid */
.cinema-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cinema-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cinema-movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 1.25rem;
}

/* Cinema Movie Card */
.cinema-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.cinema-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: #38bdf8;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.25);
}

.cinema-poster-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0f172a;
}

.cinema-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cinema-card:hover .cinema-poster-img {
  transform: scale(1.08);
}

.cinema-card-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.25s ease;
}

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

.play-circle-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
  transform: scale(0.8);
  transition: transform 0.25s ease;
}

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

.cinema-card-body {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.cinema-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cinema-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-top: auto;
  padding-top: 0.3rem;
}

/* Collapsible Dev Tools Drawer */
.dev-tools-drawer {
  border-top: 2px dashed #334155;
  background: rgba(8, 13, 25, 0.98);
  padding: 2rem 1.5rem;
  margin-top: 3rem;
}

.dev-tools-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* -----------------------------------------------------------------------------
   HARDWARE ACCELERATION & ZERO-LAG VIDEO OPTIMIZATION
   ----------------------------------------------------------------------------- */
#videoModal {
  will-change: opacity;
  transform: translateZ(0);
}

#playerVideo {
  will-change: transform;
  transform: translateZ(0);
  background: #000;
  contain: paint;
  outline: none;
}

/* -----------------------------------------------------------------------------
   ROSHORT (ROPHIM CLONE) DESIGN SYSTEM
   ----------------------------------------------------------------------------- */
.ro-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  cursor: pointer;
}

.ro-brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle, #fde047 0%, #eab308 55%, #ca8a04 85%, #854d0e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.45);
  position: relative;
  flex-shrink: 0;
}

.ro-brand-icon::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #0f172a;
  margin-left: 3px;
}

.ro-brand-title {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #fff;
  line-height: 1.1;
}

.ro-brand-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  letter-spacing: 0.2px;
}

.ro-header-search {
  flex: 1;
  max-width: 320px;
  position: relative;
}

.ro-header-search-input {
  width: 100%;
  background: #161d2d;
  border: 1px solid #2d3748;
  border-radius: 20px;
  padding: 0.5rem 1rem 0.5rem 2.2rem;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
  transition: all 0.2s ease;
}

.ro-header-search-input:focus {
  border-color: #fbbf24;
  background: #111827;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.25);
}

.ro-nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.ro-nav-link {
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  padding: 0.5rem 0;
}

.ro-nav-link:hover, .ro-nav-link.active {
  color: #fbbf24;
}

.ro-nav-badge {
  font-size: 0.65rem;
  font-weight: 800;
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #000;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 2px;
}

.ro-dropdown {
  position: relative;
}

.ro-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #0f1420;
  border: 1px solid #2d3748;
  border-radius: 12px;
  padding: 0.6rem;
  min-width: 200px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
  z-index: 100;
}

.ro-dropdown:hover .ro-dropdown-menu {
  display: block;
}

.ro-dropdown-item {
  padding: 0.55rem 0.85rem;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ro-dropdown-item:hover {
  background: #1f293d;
  color: #fbbf24;
}

.ro-btn-member {
  background: #f1f5f9;
  color: #0f172a;
  border: none;
  padding: 0.45rem 1rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.ro-btn-member:hover {
  background: #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Hero Showcase */
.ro-hero-section {
  position: relative;
  min-height: 480px;
  background-size: cover;
  background-position: center 25%;
  border-radius: 20px;
  margin: 1.5rem auto 2.5rem;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ro-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #080d19 0%, rgba(8, 13, 25, 0.82) 45%, rgba(8, 13, 25, 0.25) 100%),
              linear-gradient(to right, #080d19 0%, rgba(8, 13, 25, 0.88) 45%, transparent 100%);
}

.ro-hero-inner {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}

.ro-hero-content {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ro-hero-badges {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.ro-hero-title {
  font-size: 2.3rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.ro-hero-desc {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ro-hero-btns {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.btn-ro-play {
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #fff;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 25px;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(225, 29, 72, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-ro-play:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 25px rgba(225, 29, 72, 0.6);
}

.btn-ro-unlock {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  border: none;
  padding: 0.75rem 1.4rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
  transition: transform 0.2s;
}

.btn-ro-unlock:hover {
  transform: scale(1.04);
}

.btn-ro-detail {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1.25rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-ro-detail:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Hero Thumbnail Switcher */
.ro-hero-switcher {
  display: flex;
  gap: 0.75rem;
}

.ro-switcher-thumb {
  width: 80px;
  height: 110px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  position: relative;
  background: #11141c;
}

.ro-switcher-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ro-switcher-thumb.active, .ro-switcher-thumb:hover {
  border-color: #fbbf24;
  transform: translateY(-4px);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

/* Topic Grid (Bạn đang quan tâm gì?) */
.ro-topics-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-bottom: 3.25rem;
}

.ro-topic-card {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.ro-topic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  filter: brightness(1.1);
}

.ro-topic-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.ro-topic-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Multi-Row Section (Signature RoPhim Layout) */
.ro-section-row {
  display: flex;
  gap: 1.75rem;
  align-items: stretch;
  margin-bottom: 2.75rem;
}

.ro-section-left {
  width: 175px;
  min-width: 175px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ro-section-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
}

.ro-section-more {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: #94a3b8;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color 0.2s;
}

.ro-section-more:hover {
  color: #38bdf8;
}

.ro-section-slider {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.ro-slider-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0.4rem 0.2rem 0.8rem;
  scrollbar-width: none;
}

.ro-slider-track::-webkit-scrollbar {
  display: none;
}

.ro-slider-arrow {
  position: absolute;
  top: calc(50% - 22px);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  z-index: 10;
  opacity: 0;
  transition: all 0.2s ease;
  border: none;
}

.ro-slider-arrow.left {
  left: 6px;
}

.ro-slider-arrow.right {
  right: 6px;
}

.ro-section-slider:hover .ro-slider-arrow {
  opacity: 1;
}

.ro-slider-arrow:hover {
  background: #fff;
  transform: scale(1.1);
}

/* Landscape 16:9 Movie Card */
/* Portrait 3:4 Movie Card (Chuẩn Tỉ Lệ Phim Ngắn NetShort, Không Gạch Chân) */
.ro-movie-card {
  flex: 0 0 170px;
  width: 170px;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit !important;
}

.ro-movie-card:hover,
.ro-movie-card:focus,
.ro-movie-card:visited,
.ro-movie-card:active {
  text-decoration: none !important;
  color: inherit !important;
}

.ro-movie-card:hover {
  transform: translateY(-4px);
}

.ro-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: #11141c;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.ro-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.ro-movie-card:hover .ro-poster-img {
  transform: scale(1.06);
}

.ro-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.ro-play-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Card Badges - Tinh gọn, không che mặt diễn viên và artwork phim */
.ro-card-badge-top-left {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  pointer-events: none;
}

.ro-card-badge-top-right {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  pointer-events: none;
}

.ro-card-badge-bottom-right {
  position: absolute;
  bottom: 6px;
  right: 6px;
  z-index: 2;
  pointer-events: none;
}

.ro-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap !important;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.ro-badge-tag.dub {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
}

.ro-badge-tag.sub {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.ro-badge-tag.fhd {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
  font-weight: 800;
}

.ro-badge-tag.ep {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ro-card-badges {
  position: absolute;
  bottom: 6px;
  right: 6px;
  display: flex;
  gap: 4px;
  z-index: 2;
  pointer-events: none;
}

.ro-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap !important;
}

.ro-badge-sub {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ro-badge-dub {
  background: #059669;
  color: #fff;
}

.ro-badge-fhd {
  background: rgba(245, 158, 11, 0.9);
  color: #000;
  font-weight: 800;
}

.ro-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin-top: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none !important;
}

.ro-card-sub {
  font-size: 0.74rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
  text-decoration: none !important;
}


/* Floating Scroll to Top (Hidden at top of page) */
.ro-btn-scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #ffffff;
  color: #0f172a;
  border: none;
  padding: 0.65rem 1.2rem;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.82rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.28s ease, transform 0.28s ease, background 0.2s;
}

.ro-btn-scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.ro-btn-scroll-top:hover {
  background: #fbbf24;
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(251, 191, 36, 0.4);
}

/* RoShort Footer */
.ro-footer {
  background: #060910;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3rem 2rem 2.5rem;
  margin-top: 4rem;
}

.ro-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ro-footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  list-style: none;
}

.ro-footer-link {
  color: #94a3b8;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}

.ro-footer-link:hover {
  color: #fbbf24;
}

@media (max-width: 1100px) {
  .ro-topics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ro-section-row {
    flex-direction: column;
    gap: 1rem;
  }
  .ro-section-left {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .ro-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .ro-topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ro-nav-menu {
    display: none;
  }
  .ro-hero-title {
    font-size: 1.6rem;
  }
}

/* =============================================================================
   08. PHIM ĐANG XEM (WATCH HISTORY ROW)
   ============================================================================= */
.ro-history-row {
  margin-bottom: 2.5rem;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.45);
  border-radius: 18px;
  border: 1px solid rgba(56, 189, 248, 0.15);
}

.ro-history-card {
  position: relative;
  flex: 0 0 280px;
  width: 280px;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ro-history-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  border-color: rgba(56, 189, 248, 0.5);
}

.ro-history-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.ro-history-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ro-history-card:hover .ro-history-poster img {
  transform: scale(1.04);
}

.ro-history-progress-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: rgba(0, 0, 0, 0.6);
  z-index: 5;
}

.ro-history-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  transition: width 0.3s ease;
}

.ro-history-del-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  z-index: 10;
  opacity: 0.85;
  transition: all 0.2s;
}

.ro-history-del-btn:hover {
  background: #ef4444;
  color: #fff;
  transform: scale(1.1);
  opacity: 1;
}

.ro-history-info {
  padding: 0.8rem 0.9rem;
}

.ro-history-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.3rem;
}

.ro-history-sub {
  font-size: 0.75rem;
  color: #38bdf8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* =============================================================================
   09. DEDICATED RO-PHIM CINEMA WATCH PAGE (XEM PHIM)
   ============================================================================= */
.ro-watch-view {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  animation: roFadeIn 0.35s ease;
}

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

.ro-watch-breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  color: #94a3b8;
}

.ro-watch-breadcrumbs a {
  color: #fbbf24;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}

.ro-watch-breadcrumbs a:hover {
  text-decoration: underline;
}

.btn-back-home {
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-back-home:hover {
  background: #fbbf24;
  color: #000;
}

/* Cinema Theater Wrapper */
.ro-theater-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.ro-theater-player-box {
  position: relative;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(251, 191, 36, 0.1);
  transition: max-width 0.3s ease;
}

.ro-theater-player-box.theater-expanded {
  max-width: 100% !important;
  aspect-ratio: 21 / 9;
}

.ro-theater-player-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.ro-player-badge-top {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(245, 158, 11, 0.6);
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.ro-player-spinner {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  z-index: 15;
}

/* RoPhim Toolbar Below Player */
.ro-player-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  background: #0c111d;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ro-toolbar-btn {
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.ro-toolbar-btn:hover {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border-color: #fbbf24;
}

.ro-toolbar-btn.active-toggle {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

/* Movie Info Card */
.ro-watch-info-card {
  display: flex;
  gap: 1.8rem;
  padding: 1.6rem;
  background: #0c111d;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  align-items: flex-start;
}

.ro-watch-poster-col {
  flex: 0 0 160px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ro-watch-poster-col img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}

.ro-watch-details-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ro-watch-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ro-watch-title-row h1 {
  font-size: 1.65rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

.ro-rating-badge {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ro-watch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ro-watch-desc {
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0;
}

/* Episode Panel */
.ro-watch-episodes-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.6rem;
  background: #0c111d;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ro-episodes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 1rem;
}

.ro-episodes-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ro-episodes-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-auto-unlock-all {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  border: none;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  transition: all 0.2s;
}

.btn-auto-unlock-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.unlock-progress-bar {
  position: relative;
  width: 100%;
  height: 24px;
  background: #1e293b;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.unlock-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(90deg, #10b981, #06b6d4);
  width: 0%;
  transition: width 0.3s ease;
}

.unlock-progress-bar span {
  position: relative;
  z-index: 2;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.ro-episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 0.6rem;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 0.4rem;
}

.ro-episodes-grid::-webkit-scrollbar {
  width: 6px;
}
.ro-episodes-grid::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}

.ro-episode-btn {
  background: #182234;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.65rem 0.4rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.ro-episode-btn:hover {
  background: #233148;
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.4);
  transform: translateY(-2px);
}

.ro-episode-btn.playing {
  background: linear-gradient(135deg, #d97706, #fbbf24) !important;
  color: #0b0f19 !important;
  font-weight: 900 !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.6) !important;
  transform: scale(1.03);
}

.ro-episode-btn.locked {
  color: #64748b;
  border-style: dashed;
}

/* =============================================================================
   10. CATEGORY GRID & SEARCH SECTION
   ============================================================================= */
.category-movies-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

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

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

.category-movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}

/* =============================================================================
   11. MOBILE BOTTOM APP BAR & BOTTOM SHEET DRAWER
   ============================================================================= */
.mobile-bottom-nav {
  display: none;
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  animation: roFadeIn 0.2s ease;
}

.mobile-drawer-sheet {
  width: 100%;
  background: #0f172a;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.25rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.9);
  animation: roSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 80vh;
  overflow-y: auto;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer-close {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-drawer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.mobile-genre-btn {
  background: #182234;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #f1f5f9;
  padding: 0.8rem 0.65rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mobile-genre-btn:active {
  background: rgba(251, 191, 36, 0.2);
  border-color: #fbbf24;
  color: #fbbf24;
}

@keyframes roFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes roSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* =============================================================================
   12. TOÀN DIỆN MOBILE RESPONSIVE UI (@media max-width: 768px)
   Chuẩn trải nghiệm ứng dụng di động native app mượt mà, tiện lợi
   ============================================================================= */
@media (max-width: 768px) {
  /* Main Container */
  .cinema-container {
    padding: 0 0.85rem !important;
    padding-bottom: 85px !important;
    gap: 1.25rem !important;
  }

  /* Header Thu Gọn Siêu Gọn */
  .app-header {
    height: 56px !important;
    padding: 0 0.85rem !important;
    gap: 0.45rem !important;
  }

  .ro-brand {
    gap: 0.45rem !important;
  }

  .ro-brand-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 1.05rem !important;
    border-radius: 8px !important;
  }

  .ro-brand-title {
    font-size: 1.1rem !important;
  }

  .ro-brand-sub {
    display: none !important;
  }

  .ro-header-search {
    flex: 1 !important;
    max-width: 170px !important;
  }

  .ro-header-search-input {
    height: 34px !important;
    font-size: 0.78rem !important;
    padding-left: 1.85rem !important;
    padding-right: 0.5rem !important;
  }

  .ro-header-search span {
    left: 0.6rem !important;
    font-size: 0.78rem !important;
  }

  .ro-nav-menu {
    display: none !important;
  }

  /* Ẩn bớt text VIP badge trên màn hình rất nhỏ */
  .app-header div[style*="1080P VIP BYPASS"] {
    font-size: 0.68rem !important;
    padding: 0.25rem 0.55rem !important;
  }

  /* Sticky Category Bar - Vuốt Ngang Cảm Ứng Mượt */
  .category-nav-bar {
    padding: 0.35rem 0.45rem !important;
  }

  .category-nav-arrow {
    display: none !important;
  }

  .category-scroll-container {
    gap: 0.4rem !important;
    padding: 0.1rem 0.2rem !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .category-pill-btn {
    padding: 0.35rem 0.7rem !important;
    font-size: 0.74rem !important;
    border-radius: 16px !important;
    white-space: nowrap !important;
  }

  .category-filter-box {
    display: none !important;
  }

  /* Hero Banner Spotlight Mobile */
  .ro-hero-section {
    min-height: 280px !important;
    max-height: 370px !important;
    border-radius: 14px !important;
    margin-bottom: 1.25rem !important;
  }

  .ro-hero-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 1.25rem 1rem !important;
  }

  .ro-hero-content {
    max-width: 100% !important;
  }

  .ro-hero-badges {
    gap: 0.35rem !important;
    margin-bottom: 0.4rem !important;
  }

  .ro-hero-badges .ro-badge {
    font-size: 0.65rem !important;
    padding: 0.18rem 0.45rem !important;
  }

  .ro-hero-title {
    font-size: 1.35rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.35rem !important;
  }

  .ro-hero-desc {
    font-size: 0.78rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.75rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .ro-hero-btns {
    gap: 0.5rem !important;
    width: 100% !important;
  }

  .btn-ro-play, .btn-ro-unlock {
    padding: 0.55rem 0.95rem !important;
    font-size: 0.8rem !important;
    border-radius: 22px !important;
    flex: 1 !important;
    justify-content: center !important;
  }

  .ro-hero-switcher {
    display: none !important;
  }

  /* 03. "Bạn đang quan tâm gì?" dạng 3 cột siêu gọn */
  .ro-topics-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.45rem !important;
  }

  .ro-topic-card {
    padding: 0.6rem 0.45rem !important;
    min-height: 65px !important;
    border-radius: 10px !important;
  }

  .ro-topic-title {
    font-size: 0.82rem !important;
    font-weight: 800 !important;
  }

  .ro-topic-sub {
    font-size: 0.65rem !important;
    opacity: 0.85 !important;
  }

  /* Movie Multi-Row Sections Mobile */
  .ro-section-row {
    flex-direction: column !important;
    gap: 0.45rem !important;
    margin-bottom: 1.5rem !important;
  }

  .ro-section-left {
    width: 100% !important;
    min-width: 0 !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    padding: 0 0.2rem !important;
  }

  .ro-section-title {
    font-size: 1.12rem !important;
    font-weight: 800 !important;
  }

  .ro-section-more {
    font-size: 0.78rem !important;
    margin-top: 0 !important;
  }

  .ro-slider-arrow {
    display: none !important;
  }

  .ro-slider-track {
    gap: 0.65rem !important;
    padding: 0.2rem 0.1rem 0.5rem !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
  }

  .ro-movie-card {
    flex: 0 0 138px !important;
    width: 138px !important;
    scroll-snap-align: start !important;
  }

  .ro-card-title {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
    margin-top: 0.35rem !important;
  }

  .ro-card-sub {
    font-size: 0.68rem !important;
  }

  /* History Row Mobile */
  .ro-history-row {
    padding: 0.75rem !important;
    margin-bottom: 1.5rem !important;
    border-radius: 14px !important;
  }

  .ro-history-card {
    flex: 0 0 200px !important;
    width: 200px !important;
  }

  /* Category Grid View 2 Cột Chuẩn Di Động */
  .category-movies-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }

  .category-movies-grid .ro-movie-card {
    flex: unset !important;
    width: 100% !important;
  }

  /* Watch Cinema Player on Mobile (Edge-to-Edge) */
  .ro-watch-view {
    gap: 1rem !important;
  }

  .ro-watch-breadcrumbs {
    font-size: 0.75rem !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.4rem !important;
  }

  .ro-theater-player-box {
    aspect-ratio: 9 / 16 !important;
    max-height: 65vh !important;
    border-radius: 12px !important;
  }

  .ro-watch-info-card {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 1rem !important;
    gap: 1rem !important;
  }

  .ro-watch-poster-col {
    flex: 0 0 120px !important;
    width: 120px !important;
  }

  .ro-watch-title-row {
    justify-content: center !important;
  }

  .ro-watch-title-row h1 {
    font-size: 1.25rem !important;
  }

  .ro-watch-tags {
    justify-content: center !important;
  }

  .ro-player-toolbar {
    justify-content: center !important;
    padding: 0.65rem 0.85rem !important;
  }

  .ro-toolbar-btn {
    padding: 0.4rem 0.65rem !important;
    font-size: 0.75rem !important;
  }

  .ro-watch-episodes-panel {
    padding: 1rem !important;
  }

  .ro-episodes-grid {
    grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)) !important;
    gap: 0.4rem !important;
    max-height: 250px !important;
  }

  .ro-episode-btn {
    padding: 0.55rem 0.2rem !important;
    font-size: 0.75rem !important;
  }

  /* Nút cuộn đầu trang đặt trên Bottom Bar */
  .btn-scroll-top {
    bottom: 74px !important;
    right: 14px !important;
    width: 38px !important;
    height: 38px !important;
    font-size: 1.1rem !important;
  }

  /* Mobile Sticky Bottom App Bar (Hiện chỉ trên Mobile) */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 58px !important;
    background: rgba(11, 15, 25, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    z-index: 999 !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6) !important;
  }

  .mobile-nav-item {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    padding: 0.3rem 0 !important;
    cursor: pointer !important;
    position: relative !important;
    transition: all 0.2s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .mobile-nav-item.active {
    color: #fbbf24 !important;
  }

  .mobile-nav-item.active .mobile-nav-icon {
    transform: scale(1.15) !important;
  }

  .mobile-nav-icon {
    font-size: 1.25rem !important;
    line-height: 1.1 !important;
    transition: transform 0.2s ease !important;
  }

  .mobile-nav-label {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    margin-top: 2px !important;
  }

  .mobile-nav-badge {
    position: absolute !important;
    top: 2px !important;
    right: calc(50% - 18px) !important;
    background: #ef4444 !important;
    color: #fff !important;
    font-size: 0.58rem !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    padding: 1px 5px !important;
    min-width: 14px !important;
    text-align: center !important;
  }
}

