/*
Theme Name: HiMusic
Theme URI: https://himusic.com.ng
Author: HiMusic Team
Description: A futuristic, premium WordPress theme for HiMusic - Entertainment is our pride. v2
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: himusic
Tags: blog, music, entertainment, dark-mode, responsive, pwa
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --hm-purple-deep:   #1a0533;
  --hm-purple-dark:   #2d0a5e;
  --hm-purple-mid:    #5a1a9e;
  --hm-purple-main:   #7b2fd4;
  --hm-purple-light:  #9b47e8;
  --hm-purple-bright: #b86aff;
  --hm-purple-glow:   #d4a0ff;
  --hm-gradient:      linear-gradient(135deg,#2d0a5e 0%,#7b2fd4 50%,#9b47e8 100%);
  --hm-gradient-hero: linear-gradient(135deg,#1a0533 0%,#4a1080 60%,#7b2fd4 100%);

  --bg-primary:    #ffffff;
  --bg-secondary:  #f8f5ff;
  --bg-tertiary:   #f0e8ff;
  --bg-card:       #ffffff;
  --text-primary:  #0f0520;
  --text-secondary:#4a3a6e;
  --text-muted:    #8a7aaa;
  --border-color:  rgba(123,47,212,.12);
  --border-hover:  rgba(123,47,212,.3);
  --shadow-sm:     0 2px 8px rgba(45,10,94,.08);
  --shadow-md:     0 8px 24px rgba(45,10,94,.12);
  --shadow-lg:     0 16px 48px rgba(45,10,94,.16);
  --header-bg:     rgba(255,255,255,.95);
  --mobile-nav-bg: rgba(255,255,255,.98);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;
  --transition:  all .25s cubic-bezier(.4,0,.2,1);
}

[data-theme="dark"] {
  --bg-primary:    #0d0118;
  --bg-secondary:  #150828;
  --bg-tertiary:   #1e0d38;
  --bg-card:       #1a0830;
  --text-primary:  #f0e8ff;
  --text-secondary:#c4a8e8;
  --text-muted:    #8a6aaa;
  --border-color:  rgba(155,71,232,.15);
  --border-hover:  rgba(155,71,232,.35);
  --shadow-sm:     0 2px 8px rgba(0,0,0,.3);
  --shadow-md:     0 8px 24px rgba(0,0,0,.4);
  --shadow-lg:     0 16px 48px rgba(0,0,0,.5);
  --header-bg:     rgba(13,1,24,.95);
  --mobile-nav-bg: rgba(13,1,24,.98);
}

/* ============================================================
   RESET
   ============================================================ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{font-family:var(--font-body);background:var(--bg-secondary);color:var(--text-primary);line-height:1.7;transition:background .3s,color .3s;overflow-x:hidden;}
a{color:var(--hm-purple-main);text-decoration:none;transition:var(--transition);}
a:hover{color:var(--hm-purple-bright);}
img{max-width:100%;height:auto;display:block;}
ul,ol{list-style:none;}
button,input,textarea,select{font-family:inherit;font-size:inherit;}
h1,h2,h3,h4,h5,h6{font-family:var(--font-display);font-weight:700;line-height:1.25;color:var(--text-primary);}
p{margin-bottom:1rem;color:var(--text-secondary);}
p:last-child{margin-bottom:0;}

.container{max-width:1240px;margin:0 auto;padding:0 24px;}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;}

/* ============================================================
   UTILITIES
   ============================================================ */
.btn{display:inline-flex;align-items:center;gap:8px;padding:10px 22px;border-radius:var(--radius-full);font-weight:500;font-size:.875rem;cursor:pointer;transition:var(--transition);border:none;}
.btn-primary{background:var(--hm-gradient);color:#fff;box-shadow:0 4px 16px rgba(123,47,212,.35);}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(123,47,212,.45);color:#fff;}
.btn-outline{background:transparent;color:var(--hm-purple-main);border:1.5px solid var(--hm-purple-main);}
.btn-outline:hover{background:var(--hm-purple-main);color:#fff;}

.tag{display:inline-flex;align-items:center;padding:3px 10px;border-radius:var(--radius-full);font-size:.7rem;font-weight:500;letter-spacing:.02em;text-transform:uppercase;background:var(--bg-tertiary);color:var(--hm-purple-mid);border:1px solid var(--border-color);transition:var(--transition);}
.tag:hover{background:var(--hm-purple-main);color:#fff;border-color:var(--hm-purple-main);}

.section-title{font-family:var(--font-display);font-size:1.75rem;font-weight:700;color:var(--text-primary);margin-bottom:4px;}
.section-subtitle{font-size:.875rem;color:var(--text-muted);margin-bottom:28px;}

.fade-up{opacity:0;transform:translateY(24px);transition:opacity .6s ease,transform .6s ease;}
.fade-up.visible{opacity:1;transform:translateY(0);}

/* ============================================================
   HEADER
   ============================================================ */
#site-header{position:fixed;top:0;left:0;right:0;z-index:1000;background:var(--header-bg);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-bottom:1px solid var(--border-color);transition:var(--transition);}
#site-header.scrolled{box-shadow:var(--shadow-md);}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:68px;gap:20px;}
.site-logo img{height:40px;width:auto;}
.site-logo-text{font-family:var(--font-display);font-size:1.5rem;font-weight:700;background:var(--hm-gradient);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;}
.header-search{flex:1;max-width:280px;position:relative;}
.header-search input{width:100%;height:38px;background:var(--bg-secondary);border:1.5px solid var(--border-color);border-radius:var(--radius-full);padding:0 14px 0 40px;font-size:.875rem;color:var(--text-primary);outline:none;transition:var(--transition);}
.header-search input::placeholder{color:var(--text-muted);}
.header-search input:focus{border-color:var(--hm-purple-main);background:var(--bg-primary);box-shadow:0 0 0 3px rgba(123,47,212,.1);}
.header-search .search-icon{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:var(--text-muted);pointer-events:none;}
#primary-menu{display:flex;align-items:center;gap:2px;}
#primary-menu li a{display:block;padding:7px 12px;font-size:.85rem;font-weight:500;color:var(--text-secondary);border-radius:var(--radius-md);transition:var(--transition);white-space:nowrap;}
#primary-menu li a:hover,#primary-menu li.current-menu-item>a{color:var(--hm-purple-main);background:var(--bg-tertiary);}
#primary-menu li{position:relative;}
#primary-menu li ul{display:none;position:absolute;top:calc(100% + 8px);left:0;min-width:180px;background:var(--bg-card);border:1px solid var(--border-color);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);padding:8px;z-index:100;}
#primary-menu li:hover>ul{display:block;}
#primary-menu li ul li a{font-size:.8rem;padding:7px 10px;border-radius:var(--radius-sm);}
.header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0;}

/* Theme Toggle — ONE icon at a time */
.theme-toggle{width:36px;height:36px;border-radius:50%;background:var(--bg-secondary);border:1.5px solid var(--border-color);display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--text-secondary);transition:var(--transition);}
.theme-toggle:hover{background:var(--hm-purple-main);border-color:var(--hm-purple-main);color:#fff;}
.theme-toggle .icon-sun,.theme-toggle .icon-moon{display:none;}

/* Mobile menu btn */
.mobile-menu-btn{display:none;width:36px;height:36px;border-radius:var(--radius-sm);background:var(--bg-secondary);border:1.5px solid var(--border-color);align-items:center;justify-content:center;cursor:pointer;color:var(--text-secondary);}

/* Saved btn in header */
.hm-open-saved{width:36px;height:36px;border-radius:50%;background:var(--bg-secondary);border:1.5px solid var(--border-color);display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--text-secondary);transition:var(--transition);}
.hm-open-saved:hover{background:var(--hm-purple-main);border-color:var(--hm-purple-main);color:#fff;}

/* Mobile Drawer */
.mobile-drawer{display:none;position:fixed;inset:0;z-index:999;}
.mobile-drawer.open{display:block;}
.drawer-overlay{position:absolute;inset:0;background:rgba(13,1,24,.7);backdrop-filter:blur(4px);}
.drawer-panel{position:absolute;top:0;left:0;bottom:0;width:280px;background:var(--bg-card);padding:80px 24px 24px;overflow-y:auto;box-shadow:var(--shadow-lg);transform:translateX(-100%);transition:transform .3s cubic-bezier(.4,0,.2,1);}
.mobile-drawer.open .drawer-panel{transform:translateX(0);}
.drawer-panel .menu-item a,.drawer-menu a{display:block;padding:12px 0;font-size:1rem;font-weight:500;color:var(--text-primary);border-bottom:1px solid var(--border-color);}

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
#page{padding-top:68px;padding-bottom:70px;}
@media(min-width:768px){#page{padding-bottom:0;}}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider{position:relative;overflow:hidden;height:580px;background:var(--hm-purple-deep);}
@media(max-width:768px){.hero-slider{height:420px;}}
.hero-slide{position:absolute;inset:0;opacity:0;transition:opacity .8s cubic-bezier(.4,0,.2,1);}
.hero-slide.active{opacity:1;}
.hero-slide-bg{position:absolute;inset:0;background-size:cover;background-position:center;transform:scale(1.05);transition:transform 8s ease;}
.hero-slide.active .hero-slide-bg{transform:scale(1);}
.hero-slide-overlay{position:absolute;inset:0;background:linear-gradient(to right,rgba(26,5,51,.92) 0%,rgba(26,5,51,.65) 55%,rgba(26,5,51,.25) 100%);}
.hero-slide-content{position:relative;z-index:2;height:100%;display:flex;flex-direction:column;justify-content:center;padding:48px 0;max-width:580px;}
.hero-slide-tags{display:flex;gap:8px;margin-bottom:16px;flex-wrap:wrap;}
.hero-slide-tags .tag{background:rgba(155,71,232,.3);color:var(--hm-purple-glow);border-color:rgba(155,71,232,.4);}
.hero-slide-title{font-family:var(--font-display);font-size:clamp(1.75rem,4vw,2.75rem);font-weight:700;color:#fff;line-height:1.2;margin-bottom:14px;}
.hero-slide-title a{color:inherit;}
.hero-slide-excerpt{font-size:.9375rem;color:rgba(255,255,255,.75);line-height:1.7;margin-bottom:24px;max-width:480px;}
.hero-slide-meta{display:flex;align-items:center;gap:10px;margin-bottom:22px;}
.hero-author-avatar{width:32px;height:32px;border-radius:50%;border:2px solid rgba(155,71,232,.6);overflow:hidden;background:var(--hm-purple-mid);display:flex;align-items:center;justify-content:center;font-size:.75rem;color:#fff;font-weight:600;}
.hero-author-avatar img{width:100%;height:100%;object-fit:cover;}
.hero-author-info{font-size:.8125rem;color:rgba(255,255,255,.7);}
.hero-author-info strong{color:rgba(255,255,255,.9);display:block;font-weight:500;}
.hero-nav{position:absolute;bottom:28px;left:50%;transform:translateX(-50%);z-index:10;display:flex;align-items:center;gap:16px;}
.hero-dots{display:flex;gap:6px;}
.hero-dot{width:6px;height:6px;border-radius:3px;background:rgba(255,255,255,.35);cursor:pointer;transition:var(--transition);border:none;padding:0;}
.hero-dot.active{width:24px;background:var(--hm-purple-bright);}
.hero-arrow{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.1);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;cursor:pointer;color:#fff;transition:var(--transition);}
.hero-arrow:hover{background:var(--hm-purple-main);border-color:var(--hm-purple-main);}

/* Hero bottom cards */
.hero-bottom-cards{position:relative;z-index:5;margin-top:-50px;padding-bottom:8px;}
.hero-cards-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;}
@media(max-width:768px){.hero-cards-grid{grid-template-columns:1fr;gap:10px;margin-top:-20px;}}
.hero-card{background:var(--bg-card);border:1px solid var(--border-color);border-radius:var(--radius-lg);padding:16px;box-shadow:var(--shadow-md);transition:var(--transition);}
.hero-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);border-color:var(--border-hover);}
.hero-card-tags{display:flex;gap:6px;margin-bottom:8px;flex-wrap:wrap;}
.hero-card h4{font-family:var(--font-display);font-size:.9375rem;font-weight:600;line-height:1.35;color:var(--text-primary);}
.hero-card h4 a{color:inherit;}
.hero-card h4 a:hover{color:var(--hm-purple-main);}

/* ============================================================
   HOME LAYOUT — sidebar beside articles
   ============================================================ */
.home-sections{padding:40px 0 64px;}
.home-content-layout{display:grid;grid-template-columns:1fr 300px;gap:40px;align-items:start;}
@media(max-width:1024px){.home-content-layout{grid-template-columns:1fr;}}
.home-main{}

/* ============================================================
   CATEGORIES SECTION
   ============================================================ */
.categories-section{margin-bottom:48px;}
.categories-scroll{display:flex;gap:14px;overflow-x:auto;padding-bottom:10px;scrollbar-width:none;-ms-overflow-style:none;scroll-snap-type:x mandatory;}
.categories-scroll::-webkit-scrollbar{display:none;}
.category-card{flex:0 0 130px;scroll-snap-align:start;cursor:pointer;text-decoration:none;}
.category-card-img{width:130px;height:95px;border-radius:var(--radius-lg);overflow:hidden;position:relative;margin-bottom:8px;transition:var(--transition);}
.category-card:hover .category-card-img{transform:translateY(-4px);box-shadow:0 12px 32px rgba(123,47,212,.25);}
.category-card-img img{width:100%;height:100%;object-fit:cover;transition:transform .4s;}
.category-card:hover .category-card-img img{transform:scale(1.08);}
.category-card-img-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:var(--hm-gradient);}
.category-rank{position:absolute;top:7px;left:7px;background:var(--hm-gradient);color:#fff;font-size:.65rem;font-weight:700;padding:2px 6px;border-radius:var(--radius-full);}
.category-card-info{display:flex;align-items:center;gap:5px;}
.category-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0;}
.category-card-name{font-size:.8rem;font-weight:600;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.category-card-count{font-size:.7rem;color:var(--text-muted);}

/* ============================================================
   ARTICLE GRID (Used on homepage + archive)
   ============================================================ */
.articles-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px;margin-bottom:32px;}
@media(max-width:600px){.articles-grid{grid-template-columns:1fr;}}

.archive-card{background:var(--bg-card);border:1px solid var(--border-color);border-radius:var(--radius-lg);overflow:hidden;transition:var(--transition);}
.archive-card:hover{transform:translateY(-5px);box-shadow:var(--shadow-lg);border-color:var(--border-hover);}
.archive-card-img{width:100%;height:170px;overflow:hidden;background:var(--hm-gradient);display:flex;align-items:center;justify-content:center;position:relative;}
.archive-card-img img{width:100%;height:100%;object-fit:cover;transition:transform .4s;}
.archive-card:hover .archive-card-img img{transform:scale(1.06);}
.archive-card-body{padding:14px;}
.archive-card-tags{display:flex;gap:5px;margin-bottom:8px;flex-wrap:wrap;}
.archive-card-title{font-family:var(--font-display);font-size:.9375rem;font-weight:600;line-height:1.35;margin-bottom:8px;color:var(--text-primary);}
.archive-card-title a{color:inherit;}
.archive-card-title a:hover{color:var(--hm-purple-main);}
.archive-card-meta{display:flex;align-items:center;gap:7px;margin-bottom:10px;font-size:.75rem;color:var(--text-muted);}
.archive-card-stats{display:flex;align-items:center;gap:8px;font-size:.75rem;color:var(--text-muted);padding-top:8px;border-top:1px solid var(--border-color);}
.article-stat{display:inline-flex;align-items:center;gap:4px;font-size:.75rem;color:var(--text-muted);cursor:pointer;transition:var(--transition);background:none;border:none;padding:0;}
.article-stat:hover{color:var(--hm-purple-main);}
.article-read-time{display:inline-flex;align-items:center;gap:4px;font-size:.75rem;color:var(--text-muted);}
.article-bookmark{background:none;border:none;cursor:pointer;color:var(--text-muted);display:flex;align-items:center;padding:0;transition:var(--transition);}
.article-bookmark:hover,.article-bookmark.saved{color:var(--hm-purple-main);}
.article-author-avatar{width:22px;height:22px;border-radius:50%;overflow:hidden;background:var(--hm-gradient);display:flex;align-items:center;justify-content:center;font-size:.55rem;color:#fff;font-weight:600;flex-shrink:0;}
.article-author-avatar img{width:100%;height:100%;object-fit:cover;}

/* Mobile post list */
.mobile-post-list{display:none;}
@media(max-width:600px){.mobile-post-list{display:block;}.articles-grid{display:none;}}
.mobile-post-item{background:var(--bg-card);border-bottom:1px solid var(--border-color);padding:14px;}
.mobile-post-item-inner{display:grid;grid-template-columns:1fr 85px;gap:10px;}
.mobile-post-tags{display:flex;gap:5px;margin-bottom:5px;flex-wrap:wrap;}
.mobile-post-title{font-family:var(--font-display);font-size:.9rem;font-weight:600;line-height:1.35;color:var(--text-primary);margin-bottom:5px;}
.mobile-post-title a{color:inherit;}
.mobile-post-meta{display:flex;align-items:center;gap:5px;font-size:.7rem;color:var(--text-muted);margin-bottom:8px;}
.mobile-post-thumb{width:85px;height:68px;border-radius:var(--radius-md);overflow:hidden;background:var(--hm-gradient);display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.mobile-post-thumb img{width:100%;height:100%;object-fit:cover;}
.mobile-post-stats{display:flex;align-items:center;gap:10px;font-size:.7rem;color:var(--text-muted);padding-top:7px;border-top:1px solid var(--border-color);}

/* ============================================================
   PAGINATION — horizontal row
   ============================================================ */
.pagination{display:flex;flex-direction:row!important;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;margin:32px 0;}
.pagination .nav-links{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px;}
.page-numbers{width:38px;height:38px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-md);font-size:.875rem;font-weight:500;color:var(--text-secondary);border:1px solid var(--border-color);background:var(--bg-card);transition:var(--transition);text-decoration:none;}
.page-numbers:hover,.page-numbers.current{background:var(--hm-purple-main);color:#fff;border-color:var(--hm-purple-main);}
.page-numbers.dots{border:none;background:transparent;width:auto;}
a.page-numbers.prev,a.page-numbers.next{width:auto;padding:0 14px;gap:6px;}

/* ============================================================
   ARCHIVE HEADER
   ============================================================ */
.archive-header{padding:40px 0 28px;border-bottom:1px solid var(--border-color);margin-bottom:32px;}
.archive-header h1{font-size:clamp(1.5rem,3vw,2.25rem);margin-bottom:6px;}
.archive-header p{font-size:.9375rem;color:var(--text-muted);}

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post-layout{display:grid;grid-template-columns:1fr 300px;gap:40px;padding:36px 0 64px;}
@media(max-width:1024px){.single-post-layout{grid-template-columns:1fr;}}
.post-header{margin-bottom:28px;}
.post-header-tags{display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap;}
.post-header h1{font-family:var(--font-display);font-size:clamp(1.75rem,3.5vw,2.5rem);font-weight:700;line-height:1.2;margin-bottom:18px;}
.post-header-meta{display:flex;align-items:center;gap:14px;margin-bottom:14px;flex-wrap:wrap;}
.post-author-info{display:flex;align-items:center;gap:10px;}
.post-author-avatar{width:40px;height:40px;border-radius:50%;overflow:hidden;background:var(--hm-gradient);display:flex;align-items:center;justify-content:center;font-size:.875rem;color:#fff;font-weight:600;}
.post-author-avatar img{width:100%;height:100%;object-fit:cover;}
.post-author-name{font-size:.9375rem;font-weight:500;color:var(--text-primary);}
.post-date{font-size:.8125rem;color:var(--text-muted);}
.post-stats{display:flex;align-items:center;gap:14px;padding:10px 0;border-top:1px solid var(--border-color);border-bottom:1px solid var(--border-color);margin-bottom:28px;flex-wrap:wrap;}
.post-featured-img{width:100%;height:460px;border-radius:var(--radius-xl);overflow:hidden;margin-bottom:36px;background:var(--hm-gradient);display:flex;align-items:center;justify-content:center;}
@media(max-width:768px){.post-featured-img{height:240px;border-radius:var(--radius-lg);}}
.post-featured-img img{width:100%;height:100%;object-fit:cover;}
.post-content{font-size:1.0625rem;line-height:1.85;color:var(--text-secondary);}
.post-content h1,.post-content h2,.post-content h3,.post-content h4{margin-top:2rem;margin-bottom:1rem;color:var(--text-primary);}
.post-content p{margin-bottom:1.5rem;}
.post-content img{border-radius:var(--radius-lg);margin:1.5rem 0;width:100%;}
.post-content a{color:var(--hm-purple-main);text-decoration:underline;text-underline-offset:3px;}
.post-content ul,.post-content ol{padding-left:1.5rem;margin-bottom:1.5rem;color:var(--text-secondary);list-style:disc;}
.post-content ol{list-style:decimal;}
.post-content li{margin-bottom:.5rem;}
.post-content blockquote{border-left:4px solid var(--hm-purple-main);padding:14px 20px;background:var(--bg-tertiary);border-radius:0 var(--radius-md) var(--radius-md) 0;margin:1.5rem 0;font-style:italic;}
.post-content code{font-family:var(--font-mono);font-size:.875rem;background:var(--bg-tertiary);padding:2px 6px;border-radius:4px;color:var(--hm-purple-bright);}
.post-content pre{background:var(--bg-tertiary);border-radius:var(--radius-md);padding:18px;overflow-x:auto;margin:1.5rem 0;}
.post-content pre code{background:none;padding:0;color:var(--text-secondary);}
/* Responsive embeds */
.responsive-embed,.post-content .wp-block-embed,.post-content .embed-responsive{position:relative;padding-bottom:56.25%;height:0;overflow:hidden;max-width:100%;margin:1.5rem 0;border-radius:12px;}
.responsive-embed iframe,.post-content .wp-block-embed iframe,.responsive-embed embed{position:absolute;top:0;left:0;width:100%;height:100%;border:none;border-radius:12px;}
.post-content iframe{max-width:100%;border-radius:12px;}

.post-tags{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:20px 0;border-top:1px solid var(--border-color);margin-top:40px;}
.post-tags-label{font-size:.8125rem;font-weight:600;color:var(--text-muted);display:flex;align-items:center;gap:5px;}

/* Author bio */
.author-bio{background:var(--bg-card);border:1px solid var(--border-color);border-radius:var(--radius-xl);padding:24px;margin-top:36px;display:flex;gap:18px;}
@media(max-width:600px){.author-bio{flex-direction:column;}}
.author-bio-avatar{width:68px;height:68px;border-radius:50%;overflow:hidden;background:var(--hm-gradient);display:flex;align-items:center;justify-content:center;font-size:1.5rem;color:#fff;font-weight:700;flex-shrink:0;border:3px solid var(--border-color);}
.author-bio-avatar img{width:100%;height:100%;object-fit:cover;}
.author-bio-label{font-size:.6875rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--hm-purple-main);margin-bottom:4px;}
.author-bio-name{font-family:var(--font-display);font-size:1.125rem;font-weight:700;color:var(--text-primary);margin-bottom:6px;}
.author-bio-desc{font-size:.875rem;color:var(--text-secondary);line-height:1.7;}

/* Related posts */
.related-posts{margin-top:48px;padding-top:36px;border-top:1px solid var(--border-color);}
.related-posts-title{font-family:var(--font-display);font-size:1.375rem;font-weight:700;margin-bottom:20px;color:var(--text-primary);}
.related-posts-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px;margin-bottom:24px;}
.related-prev-next{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;}
.related-nav-btn{display:flex;align-items:center;gap:8px;padding:10px 18px;border-radius:var(--radius-full);border:1.5px solid var(--border-color);color:var(--text-secondary);font-size:.875rem;font-weight:500;transition:var(--transition);flex:1;max-width:220px;}
.related-nav-btn:hover{border-color:var(--hm-purple-main);color:var(--hm-purple-main);}
.related-nav-btn.next-post{justify-content:flex-end;text-align:right;margin-left:auto;}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-section{margin-top:40px;padding-top:36px;border-top:1px solid var(--border-color);}
.comments-title{font-family:var(--font-display);font-size:1.375rem;font-weight:700;color:var(--text-primary);margin-bottom:24px;display:flex;align-items:center;gap:10px;}
.comments-count-badge{background:var(--hm-gradient);color:#fff;font-size:.875rem;font-weight:600;padding:2px 10px;border-radius:var(--radius-full);font-family:var(--font-body);}
.comment-form-wrapper{background:var(--bg-card);border:1px solid var(--border-color);border-radius:var(--radius-xl);padding:22px;margin-bottom:32px;}
.comment-form-title{font-size:1rem;font-weight:600;color:var(--text-primary);margin-bottom:14px;}
.comment-form textarea{width:100%;min-height:110px;background:var(--bg-secondary);border:1.5px solid var(--border-color);border-radius:var(--radius-lg);padding:12px 14px;font-size:.9375rem;color:var(--text-primary);resize:vertical;outline:none;transition:var(--transition);}
.comment-form textarea:focus{border-color:var(--hm-purple-main);box-shadow:0 0 0 3px rgba(123,47,212,.1);}
.comment-form-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px;}
@media(max-width:600px){.comment-form-fields{grid-template-columns:1fr;}}
.comment-form input[type="text"],.comment-form input[type="email"],.comment-form input[type="url"]{width:100%;height:42px;background:var(--bg-secondary);border:1.5px solid var(--border-color);border-radius:var(--radius-md);padding:0 12px;font-size:.875rem;color:var(--text-primary);outline:none;transition:var(--transition);}
.comment-form input:focus{border-color:var(--hm-purple-main);box-shadow:0 0 0 3px rgba(123,47,212,.1);}
.comment-form-actions{display:flex;gap:10px;margin-top:14px;}
.comment-list{display:flex;flex-direction:column;}
.comment-item{padding:20px 0;border-bottom:1px solid var(--border-color);}
.comment-item:last-child{border-bottom:none;}
.comment-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;}
.comment-author-info{display:flex;align-items:center;gap:10px;}
.comment-avatar{width:36px;height:36px;border-radius:50%;overflow:hidden;background:var(--hm-gradient);display:flex;align-items:center;justify-content:center;font-size:.8125rem;color:#fff;font-weight:600;flex-shrink:0;}
.comment-avatar img{width:100%;height:100%;object-fit:cover;}
.comment-author-name{font-size:.9375rem;font-weight:600;color:var(--text-primary);}
.comment-date{font-size:.75rem;color:var(--text-muted);}
.comment-body{font-size:.9375rem;color:var(--text-secondary);line-height:1.7;margin-left:46px;}
.comment-body p{margin-bottom:0;}
.comment-reply-link{font-size:.8125rem;color:var(--hm-purple-main);font-weight:500;margin-left:46px;margin-top:6px;display:inline-flex;align-items:center;gap:4px;cursor:pointer;}
.children{margin-left:46px;border-left:2px solid var(--border-color);padding-left:18px;}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar{display:flex;flex-direction:column;gap:24px;}
.sidebar-widget{background:var(--bg-card);border:1px solid var(--border-color);border-radius:var(--radius-xl);padding:22px;}
.widget-title{font-family:var(--font-display);font-size:1rem;font-weight:700;color:var(--text-primary);margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid var(--border-color);display:flex;align-items:center;gap:8px;}
.newsletter-widget{background:var(--hm-gradient-hero);border-color:rgba(155,71,232,.2);}
.newsletter-widget .widget-title{color:rgba(255,255,255,.9);border-bottom-color:rgba(255,255,255,.1);}
.newsletter-widget p{font-size:.875rem;color:rgba(255,255,255,.7);margin-bottom:14px;}
.newsletter-form{display:flex;flex-direction:column;gap:8px;}
.newsletter-form input{height:42px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);border-radius:var(--radius-full);padding:0 14px;font-size:.875rem;color:#fff;outline:none;}
.newsletter-form input::placeholder{color:rgba(255,255,255,.5);}
.newsletter-form input:focus{border-color:var(--hm-purple-bright);}
.newsletter-form button{height:42px;background:#fff;color:var(--hm-purple-dark);border:none;border-radius:var(--radius-full);font-weight:600;font-size:.875rem;cursor:pointer;transition:var(--transition);display:flex;align-items:center;justify-content:center;gap:6px;}
.newsletter-form button:hover{background:var(--hm-purple-glow);}
.social-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;}
.social-link{display:flex;align-items:center;gap:7px;padding:9px 10px;border-radius:var(--radius-md);border:1px solid var(--border-color);background:var(--bg-secondary);transition:var(--transition);color:var(--text-secondary);font-size:.8rem;font-weight:500;}
.social-link:hover{border-color:var(--border-hover);color:var(--hm-purple-main);}
.categories-widget-list{display:flex;flex-direction:column;gap:6px;}
.category-widget-item{display:flex;align-items:center;gap:9px;padding:7px 0;border-bottom:1px solid var(--border-color);text-decoration:none;transition:var(--transition);}
.category-widget-item:last-child{border-bottom:none;}
.category-widget-item:hover .category-widget-name{color:var(--hm-purple-main);}
.category-widget-img{width:38px;height:34px;border-radius:var(--radius-sm);overflow:hidden;background:var(--hm-gradient);flex-shrink:0;}
.category-widget-img img{width:100%;height:100%;object-fit:cover;}
.category-widget-name{font-size:.875rem;font-weight:500;color:var(--text-primary);transition:var(--transition);flex:1;}
.category-widget-count{font-size:.7rem;color:var(--text-muted);}

/* Mobile sidebar toggle */
.hm-no-mobile-sidebar .sidebar{display:none;}
@media(min-width:1025px){.hm-no-mobile-sidebar .sidebar{display:flex;}}

/* ============================================================
   CHARTS PAGE
   ============================================================ */
.charts-page-header{text-align:center;padding:48px 0 36px;border-bottom:1px solid var(--border-color);margin-bottom:44px;}
.charts-page-header h1{font-size:clamp(2rem,4vw,2.75rem);margin-bottom:10px;background:var(--hm-gradient);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;}
.charts-section{margin-bottom:48px;}
.charts-section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid var(--border-color);}
.charts-section-title{font-family:var(--font-display);font-size:1.375rem;font-weight:700;display:flex;align-items:center;gap:10px;color:var(--text-primary);}
.charts-section-link{font-size:.875rem;color:var(--hm-purple-main);font-weight:500;display:flex;align-items:center;gap:4px;}
.chart-item{display:grid;grid-template-columns:44px 52px 1fr auto;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid var(--border-color);transition:var(--transition);}
.chart-item:last-child{border-bottom:none;}
.chart-item:hover{background:var(--bg-secondary);margin:0 -14px;padding:14px;border-radius:var(--radius-md);}
.chart-rank{font-family:var(--font-display);font-size:1.125rem;font-weight:700;color:var(--text-muted);text-align:center;}
.chart-rank.top3{background:var(--hm-gradient);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;}
.chart-img{width:52px;height:44px;border-radius:var(--radius-md);overflow:hidden;background:var(--hm-gradient);display:flex;align-items:center;justify-content:center;}
.chart-img img{width:100%;height:100%;object-fit:cover;}
.chart-title{font-size:.9rem;font-weight:600;color:var(--text-primary);line-height:1.3;margin-bottom:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.chart-title a{color:inherit;}
.chart-title a:hover{color:var(--hm-purple-main);}
.chart-meta{font-size:.72rem;color:var(--text-muted);display:flex;align-items:center;gap:6px;}
.chart-views{text-align:right;font-size:.875rem;font-weight:600;color:var(--hm-purple-main);white-space:nowrap;}
.chart-views span{display:block;font-size:.6875rem;font-weight:400;color:var(--text-muted);}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer{background:var(--hm-purple-deep);color:rgba(255,255,255,.7);padding:56px 0 0;}
.footer-grid{display:grid;grid-template-columns:1.8fr 1fr 1fr 1.4fr;gap:36px;padding-bottom:44px;border-bottom:1px solid rgba(255,255,255,.08);}
@media(max-width:900px){.footer-grid{grid-template-columns:1fr 1fr;}}
@media(max-width:600px){
  .footer-grid{grid-template-columns:1fr;}
  .footer-brand{grid-column:1;}
  .footer-col:not(.footer-newsletter-col){display:grid;grid-template-columns:1fr 1fr;gap:0;}
  .footer-col:not(.footer-newsletter-col) .footer-col-title{grid-column:1;}
  .footer-newsletter-col{grid-column:1;}
}
.footer-brand-logo{margin-bottom:14px;}
.footer-brand-logo img{height:34px;width:auto;filter:brightness(1.2);}
.footer-brand-tagline{font-size:.875rem;line-height:1.7;margin-bottom:18px;color:rgba(255,255,255,.55);}
.footer-social{display:flex;gap:8px;}
.footer-social-link{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.6);transition:var(--transition);}
.footer-social-link:hover{background:var(--hm-purple-main);border-color:var(--hm-purple-main);color:#fff;}
.footer-col-title{font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:rgba(255,255,255,.9);margin-bottom:14px;}
.footer-links{display:flex;flex-direction:column;gap:7px;}
.footer-links a{font-size:.875rem;color:rgba(255,255,255,.5);transition:var(--transition);}
.footer-links a:hover{color:var(--hm-purple-glow);padding-left:5px;}
.footer-newsletter-form{display:flex;gap:0;border:1px solid rgba(255,255,255,.15);border-radius:var(--radius-full);overflow:hidden;background:rgba(255,255,255,.06);}
.footer-newsletter-form input{flex:1;height:42px;background:transparent;border:none;padding:0 16px;font-size:.85rem;color:#fff;outline:none;}
.footer-newsletter-form input::placeholder{color:rgba(255,255,255,.4);}
.footer-newsletter-form button{height:42px;width:42px;background:var(--hm-purple-main);border:none;border-radius:0 var(--radius-full) var(--radius-full) 0;display:flex;align-items:center;justify-content:center;color:#fff;cursor:pointer;flex-shrink:0;transition:var(--transition);}
.footer-newsletter-form button:hover{background:var(--hm-purple-light);}
.footer-bottom{display:flex;align-items:center;justify-content:center;gap:24px;padding:18px 0;font-size:.8125rem;color:rgba(255,255,255,.4);text-align:center;flex-wrap:wrap;}
.footer-bottom a{color:rgba(255,255,255,.55);}
.footer-bottom a:hover{color:var(--hm-purple-glow);}

/* ============================================================
   MOBILE BOTTOM NAV
   ============================================================ */
.mobile-bottom-nav{display:none;position:fixed;bottom:0;left:0;right:0;z-index:1000;background:var(--mobile-nav-bg);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-top:1px solid var(--border-color);padding:6px 0 max(6px,env(safe-area-inset-bottom));}
@media(max-width:767px){.mobile-bottom-nav{display:block;}.mobile-menu-btn{display:flex;}}
.mobile-nav-inner{display:flex;align-items:center;justify-content:space-around;}
.mobile-nav-item{display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px 10px;color:var(--text-muted);font-size:.6rem;font-weight:500;text-decoration:none;transition:var(--transition);cursor:pointer;background:none;border:none;min-width:48px;}
.mobile-nav-item.active,.mobile-nav-item:hover{color:var(--hm-purple-main);}

/* ============================================================
   MUSIC PLAYER
   ============================================================ */
.hm-music-player{position:fixed;bottom:0;left:0;right:0;z-index:990;background:var(--hm-purple-deep);border-top:1px solid rgba(155,71,232,.3);transform:translateY(100%);transition:transform .35s cubic-bezier(.4,0,.2,1);backdrop-filter:blur(20px);}
.hm-music-player.visible{transform:translateY(0);}
@media(max-width:767px){.hm-music-player{bottom:56px;}}
.hm-player-inner{display:flex;align-items:center;gap:12px;padding:10px 20px;max-width:1240px;margin:0 auto;}
.hm-player-cover{width:44px;height:44px;border-radius:8px;overflow:hidden;background:rgba(255,255,255,.1);flex-shrink:0;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.5);}
.hm-player-cover img{width:100%;height:100%;object-fit:cover;}
.hm-player-cover-fallback{display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.4);}
.hm-player-info{flex:0 0 160px;min-width:0;}
@media(max-width:600px){.hm-player-info{flex:1;}}
.hm-player-title{font-size:.875rem;font-weight:600;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.hm-player-artist{font-size:.75rem;color:rgba(255,255,255,.6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.hm-player-controls{display:flex;align-items:center;gap:4px;flex-shrink:0;}
.hm-player-btn{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.08);border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;color:rgba(255,255,255,.8);transition:var(--transition);}
.hm-player-btn:hover{background:rgba(255,255,255,.15);color:#fff;}
.hm-player-play{background:var(--hm-purple-main);width:40px;height:40px;color:#fff;}
.hm-player-play:hover{background:var(--hm-purple-light);}
.hm-player-progress-wrap{flex:1;min-width:0;}
@media(max-width:600px){.hm-player-progress-wrap{display:none;}}
.hm-player-progress{height:4px;background:rgba(255,255,255,.15);border-radius:2px;cursor:pointer;margin-bottom:4px;position:relative;}
.hm-player-bar{height:100%;background:var(--hm-purple-bright);border-radius:2px;width:0%;transition:width .25s linear;}
.hm-player-time{display:flex;justify-content:space-between;font-size:.7rem;color:rgba(255,255,255,.5);}
.hm-player-volume{display:flex;align-items:center;gap:7px;flex-shrink:0;color:rgba(255,255,255,.5);}
@media(max-width:768px){.hm-player-volume{display:none;}}
.hm-player-volume input[type="range"]{width:70px;accent-color:var(--hm-purple-bright);}
.hm-player-close{width:30px;height:30px;border-radius:50%;background:rgba(255,255,255,.08);border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;color:rgba(255,255,255,.6);flex-shrink:0;transition:var(--transition);}
.hm-player-close:hover{background:rgba(255,255,255,.15);color:#fff;}

/* Post play button */
.hm-play-music{display:inline-flex;align-items:center;gap:8px;padding:10px 20px;background:var(--hm-gradient);color:#fff;border:none;border-radius:var(--radius-full);font-size:.875rem;font-weight:600;cursor:pointer;margin:16px 0;transition:var(--transition);}
.hm-play-music:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(123,47,212,.4);}

/* ============================================================
   BOOKMARKS / SAVED MODAL
   ============================================================ */
.hm-saved-modal{position:fixed;inset:0;z-index:1100;align-items:flex-end;justify-content:center;display:none;}
.hm-saved-modal[style*="flex"]{display:flex!important;}
.hm-saved-overlay{position:absolute;inset:0;background:rgba(13,1,24,.7);backdrop-filter:blur(4px);}
.hm-saved-panel{position:relative;background:var(--bg-card);border-radius:var(--radius-xl) var(--radius-xl) 0 0;width:100%;max-width:560px;max-height:80vh;display:flex;flex-direction:column;overflow:hidden;}
.hm-saved-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px 16px;border-bottom:1px solid var(--border-color);}
.hm-saved-header h2{font-size:1.125rem;font-weight:700;display:flex;align-items:center;gap:8px;}
.hm-saved-header button{background:none;border:none;cursor:pointer;color:var(--text-muted);display:flex;align-items:center;justify-content:center;padding:4px;border-radius:50%;}
.hm-saved-list{overflow-y:auto;padding:12px 0;flex:1;}
.hm-saved-empty{text-align:center;padding:40px 24px;color:var(--text-muted);}
.hm-saved-item{display:flex;align-items:center;gap:12px;padding:12px 24px;text-decoration:none;transition:var(--transition);}
.hm-saved-item:hover{background:var(--bg-secondary);}
.hm-saved-thumb{width:52px;height:44px;border-radius:var(--radius-md);overflow:hidden;background:var(--hm-gradient);flex-shrink:0;display:flex;align-items:center;justify-content:center;}
.hm-saved-thumb img{width:100%;height:100%;object-fit:cover;}
.hm-saved-title{font-size:.9rem;font-weight:500;color:var(--text-primary);flex:1;line-height:1.35;}
.hm-saved-remove{background:none;border:none;cursor:pointer;color:var(--text-muted);padding:4px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;transition:var(--transition);}
.hm-saved-remove:hover{color:var(--hm-purple-main);background:var(--bg-tertiary);}

/* ============================================================
   IOS PWA BANNER
   ============================================================ */
.hm-ios-banner{position:fixed;bottom:70px;left:50%;transform:translateX(-50%);z-index:1050;width:calc(100% - 32px);max-width:380px;}
.hm-ios-banner-inner{background:var(--bg-card);border:1px solid var(--border-color);border-radius:var(--radius-lg);padding:14px 16px;display:flex;align-items:center;gap:12px;box-shadow:var(--shadow-lg);}
.hm-ios-icon img{width:36px;height:36px;border-radius:8px;}
.hm-ios-text{flex:1;font-size:.8125rem;}
.hm-ios-text strong{display:block;font-weight:600;color:var(--text-primary);margin-bottom:2px;}
.hm-ios-text span{color:var(--text-muted);}
.hm-ios-banner button{background:none;border:none;cursor:pointer;color:var(--text-muted);padding:4px;border-radius:50%;flex-shrink:0;}

/* ============================================================
   PAGE TEMPLATES
   ============================================================ */
.page-content-wrapper{display:grid;grid-template-columns:1fr 300px;gap:40px;padding:36px 0 64px;}
@media(max-width:1024px){.page-content-wrapper{grid-template-columns:1fr;}}
.page-header{margin-bottom:28px;padding-bottom:20px;border-bottom:1px solid var(--border-color);}
.page-header h1{font-size:clamp(1.75rem,3vw,2.25rem);margin-bottom:6px;}
.page-updated{font-size:.8125rem;color:var(--text-muted);display:flex;align-items:center;gap:6px;}
.page-content{font-size:1rem;line-height:1.85;color:var(--text-secondary);}
.page-content h2{font-size:1.3rem;margin-top:1.75rem;margin-bottom:.875rem;color:var(--text-primary);}
.page-content h3{font-size:1.1rem;margin-top:1.5rem;margin-bottom:.75rem;color:var(--text-primary);}
.page-content p{margin-bottom:1.25rem;}
.page-content ul{padding-left:1.5rem;list-style:disc;margin-bottom:1.25rem;}
.page-content ul li{margin-bottom:.5rem;}
.page-content a{color:var(--hm-purple-main);}

/* 404 */
.error-404{min-height:70vh;display:flex;align-items:center;justify-content:center;text-align:center;padding:40px;}
.error-404-inner{max-width:480px;}
.error-404-number{font-family:var(--font-display);font-size:clamp(5rem,15vw,9rem);font-weight:700;background:var(--hm-gradient);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;line-height:1;margin-bottom:14px;}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:1024px){.header-search{max-width:200px;}}
@media(max-width:767px){#primary-menu{display:none;}.header-search{display:none;}.mobile-menu-btn{display:flex;}.single-post-layout{grid-template-columns:1fr;}.charts-section-header{flex-direction:column;align-items:flex-start;gap:8px;}}

/* Scrollbar */
::-webkit-scrollbar{width:5px;height:5px;}
::-webkit-scrollbar-track{background:var(--bg-secondary);}
::-webkit-scrollbar-thumb{background:var(--hm-purple-mid);border-radius:3px;}
::-webkit-scrollbar-thumb:hover{background:var(--hm-purple-main);}

@media print{#site-header,.mobile-bottom-nav,.sidebar,#site-footer{display:none;}#page{padding:0;}.single-post-layout{grid-template-columns:1fr;}}
