/* ==========================================================================
   Ringtona - Light Mode & Vibrant Gradient Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f1f5f9;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --glass-border: rgba(226, 232, 240, 0.8);

  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-gradient: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
  --primary-glow: rgba(124, 58, 237, 0.25);

  --accent-pink: #ec4899;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-orange: #f97316;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-sub: #94a3b8;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 10px 25px rgba(124, 58, 237, 0.3);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 95px;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
}

.brand-logo img {
  height: 38px;
  width: auto;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.brand-logo:hover img {
  transform: scale(1.05) rotate(-3deg);
}

.brand-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(124, 58, 237, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-upload-btn {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.nav-search-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-search-toggle:hover {
  background: var(--primary-gradient);
  color: #fff;
}

/* Category Mega Menu Dropdown */
.nav-item-dropdown {
  position: relative;
}

.nav-arrow {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.nav-item-dropdown:hover .nav-arrow {
  transform: rotate(180deg);
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  width: 680px;
  padding-top: 14px;
  display: none;
  z-index: 200;
}

.nav-item-dropdown:hover .mega-menu {
  display: block;
}

.mega-menu-inner {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.mega-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.mega-header h4 {
  font-size: 0.95rem;
  color: var(--text-main);
}

.mega-header a {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mega-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mega-item:hover {
  background: #f8fafc;
  transform: translateX(4px);
}

.mega-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}

.mega-info {
  display: flex;
  flex-direction: column;
}

.mega-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.mega-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Quick Search Overlay */
.quick-search-overlay {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.quick-search-overlay.active {
  display: block;
  animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quick-search-form {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 8px 18px;
}

.quick-search-form input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.98rem;
  color: var(--text-main);
}

.search-icon {
  color: var(--text-sub);
  font-size: 1.05rem;
}

.close-search-btn {
  background: transparent;
  color: var(--text-muted);
  font-size: 1.15rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-glass {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-glass:hover {
  background: var(--bg-surface-hover);
}

/* Light Hero Section */
.hero {
  position: relative;
  padding: 30px 0 24px;
}

.hero-banner-card {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  overflow: hidden;
  position: relative;
}

.hero-banner-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(219, 39, 119, 0.12) 0%, rgba(124, 58, 237, 0.08) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  max-width: 540px;
  z-index: 2;
}

.hero-title {
  font-size: 2.5rem;
  letter-spacing: -1px;
  margin-bottom: 10px;
  color: var(--text-main);
}

.hero-title span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero-image-box {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 35px rgba(124, 58, 237, 0.22);
}

/* Light Search Box */
.search-box {
  max-width: 600px;
  margin: 20px auto 0;
}

.search-form {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 5px 6px 5px 18px;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
  transition: var(--transition);
}

.search-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 1rem;
}

.search-input::placeholder {
  color: var(--text-sub);
}

.search-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Section Common */
.section {
  padding: 28px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title {
  font-size: 1.45rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.view-all-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.view-all-link:hover {
  color: var(--accent-pink);
}

/* Category Grid & Colorful Badges */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.category-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 12px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.category-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(124, 58, 237, 0.4);
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.cat-bg-1 {
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.cat-bg-2 {
  background: linear-gradient(135deg, #ff9966, #ff5e62);
}

.cat-bg-3 {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
}

.cat-bg-4 {
  background: linear-gradient(135deg, #8e2de2, #4a00e0);
}

.cat-bg-5 {
  background: linear-gradient(135deg, #11998e, #38ef7d);
}

.cat-bg-6 {
  background: linear-gradient(135deg, #ff4e50, #f9d423);
}

.category-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.category-count {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Light Ringtone List Cards */
.ringtone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.ringtone-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.ringtone-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(124, 58, 237, 0.4);
}

.play-btn-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
}

.play-btn-circle:hover {
  background: var(--primary-hover);
}

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

.ringtone-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.ringtone-title a:hover {
  color: var(--primary);
}

.ringtone-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.badge-new {
  background: rgba(236, 72, 153, 0.12);
  color: var(--accent-pink);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.card-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.card-action-btn:hover {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

/* SINGLE RINGTONE DOWNLOAD PAGE - PERFECT SINGLE HORIZONTAL AUDIO LINE */
.single-ringtone-wrapper {
  padding: 20px 0 36px;
}

.compact-breadcrumb {
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.active-crumb {
  color: var(--text-main);
  font-weight: 600;
}

.single-ringtone-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.single-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.single-logo-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.single-title-box {
  flex-grow: 1;
  min-width: 0;
}

.single-title-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.single-tags-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.single-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: rgba(124, 58, 237, 0.08);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.tag-pink {
  background: rgba(219, 39, 119, 0.08);
  color: var(--accent-pink);
}

/* Perfect Horizontal Audio Waveform Row */
.waveform-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 20px;
}

.player-inline-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.main-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
  flex-shrink: 0;
}

.main-play-btn:hover {
  transform: scale(1.06);
}

.waveform-canvas-container {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 42px;
  margin: 0;
}

.wave-bar {
  flex: 1;
  background: #cbd5e1;
  border-radius: 3px;
  min-width: 2px;
  max-width: 5px;
  transition: height 0.2s ease, background-color 0.2s ease;
}

.wave-bar.active {
  background: var(--primary);
  box-shadow: 0 0 6px var(--primary-glow);
}

.time-display {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 700;
  font-family: monospace;
  flex-shrink: 0;
}

/* High-Conversion Download Button Box */
.download-action-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.04) 0%, rgba(219, 39, 119, 0.04) 100%);
  border-radius: var(--radius-md);
  border: 1px dashed rgba(124, 58, 237, 0.25);
  margin-bottom: 20px;
}

.download-btn-lg {
  flex-grow: 1;
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: var(--shadow-glow);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.download-btn-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}

.copy-link-btn {
  padding: 10px 16px;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Sleek Single-Line Horizontal Compact Stats Bar */
.compact-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  flex-wrap: wrap;
}

.compact-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.compact-stat-item i {
  font-size: 0.95rem;
}

.related-section {
  margin-top: 36px;
}

/* Mobile Hamburger & Horizontal Category Bar */
.mobile-menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--text-main);
  font-size: 1.05rem;
  align-items: center;
  justify-content: center;
}

.mobile-drawer {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 16px 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.mobile-drawer.active {
  display: block;
}

.mobile-scroll-categories {
  margin-bottom: 16px;
}

.mobile-scroll-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

.horizontal-categories-pill-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.horizontal-categories-pill-bar::-webkit-scrollbar {
  display: none;
}

.mobile-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #f1f5f9;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  flex-shrink: 0;
}

.pill-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mobile-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mobile-link-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Persistent Bottom Player Bar */
.global-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  padding: 10px 0;
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.1);
}

.global-player.active {
  transform: translateY(0);
}

.player-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.player-track-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.player-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.player-details h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-details p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.player-play-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}

.player-progress-bar {
  flex-grow: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--primary-gradient);
  border-radius: 3px;
}

.player-download-btn {
  padding: 8px 18px;
  font-size: 0.88rem;
}

/* Footer & Organized 4-Column Layout */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 44px 0 24px;
  margin-top: auto;
}

.footer-4col-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 28px;
}

.footer-col-brand p {
  color: var(--text-muted);
  margin-top: 10px;
  font-size: 0.9rem;
}

.footer-heading {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 14px;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-sub);
  font-size: 0.84rem;
}

/* Mobile Responsive Optimization */
@media (max-width: 992px) {
  .desktop-only {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-upload-btn {
    padding: 6px 14px;
    font-size: 0.85rem;
  }

  .hero-banner-card {
    flex-direction: column;
    text-align: center;
    padding: 24px 16px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .footer-4col-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .player-progress-bar {
    display: none;
  }

  .player-details h4 {
    max-width: 120px;
  }
}

@media (max-width: 600px) {
  .single-ringtone-card {
    padding: 16px;
    border-radius: var(--radius-md);
  }

  .single-header {
    gap: 12px;
  }

  .single-logo-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
  }

  .single-title-text {
    font-size: 1.12rem;
    margin-bottom: 6px;
  }

  .player-inline-row {
    gap: 10px;
  }

  .main-play-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .waveform-canvas-container {
    height: 38px;
  }

  .download-action-box {
    flex-direction: column;
    padding: 14px;
    gap: 10px;
  }

  .download-btn-lg {
    width: 100%;
    font-size: 0.98rem;
    padding: 12px 20px;
  }

  .copy-link-btn {
    width: 100%;
  }

  .compact-stats-row {
    justify-content: space-between;
    padding: 10px 12px;
  }

  .compact-stat-item {
    font-size: 0.78rem;
    gap: 5px;
  }

  .footer {
    padding: 28px 0 16px;
  }

  .footer-4col-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px 16px;
    margin-bottom: 20px;
  }

  .footer-col-brand {
    grid-column: 1 / -1;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 4px;
  }

  .footer-col-brand p {
    font-size: 0.84rem;
    line-height: 1.45;
    margin-bottom: 10px;
  }

  .footer-heading {
    font-size: 0.92rem;
    margin-bottom: 10px;
  }

  .footer-links {
    gap: 8px;
  }

  .footer-links a {
    font-size: 0.83rem;
  }

  .footer-col-explore {
    grid-column: 1 / -1;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-top: 4px;
  }

  .footer-col-explore .footer-heading {
    margin-bottom: 8px;
    font-size: 0.88rem;
  }

  .footer-col-explore .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .footer-col-explore .footer-links a {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
  }

  .footer-bottom {
    padding-top: 14px;
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    font-size: 1.2rem;
  }

  .brand-logo img {
    height: 30px;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-upload-btn {
    padding: 5px 12px;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   Ringora — Performance & UX Enhancements v2.0
   Skeleton loading, toast notifications, autocomplete, scroll animations
   ========================================================================== */

/* ── Skeleton Shimmer ────────────────────────────────────────────────────── */
@keyframes shimmer {
  0% {
    background-position: -600px 0;
  }

  100% {
    background-position: 600px 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 8px;
}

.skeleton-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.skeleton-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton-lines {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-line-title {
  height: 14px;
  width: 70%;
  border-radius: 6px;
}

.skeleton-line-sub {
  height: 11px;
  width: 45%;
  border-radius: 6px;
}

.skeleton-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
}



/* ── Download Toast Notification ─────────────────────────────────────────── */
#downloadToast {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 9998;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  max-width: 340px;
  transform: translateX(120%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

#downloadToast.show {
  transform: translateX(0);
}

.toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.toast-icon.downloading {
  background: rgba(124, 58, 237, 0.12);
  color: var(--primary);
}

.toast-icon.done {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.toast-text strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
  margin-bottom: 2px;
}

.toast-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Live Search Autocomplete Dropdown ────────────────────────────────────── */
.search-autocomplete-wrap {
  position: relative;
}

.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  z-index: 500;
  overflow: hidden;
  display: none;
}

.autocomplete-dropdown.open {
  display: block;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
  text-decoration: none;
  color: inherit;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.highlighted {
  background: rgba(124, 58, 237, 0.05);
}

.autocomplete-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.autocomplete-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.autocomplete-item-cat {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.autocomplete-footer {
  padding: 9px 16px;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  text-align: center;
  border-top: 1px solid var(--border-color);
  cursor: pointer;
}

.autocomplete-footer:hover {
  background: rgba(124, 58, 237, 0.04);
}

/* ── Global Player Volume Slider ─────────────────────────────────────────── */
.player-volume-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.player-volume-wrap i {
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
}

#playerVolumeSlider {
  -webkit-appearance: none;
  width: 80px;
  height: 4px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
  cursor: pointer;
}

#playerVolumeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3);
  cursor: pointer;
  transition: transform 0.15s ease;
}

#playerVolumeSlider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* ── Infinite Scroll Spinner ─────────────────────────────────────────────── */
.infinite-loader {
  display: none;
  text-align: center;
  padding: 32px 20px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.infinite-loader.active {
  display: flex;
}

.infinite-loader .spin {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(124, 58, 237, 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin360 0.8s linear infinite;
}

@keyframes spin360 {
  to {
    transform: rotate(360deg);
  }
}

.infinite-end-msg {
  display: none;
  text-align: center;
  padding: 24px 20px;
  color: var(--text-sub);
  font-size: 0.88rem;
  border-top: 1px dashed var(--border-color);
  margin-top: 16px;
}

.infinite-end-msg.show {
  display: block;
}



/* ── Ringtone Card Hover Enhancement ─────────────────────────────────────── */
.ringtone-card {
  position: relative;
  overflow: hidden;
}

.ringtone-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--primary-gradient);
  transform: scaleY(0);
  transition: transform 0.25s ease;
  transform-origin: bottom;
}

.ringtone-card:hover::after {
  transform: scaleY(1);
}

/* ── Playing State Badge on Cards ────────────────────────────────────────── */
.play-btn-circle.playing {
  animation: pulse-play 1.8s ease-in-out infinite;
}

@keyframes pulse-play {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.35);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(124, 58, 237, 0);
  }
}

/* ── Back-to-top button ──────────────────────────────────────────────────── */
#backToTop {
  position: fixed;
  bottom: 90px;
  left: 24px;
  z-index: 990;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

#backToTop.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#backToTop:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.4);
}

/* ── Modern Premium Pagination ─────────────────────────────────────────── */
.pagination-container {
  margin-top: 48px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
}

.pagination-info {
  font-size: 0.92rem;
  color: var(--text-muted, #64748b);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  padding: 6px 18px;
  border-radius: 30px;
  border: 1px solid var(--border-color, #e2e8f0);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.05));
}

.pagination-count-badge {
  color: var(--primary, #7c3aed);
  font-weight: 700;
  background: rgba(124, 58, 237, 0.08);
  padding: 2px 8px;
  border-radius: 12px;
}

.pagination-container ul,
.pagination-container .pagination-list,
.pagination {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-wrap: wrap !important;
}

.pagination-container ul li,
.pagination-container .pagination-list li,
.pagination .page-item {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-block !important;
}

.pagination-container .page-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 42px;
  height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--border-color, #e2e8f0);
  color: var(--text-main, #0f172a);
  font-weight: 700;
  font-size: 0.92rem;
  font-family: 'Outfit', 'Inter', sans-serif;
  text-decoration: none !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  user-select: none;
}

.pagination-container .page-link:hover:not(.page-ellipsis) {
  background: var(--bg-surface-hover, #f8fafc);
  border-color: var(--primary, #7c3aed);
  color: var(--primary, #7c3aed);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.18);
}

.pagination-container li.active .page-link,
.pagination-container .page-item.active .page-link {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.4) !important;
  transform: scale(1.04);
}

.pagination-container li.disabled .page-link,
.pagination-container .page-item.disabled .page-link {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
  transform: none !important;
}

.pagination-container .page-prev,
.pagination-container .page-next {
  gap: 8px !important;
  padding: 0 20px !important;
  font-weight: 700;
}

.pagination-container .page-ellipsis {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text-muted) !important;
  font-size: 1.1rem;
  min-width: 28px;
  padding: 0 4px;
}