/*
Theme Name: Melodify Playlist Theme
Theme URI: https://example.com/melodify-playlist
Author: AI Studio Music Specialist
Author URI: https://example.com
Description: قالب مدرن و سبک موزیک وردپرس مخصوص پلی‌لیست‌ها با پشتیبانی کامل از افزونه ACF، پلیر شناور، کیفیت‌های ۳۲۰ و ۱۲۸، و بهینه‌سازی سرعت.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: melodify-playlist
Tags: music, playlist, acf, rtl, light-theme, fast, responsive

--------------------------------------------------------------
TABLE OF CONTENTS
--------------------------------------------------------------
1. Reset & Global Styles
2. Typography & RTL (Vazirmatn)
3. Header & Navigation
4. Hero & Search Bar
5. Playlist Post Cards & Grids
6. Single Post & Tracklist Table
7. Quality Selector Badge (320kbps / 128kbps)
8. Recommended Posts Widget
9. Floating Sticky Audio Player with Close Button
10. Speed & Lazy Loading Helper Styles
-------------------------------------------------------------- */

/* 1. Reset & Global Styles */
:root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eeef2;
  --secondary-color: #06b6d4;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --player-bg: rgba(255, 255, 255, 0.95);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

body {
  font-family: 'Vazirmatn', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 110px; /* Space for persistent player */
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* 2. Header & Navigation */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
  z-index: 30;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
}

/* 2.1 Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  cursor: pointer;
}

.site-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 1rem;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px -4px rgba(79, 70, 229, 0.35);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.site-logo:hover .site-logo-icon {
  transform: scale(1.05);
}

.animate-spin-slow {
  animation: spinSlow 12s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.site-logo-text {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.site-logo-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.025em;
  transition: color 0.2s;
}

.site-logo:hover .site-logo-title {
  color: #4f46e5;
}

.site-logo-tagline {
  font-size: 0.6875rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 0.25rem;
  display: block;
}

/* 2.2 Navigation Menu Pill Container */
.main-navigation {
  display: flex;
  align-items: center;
}

.nav-menu-wrapper {
  background: rgba(241, 245, 249, 0.9);
  padding: 0.375rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-menu li a:hover {
  color: #4f46e5;
  background: rgba(255, 255, 255, 0.7);
}

.nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a,
.nav-menu li a.active {
  background: #4f46e5 !important;
  color: #ffffff !important;
  box-shadow: 0 1px 2px rgba(79, 70, 229, 0.25);
}

/* 2.3 Search Form */
.header-search-wrap {
  display: flex;
  align-items: center;
  position: relative;
  flex: 1;
  max-width: 320px;
}

.search-form-header {
  position: relative;
  width: 100%;
}

.search-input-header {
  width: 100%;
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: rgba(241, 245, 249, 0.9);
  color: #0f172a;
  font-family: 'Vazirmatn', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 0.775rem;
  font-weight: 600;
  outline: none;
  transition: all 0.2s;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
}

.search-input-header::placeholder {
  font-family: 'Vazirmatn', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 400;
}

.search-input-header:focus {
  background: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.search-icon-header {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  pointer-events: none;
}

/* 2.4 Mobile Menu & Search (< 768px & < 640px) */
.mobile-menu-toggle {
  display: none;
  padding: 0.5rem;
  border-radius: 0.75rem;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: background 0.2s;
}

.mobile-menu-toggle:hover {
  background: #e2e8f0;
}

.mobile-search-bar {
  display: none;
  margin-top: 0.85rem;
  margin-bottom: 0.85rem;
  position: relative;
}

.search-form-mobile {
  position: relative;
  width: 100%;
}

.search-input-mobile {
  width: 100%;
  padding: 0.6rem 2.5rem 0.6rem 1rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  color: #0f172a;
  font-family: 'Vazirmatn', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 0.775rem;
  font-weight: 600;
  outline: none;
  transition: all 0.2s;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
}

.search-input-mobile::placeholder {
  font-family: 'Vazirmatn', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 400;
}

.search-input-mobile:focus {
  background: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.mobile-nav-dropdown {
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-menu li {
  margin: 0;
  padding: 0;
}

.mobile-nav-menu li a {
  display: block;
  text-align: right;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
  transition: all 0.15s ease;
}

.mobile-nav-menu li a:hover {
  background: #f8fafc;
  color: #4f46e5;
}

.mobile-nav-menu li.current-menu-item a,
.mobile-nav-menu li.current_page_item a,
.mobile-nav-menu li a.active {
  background: #eef2ff;
  color: #4f46e5;
  font-weight: 800;
}

@media (max-width: 768px) {
  .main-navigation {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .header-search-wrap {
    display: none;
  }
  .mobile-search-bar {
    display: block;
  }
  .site-main {
    padding-top: 2rem !important;
  }
  .home-intro-hero {
    margin-top: 0.5rem !important;
    margin-bottom: 2.25rem !important;
  }
}

/* Static Page Templates (About, Contact, Rules, Copyright) */
.static-page-wrapper {
  max-width: 860px;
  margin: 2rem auto;
}

.static-page-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.static-page-card .entry-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.static-page-card .entry-content {
  font-size: 0.95rem;
  line-height: 1.85;
  color: #334155;
}

/* 3. Playlist Cards Grid */
.playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* 5-Column Grid for Categorized Sections (2 rows of 5 boxes = 10 items) */
.playlist-grid-5cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .playlist-grid-5cols {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 768px) {
  .playlist-grid-5cols {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .playlist-grid-5cols {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
  }
}

.playlist-card-mini {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.playlist-card-mini:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(79, 70, 229, 0.3);
}

.playlist-card-mini .playlist-card-body {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.playlist-card-mini .playlist-title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.playlist-card-actions {
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid #f1f5f9;
}

.btn-action-single {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  background: #ffffff;
  color: #334155;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.btn-action-single svg {
  color: var(--primary-color);
  fill: currentColor;
}

.btn-action-single:hover {
  background: #eef2ff;
  color: var(--primary-color);
}

.playlist-card-mini .playlist-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid #f1f5f9;
}

.playlist-btn-link {
  color: var(--primary-color);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
}

.quality-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(79, 70, 229, 0.9);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.playlist-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.playlist-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 70, 229, 0.3);
}

.playlist-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #e2e8f0;
  overflow: hidden;
  display: block;
}

.playlist-thumb,
.playlist-thumb-wrap img,
.playlist-thumb-wrap .wp-post-image {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.playlist-card:hover .playlist-thumb,
.playlist-card-mini:hover .playlist-thumb,
.playlist-card-mini:hover .playlist-thumb-wrap img {
  transform: scale(1.05);
}

.playlist-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.playlist-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.playlist-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.playlist-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-color);
}

/* 4. Single Post & Tracklist Table */
.single-post-header {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .single-post-header {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }
}

/* 4. Tracklist Table & Mobile Cards */
.track-list-desktop {
  display: block;
}

.track-list-mobile {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
}

.track-list-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.track-list-table th {
  background: #f8fafc;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 1rem;
  text-align: right;
  border-bottom: 1px solid var(--border-color);
}

.track-list-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  font-size: 0.925rem;
}

.track-row {
  transition: background-color 0.15s ease;
}

.track-row:hover {
  background-color: #f8fafc;
}

.track-row.is-playing {
  background-color: #eef2ff;
}

.btn-play-desktop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  min-width: 120px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #4338ca;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.btn-play-desktop:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.2);
}

.track-row.is-playing .btn-play-desktop {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.play-btn-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}

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

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 20px;
  min-width: 120px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-main);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  text-decoration: none;
}

.download-link:hover {
  background: #f8fafc;
  border-color: var(--primary-color);
  color: var(--primary-color);
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.12);
}

/* Mobile Track Card Specifics */
.track-card-mobile {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 0.875rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.track-card-mobile.is-playing {
  background: #f5f3ff;
  border-color: #c7d2fe;
}

.track-card-title {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.825rem;
  line-height: 1.45;
  margin-bottom: 0.65rem;
  word-break: break-word;
}

.track-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.btn-play-online {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #4338ca;
  transition: all 0.2s ease;
}

.track-card-mobile.is-playing .btn-play-online {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.btn-card-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-card-download:hover,
.btn-card-download:active {
  background: #f8fafc;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .track-list-desktop {
    display: none;
  }
  
  .track-list-mobile {
    display: flex;
  }
}

/* 5. Recommended Posts Widget (12 Posts with Featured Images) */
.recommend-section {
  margin-top: 2.5rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.recommend-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.recommend-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
}

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

.recommend-grid-12 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .recommend-grid-12 {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  .recommend-grid-12 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .recommend-grid-12 {
    grid-template-columns: repeat(6, 1fr);
  }
}

.recommend-card-12 {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.recommend-card-12:hover {
  background: #ffffff;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.recommend-thumb-box {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #e2e8f0;
  margin-bottom: 0.6rem;
}

.recommend-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.recommend-card-12:hover .recommend-thumb-box img {
  transform: scale(1.06);
}

.recommend-cat-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  z-index: 2;
}

.recommend-hover-play {
  position: absolute;
  inset: 0;
  background: rgba(49, 46, 129, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 3;
}

.recommend-hover-play svg {
  background: #ffffff;
  color: var(--primary-color);
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transform: translateY(6px);
  transition: transform 0.25s ease;
}

.recommend-card-12:hover .recommend-hover-play {
  opacity: 1;
}

.recommend-card-12:hover .recommend-hover-play svg {
  transform: translateY(0);
}

.recommend-info-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.recommend-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin: 0 0 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.recommend-card-12:hover .recommend-card-title {
  color: var(--primary-color);
}

.recommend-track-count {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* 6. Sticky Floating Player */
.sticky-audio-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--player-bg);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Desktop Layout (>= 1024px) */
.player-desktop-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.player-mobile-layout {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
}

.player-mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.player-mobile-bottom {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
}

.player-track-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  text-align: left;
  width: 240px;
  flex-shrink: 0;
}

.player-center-controls {
  flex: 1;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.player-actions-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Tablet & Mobile Breakpoint (< 1024px) */
@media (max-width: 1023px) {
  .player-desktop-layout {
    display: none !important;
  }
  .player-mobile-layout {
    display: flex !important;
  }
}

.sticky-audio-player.is-closed {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.player-reopen-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 999;
  background: var(--primary-color);
  color: white;
  padding: 10px 18px;
  border-radius: 9999px;
  box-shadow: var(--shadow-lg);
  border: none;
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.player-reopen-btn:hover {
  transform: scale(1.05);
}

.quality-toggle-group {
  display: inline-flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
}

.quality-btn {
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.quality-btn.active {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 7. Hero Features Badge List */
.hero-features-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #334155;
  width: 100%;
}

.hero-feature-pill {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

@media (max-width: 640px) {
  .hero-features-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  
  .hero-feature-pill {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    padding: 10px 14px;
  }
}

/* 8. WordPress Comments & Form (Contact, DMCA & Posts) */
.comments-area {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #f1f5f9;
}

.comment-list .comment {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}

.comment-list .comment:hover {
  background: #ffffff;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
}

.comment-author img.avatar {
  border-radius: 50%;
  border: 2px solid #e2e8f0;
}

.comment-metadata a {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
}

.comment-content {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #334155;
}

.reply a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  margin-top: 0.5rem;
}

.comment-respond {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-xs);
}

.comment-reply-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
}

/* 9. Modern Dark Footer (Matching Live Preview) */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  border-top: 1px solid #1e293b;
  padding-top: 3.5rem;
  padding-bottom: 6rem;
  margin-top: 4rem;
  direction: rtl;
}

.footer-grid {
  display: grid;
  grid-template-columns: 5fr 3fr 4fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(30, 41, 59, 0.8);
}

.footer-col-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.footer-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 1rem;
  background: #4f46e5;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
  flex-shrink: 0;
}

.footer-brand-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.025em;
  margin: 0;
}

.footer-brand-desc {
  font-size: 0.775rem;
  color: #94a3b8;
  line-height: 1.8;
  margin: 0;
  max-width: 440px;
}

.footer-col-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  border-right: 2.5px solid #6366f1;
  padding-right: 0.65rem;
  margin: 0 0 1rem 0;
}

.footer-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links-list li a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links-list li a:hover {
  color: #818cf8;
}

.footer-link-arrow {
  color: #6366f1;
  font-size: 0.95rem;
  line-height: 1;
}

.footer-pages-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.footer-pages-grid li a {
  display: block;
  text-align: right;
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-pages-grid li a:hover {
  color: #818cf8;
}

.footer-bottom-bar {
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copyright-text {
  font-size: 0.75rem;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  flex-wrap: wrap;
}

.footer-brand-highlight {
  color: #cbd5e1;
  font-weight: 700;
}

.footer-heart-icon {
  display: inline-block;
  vertical-align: middle;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}



