/* ==========================================================================
   RSR-Projects Official Repository Website Stylesheet
   Developer Tool Aesthetic | Dark Interface with Cyan & Blue Accents
   Fully Responsive for Mobile, Tablet, and Desktop Viewports
   ========================================================================== */

:root {
  --bg-base: #070b12;
  --bg-surface: #0c1220;
  --bg-card: #111a2e;
  --bg-card-hover: #16223b;
  --bg-code: #0a0f1d;
  
  --border-subtle: rgba(56, 189, 248, 0.12);
  --border-medium: rgba(56, 189, 248, 0.22);
  --border-focus: #00f0ff;
  
  --accent-cyan: #00f0ff;
  --accent-cyan-hover: #38bdf8;
  --accent-cyan-dim: rgba(0, 240, 255, 0.1);
  --accent-cyan-glow: rgba(0, 240, 255, 0.25);
  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --accent-blue-dim: rgba(37, 99, 235, 0.15);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #38bdf8;
  
  --badge-green-bg: rgba(16, 185, 129, 0.12);
  --badge-green-border: rgba(16, 185, 129, 0.3);
  --badge-green-text: #34d399;
  
  --badge-amber-bg: rgba(245, 158, 11, 0.12);
  --badge-amber-border: rgba(245, 158, 11, 0.3);
  --badge-amber-text: #fbbf24;

  --badge-blue-bg: rgba(56, 189, 248, 0.1);
  --badge-blue-border: rgba(56, 189, 248, 0.25);
  --badge-blue-text: #38bdf8;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  
  --container-max: 1200px;
  --header-height: 72px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px -5px rgba(0, 240, 255, 0.18);
}

/* ==========================================================================
   Base & Resets
   ========================================================================== */

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100vw;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.07) 0%, transparent 60%),
    linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--accent-cyan);
  color: #000;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top var(--transition-fast);
  text-decoration: none;
}
.skip-link:focus {
  top: 15px;
  outline: 3px solid #fff;
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Accessibility focus indicator */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
}

a {
  color: var(--accent-cyan-hover);
  text-decoration: none;
  transition: color var(--transition-fast);
  overflow-wrap: break-word;
}
a:hover {
  color: var(--accent-cyan);
}

/* Ensure images and media cannot exceed their containers */
img, svg, picture, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

p, li, h1, h2, h3, h4, h5, h6, span {
  overflow-wrap: break-word;
}

code, pre {
  font-family: var(--font-mono);
  overflow-wrap: break-word;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(7, 11, 18, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  flex-shrink: 0;
}
.brand-logo:hover {
  color: var(--text-primary);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(37, 99, 235, 0.25));
  border: 1px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
  flex-shrink: 0;
}

.brand-name {
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--badge-blue-bg);
  border: 1px solid var(--badge-blue-border);
  color: var(--badge-blue-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  padding: 6px 0;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--accent-cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Mobile nav toggle button */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-toggle:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* ==========================================================================
   Buttons & Action Controls
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  line-height: 1.3;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #00f0ff 0%, #0284c7 100%);
  color: #04101e;
  font-weight: 700;
  box-shadow: 0 2px 14px rgba(0, 240, 255, 0.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0369a1 100%);
  color: #020b15;
  box-shadow: 0 4px 22px rgba(0, 240, 255, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(17, 26, 46, 0.7);
  border-color: var(--border-medium);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.02rem;
}

.btn-icon-only {
  padding: 8px;
  width: 38px;
  height: 38px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden; /* CRITICAL: Prevent glow from blowing out mobile viewport */
  width: 100%;
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  max-width: 90vw;
  height: 280px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, rgba(37, 99, 235, 0.05) 50%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  filter: blur(40px);
}

.hero-badge-wrap {
  display: inline-flex;
  margin-bottom: 24px;
  max-width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(12, 18, 32, 0.8);
  border: 1px solid var(--border-medium);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.08);
  max-width: 100%;
  text-align: left;
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse-dot 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
  word-break: break-word;
}

.hero-title-gradient {
  background: linear-gradient(135deg, #ffffff 30%, #38bdf8 70%, #00f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

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

.eco-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(17, 26, 46, 0.5);
  border: 1px solid var(--border-subtle);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.eco-pill svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

/* ==========================================================================
   Section Headers & Common Layout
   ========================================================================== */

section {
  padding: 70px 0;
  scroll-margin-top: calc(var(--header-height) + 20px);
  width: 100%;
}

.section-header {
  margin-bottom: 44px;
}
.section-header.text-center {
  text-align: center;
}

.section-pretitle {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.2;
  word-break: break-word;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 680px;
  line-height: 1.65;
}
.section-header.text-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Featured Project — CastDrive
   ========================================================================== */

.castdrive-showcase {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-card);
  margin-bottom: 50px;
  width: 100%;
}

.showcase-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 36px;
}

.showcase-title-area {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.app-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 2px solid var(--border-medium);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
  flex-shrink: 0;
  overflow: hidden;
}

.app-headings h3 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  word-break: break-word;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.badge-stable {
  background: var(--badge-green-bg);
  border: 1px solid var(--badge-green-border);
  color: var(--badge-green-text);
}

.badge-license {
  background: var(--badge-blue-bg);
  border: 1px solid var(--badge-blue-border);
  color: var(--badge-blue-text);
}

.badge-experimental {
  background: var(--badge-amber-bg);
  border: 1px solid var(--badge-amber-border);
  color: var(--badge-amber-text);
}

.showcase-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Architecture concept banner */
.concept-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 24px 30px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
}

.concept-text {
  flex: 1;
  min-width: 240px;
}
.concept-text h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 6px;
}
.concept-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.arch-flow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--bg-code);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  max-width: 100%;
  flex-wrap: wrap;
}

.arch-node {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-weight: 600;
}
.arch-arrow {
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  flex-direction: column;
  font-size: 0.7rem;
}

/* PC Second Display / Dual Platform Banner */
.pc-display-banner {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.07), rgba(0, 85, 255, 0.07));
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
  width: 100%;
}
.pc-display-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-blue));
}
.pc-display-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.pc-display-header h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-cyan);
}
.pc-display-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}
.pc-feature-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pc-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.22);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-cyan);
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
  margin-bottom: 40px;
  width: 100%;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.feature-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 18px;
  flex-shrink: 0;
}

.feature-card h4 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.feature-tags {
  margin-top: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.feature-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Development story card */
.dev-story-card {
  background: linear-gradient(135deg, rgba(17, 26, 46, 0.95), rgba(8, 12, 20, 0.95));
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-top: 30px;
  position: relative;
  overflow: hidden;
  width: 100%;
}
.dev-story-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-cyan);
}

.dev-story-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.dev-story-header h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-cyan);
}
.dev-story-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ==========================================================================
   Screenshots Gallery
   ========================================================================== */

.screenshots-section {
  padding-top: 10px;
  width: 100%;
}

.gallery-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-card);
  width: 100%;
}

.gallery-main-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 30px;
}

.gallery-preview-frame {
  background: #000;
  border-radius: 24px;
  border: 3px solid #1e293b;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 240, 255, 0.12);
  overflow: hidden;
  max-width: min(320px, 100%);
  margin: 0 auto;
  aspect-ratio: 9 / 19.5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.gallery-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-info-pane {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.gallery-counter {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gallery-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  word-break: break-word;
}

.gallery-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
}

.gallery-nav-buttons {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.thumb-strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  overflow-x: auto;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.thumb-btn {
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3px;
  cursor: pointer;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  transition: all var(--transition-fast);
  min-width: 0;
}
.thumb-btn:hover {
  border-color: var(--accent-cyan-hover);
  transform: translateY(-2px);
}
.thumb-btn.active {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan-glow);
}
.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}

/* Gallery category tabs (Android & Windows PC) */
.gallery-tabs-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.gallery-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  background: rgba(255, 255, 255, 0.05);
}

.gallery-tab-btn.active {
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px var(--accent-cyan-glow);
}

.gallery-tab-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 0.72rem;
}

.gallery-tab-btn.active .gallery-tab-badge {
  background: rgba(0, 240, 255, 0.2);
  color: var(--accent-cyan);
}

/* PC Screenshot Frame & Thumbnail adjustments */
.gallery-preview-frame.frame-pc {
  aspect-ratio: 16 / 10;
  max-width: 100%;
  border-radius: 14px;
}
.gallery-preview-frame.frame-pc img {
  object-fit: contain;
  background: #060911;
}

.thumb-btn.thumb-pc {
  aspect-ratio: 16 / 10;
}

/* ==========================================================================
   Install via F-Droid Section
   ========================================================================== */

.fdroid-section {
  position: relative;
  width: 100%;
}

.fdroid-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
  width: 100%;
}

.fdroid-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  min-width: 0;
  width: 100%;
}

.fdroid-disclaimer {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  margin-bottom: 28px;
  min-width: 0;
}
.fdroid-disclaimer svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 2px;
}
.fdroid-disclaimer p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  min-width: 0;
  overflow-wrap: break-word;
}
.fdroid-disclaimer strong {
  color: var(--text-primary);
}

.repo-copy-box {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 28px;
  min-width: 0;
  width: 100%;
}

.repo-copy-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  font-weight: 600;
}

.repo-copy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: 100%;
}

.repo-url-display {
  flex: 1;
  min-width: 0; /* CRITICAL for flex item scrolling without stretching container */
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #fff;
  background: var(--bg-code);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  overflow-x: auto;
  white-space: nowrap;
  user-select: all;
  -webkit-overflow-scrolling: touch;
}

/* Steps Accordion / List */
.install-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 30px;
  min-width: 0;
}

.install-step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-width: 0;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content {
  min-width: 0;
  flex: 1;
}

.step-content h5 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.step-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  overflow-wrap: break-word;
}

/* Break long URLs inside code tags so they wrap properly on mobile */
.step-content code {
  word-break: break-all;
  white-space: normal;
}

/* Direct APK Fallback card */
.direct-download-card {
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(17, 26, 46, 0.4);
  border: 1px dashed var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  min-width: 0;
}
.direct-download-info {
  min-width: 0;
}
.direct-download-info h5 {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary);
}
.direct-download-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* QR Code Card */
.qr-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-card);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.qr-frame {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.18);
  margin-bottom: 24px;
  display: inline-flex;
  max-width: 100%;
}
.qr-frame svg, .qr-frame img {
  width: 200px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
}

.qr-caption {
  width: 100%;
  min-width: 0;
}

.qr-caption h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.qr-caption p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.supported-clients {
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
  width: 100%;
}
.supported-clients span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.client-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.client-pill {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

/* Direct Platform Downloads */
.platform-download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  margin-top: 24px;
}
.platform-card {
  background: rgba(17, 26, 46, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: all var(--transition-fast);
  min-width: 0;
}
.platform-card:hover {
  border-color: var(--accent-cyan);
  background: rgba(17, 26, 46, 0.65);
}
.platform-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.platform-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}
.platform-meta {
  min-width: 0;
}
.platform-meta h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.platform-meta p {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.platform-details {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.platform-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Changelog Section */
.changelog-section {
  padding-top: 20px;
  width: 100%;
}
.changelog-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.changelog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
  width: 100%;
}
.changelog-card.latest {
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.08);
}
.changelog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}
.changelog-version-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.changelog-version {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}
.changelog-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.changelog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
}
.changelog-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.changelog-item svg {
  color: var(--accent-cyan);
  margin-top: 3px;
  flex-shrink: 0;
}

/* ==========================================================================
   More Projects Section
   ========================================================================== */

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 28px;
  width: 100%;
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.project-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.project-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.project-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.project-card h4 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
  word-break: break-word;
}

.project-card p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.project-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 10px;
}

.project-status {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  margin-top: auto;
  background: #04070d;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
  width: 100%;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 360px;
}

.footer-col h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-disclaimer-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 30px;
  width: 100%;
}
.footer-disclaimer-box p {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}
.footer-disclaimer-box a {
  color: var(--accent-cyan-hover);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 16px;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}
.back-to-top:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   Toast Notification & Dialogs
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: calc(100vw - 48px);
}

.toast {
  background: #0f172a;
  border: 1px solid var(--accent-cyan);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.7), 0 0 15px rgba(0, 240, 255, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: auto;
  max-width: 100%;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

/* ==========================================================================
   Creator & Music Channel (RSR Spectrum)
   ========================================================================== */

.creator-section {
  position: relative;
  width: 100%;
}

.creator-profile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  margin-bottom: 36px;
  display: flex;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.creator-profile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue), #a855f7);
}

.creator-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.creator-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 25px var(--accent-cyan-glow);
  object-fit: cover;
  background: #000;
  display: block;
}

.creator-info {
  flex: 1;
  min-width: 0;
}

.creator-info h3 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.creator-handle {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.creator-bio {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 18px;
}

.creator-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Creator Interest Cards */
.creator-interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 18px;
  margin-bottom: 44px;
  width: 100%;
}

.interest-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.interest-card:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.interest-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.interest-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.interest-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* YouTube Music Channel Showcase */
.channel-banner-card {
  background: linear-gradient(135deg, rgba(255, 0, 51, 0.08), rgba(0, 240, 255, 0.08));
  border: 1px solid rgba(255, 0, 51, 0.3);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
}

.channel-brand-area {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.channel-icon-svg {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #ff0000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

.channel-brand-text h4 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.channel-brand-text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.btn-youtube {
  background: #ff0000;
  color: #fff !important;
  font-weight: 700;
  border: 1px solid #ff3333;
  box-shadow: 0 0 16px rgba(255, 0, 0, 0.3);
}

.btn-youtube:hover {
  background: #cc0000;
  box-shadow: 0 0 24px rgba(255, 0, 0, 0.5);
  transform: translateY(-1px);
}

/* Video Showcase Area */
.video-spotlight {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  margin-bottom: 40px;
  align-items: start;
  width: 100%;
}

.video-player-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.video-player-frame {
  background: #000;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border: 1px solid var(--border-medium);
  border-bottom: none;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.video-player-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-player-meta {
  padding: 16px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.video-player-meta h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.video-player-meta p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Playlist / Video Cards List */
.yt-video-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
  width: 100%;
}

.yt-video-card {
  display: flex;
  gap: 14px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  align-items: center;
  width: 100%;
  color: inherit;
}

.yt-video-card:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  transform: translateX(3px);
}

.yt-video-card.active {
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 14px var(--accent-cyan-glow);
}

.yt-video-thumb-wrap {
  width: 100px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: #000;
}

.yt-video-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-duration-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.85);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
}

.yt-video-info {
  flex: 1;
  min-width: 0;
}

.yt-video-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.yt-video-action-hint {
  font-size: 0.76rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Audio Player Section */
.music-player-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 40px;
  width: 100%;
}

.music-player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.music-player-track-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.player-artwork {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  border: 2px solid var(--border-medium);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.player-track-details h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.player-track-details p {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.player-controls-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.player-btn-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: #000;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  box-shadow: 0 0 16px var(--accent-cyan-glow);
}

.player-btn-play:hover {
  background: var(--accent-cyan-hover);
  transform: scale(1.05);
}

.player-progress-area {
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}

.player-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  border-radius: 3px;
  position: relative;
}

.player-time {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  min-width: 38px;
}

.player-volume-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.player-volume-slider {
  width: 80px;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

.track-pills-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.track-pill-btn {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.track-pill-btn:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.track-pill-btn.active {
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  color: var(--accent-cyan);
}

/* Behind the Scenes & DAW Showcase */
.bts-section-wrap {
  margin-top: 50px;
  width: 100%;
}

.bts-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 22px;
  margin-bottom: 36px;
  width: 100%;
}

.bts-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.bts-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.bts-card-img-wrap {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  position: relative;
}

.bts-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.bts-card:hover .bts-card-img-wrap img {
  transform: scale(1.03);
}

.bts-zoom-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 4px;
  color: #fff;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.bts-card:hover .bts-zoom-badge {
  opacity: 1;
}

.bts-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bts-card-body h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.bts-card-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}

.bts-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.bts-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.18);
  padding: 2px 8px;
  border-radius: 4px;
}

/* DAW Tool Cards */
.daw-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  margin-top: 24px;
  width: 100%;
}

.daw-card {
  background: rgba(17, 26, 46, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-width: 0;
}

.daw-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.daw-info {
  min-width: 0;
}

.daw-info h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.daw-info p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.daw-disclaimer {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 6px;
}

/* Lightbox Modal for Behind the Scenes */
.bts-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.bts-modal.active {
  display: flex;
}

.bts-modal-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bts-modal-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-medium);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.bts-modal-caption {
  margin-top: 14px;
  color: #fff;
  font-size: 0.95rem;
  text-align: center;
  max-width: 700px;
}

.bts-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 992px) {
  .fdroid-grid {
    grid-template-columns: 1fr;
  }
  .gallery-main-view {
    grid-template-columns: 1fr;
  }
  .video-spotlight {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .creator-profile-card {
    flex-direction: column;
    text-align: center;
    padding: 26px 18px;
  }
  .creator-badges {
    justify-content: center;
  }
  .channel-banner-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .channel-brand-area {
    flex-direction: column;
    justify-content: center;
  }
  .channel-banner-card .btn {
    width: 100%;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(7, 11, 18, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-medium);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    align-items: flex-start;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .header-actions .btn {
    display: none;
  }
  
  .castdrive-showcase {
    padding: 24px 18px;
  }
  .showcase-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .showcase-links {
    width: 100%;
  }
  .showcase-links .btn {
    flex: 1;
    min-width: 110px;
  }

  .concept-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 16px;
  }
  .arch-flow {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: center;
  }
  .arch-arrow {
    transform: rotate(90deg);
    margin: 4px 0;
  }

  .fdroid-card {
    padding: 24px 18px;
  }
  .qr-card {
    padding: 24px 18px;
  }
  .gallery-container {
    padding: 22px 16px;
  }
  .feature-card {
    padding: 22px 18px;
  }
  .project-card {
    padding: 24px 18px;
  }
  .dev-story-card {
    padding: 22px 18px;
  }

  .direct-download-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .direct-download-card .btn {
    width: 100%;
  }

  .thumb-strip {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 580px) {
  .repo-copy-row {
    flex-direction: column;
    align-items: stretch;
  }
  .repo-copy-row .btn {
    width: 100%;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .hero-cta .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .hero {
    padding: 50px 0 40px;
  }
  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }
  .hero-badge {
    font-size: 0.74rem;
    padding: 5px 12px;
  }
  .thumb-strip {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .qr-frame svg, .qr-frame img {
    width: 170px;
    height: 170px;
  }
  .brand-logo {
    gap: 8px;
    font-size: 1.05rem;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
  }
  .brand-tag {
    display: none; /* Hide non-essential pill on very narrow header */
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Creator Page Specific Enhancements
   ========================================================================== */

.nav-creator-pill {
  color: var(--accent-cyan) !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  transition: all var(--transition-fast);
}

.nav-creator-pill:hover {
  background: rgba(0, 240, 255, 0.16);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan-glow);
}

/* Prominent Creator & Music button right beside RSR-Projects brand */
.header-brand-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-creator-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff !important;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.16), rgba(168, 85, 247, 0.24));
  border: 1.5px solid rgba(0, 240, 255, 0.5);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.header-creator-link:hover {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.28), rgba(168, 85, 247, 0.38));
  border-color: var(--accent-cyan);
  box-shadow: 0 0 24px var(--accent-cyan-glow);
  transform: translateY(-1px);
  color: var(--accent-cyan) !important;
}

.header-creator-link svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .header-creator-link {
    padding: 6px 14px;
    font-size: 0.9rem;
    gap: 6px;
  }
}

@media (max-width: 640px) {
  .header-brand-wrap {
    gap: 8px;
  }
  .header-creator-link {
    padding: 5px 12px;
    font-size: 0.84rem;
    gap: 5px;
  }
  .header-creator-link svg {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 380px) {
  .header-creator-link {
    padding: 4px 10px;
    font-size: 0.78rem;
  }
}

.embed-notice-box {
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: #fef08a;
  line-height: 1.5;
}

.embed-notice-box svg {
  color: #eab308;
  flex-shrink: 0;
  margin-top: 2px;
}

.embed-notice-box a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}

