/*
Theme Name: MusicAI Hub
Theme URI: https://example.com/musicai-hub
Author: MusicAI Hub
Author URI: https://example.com
Description: Yapay Zeka ile ücretsiz şarkı sözü üretici, güncel YouTube müzik videoları ve AI müzik rehberleri. AdSense onaylı, SEO optimize WordPress teması.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: musicai-hub
Tags: music, ai, youtube, blog, lyrics, tool, adsense, seo
*/

/* ===========================================
   CSS CUSTOM PROPERTIES
=========================================== */
:root {
  --bg:        #0a0a0f;
  --bg2:       #111118;
  --surface:   #16161f;
  --surface2:  #1c1c28;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.12);

  --gold:      #f5c842;
  --gold2:     #e8951a;
  --rose:      #e8547a;
  --teal:      #2ee8c0;
  --purple:    #8b5cf6;

  --text:      #ece9f8;
  --text2:     #9996b0;
  --text3:     #5c5970;

  --grad-gold: linear-gradient(135deg, #f5c842 0%, #e8951a 100%);
  --grad-rose: linear-gradient(135deg, #e8547a 0%, #c0392b 100%);
  --grad-teal: linear-gradient(135deg, #2ee8c0 0%, #0ea5e9 100%);

  --ff-display: 'Sora', 'Segoe UI', sans-serif;
  --ff-body:    'DM Sans', 'Segoe UI', sans-serif;
  --ff-mono:    'JetBrains Mono', 'Courier New', monospace;

  --r:   12px;
  --r2:  18px;
  --r3:  24px;
  --sh:  0 4px 24px rgba(0,0,0,0.4);
  --sh2: 0 8px 40px rgba(0,0,0,0.5);
  --tr:  all 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ===========================================
   RESET & BASE
=========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(245,200,66,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(46,232,192,0.03) 0%, transparent 60%);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: var(--tr); }
a:hover { opacity: 0.82; }
h1,h2,h3,h4,h5,h6 { font-family: var(--ff-display); line-height: 1.25; color: var(--text); }
p { margin-bottom: 1rem; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ===========================================
   HEADER
=========================================== */
#site-header {
  position: sticky; top: 0; z-index: 999;
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex; align-items: center; gap: 20px;
  height: 66px; justify-content: space-between;
}

.site-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff-display); font-size: 1.3rem; font-weight: 800;
  color: var(--text); letter-spacing: -0.02em;
}
.logo-mark {
  width: 36px; height: 36px;
  background: var(--grad-gold);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.logo-mark svg { width: 18px; height: 18px; fill: #0a0a0f; }

#main-nav ul { display: flex; list-style: none; gap: 2px; align-items: center; }
#main-nav ul li a {
  color: var(--text2); font-size: 0.82rem; font-weight: 600;
  padding: 7px 14px; border-radius: 8px;
  letter-spacing: 0.03em; text-transform: uppercase;
  transition: var(--tr); display: block;
}
#main-nav ul li a:hover,
#main-nav ul li.current-menu-item a {
  color: var(--gold); background: rgba(245,200,66,0.07);
}

.header-right { display: flex; align-items: center; gap: 10px; }

.search-form { display: flex; align-items: center; gap: 8px; }
.search-form input {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-family: var(--ff-body); font-size: 0.82rem;
  padding: 7px 14px; border-radius: 50px; width: 170px;
  transition: var(--tr);
}
.search-form input:focus { outline: none; border-color: var(--gold); width: 210px; }
.search-form input::placeholder { color: var(--text3); }
.search-form button {
  background: none; border: none; color: var(--text3); cursor: pointer;
  display: flex; align-items: center; transition: var(--tr);
}
.search-form button:hover { color: var(--gold); }

.mobile-toggle {
  display: none; background: none; border: 1px solid var(--border);
  color: var(--text); padding: 7px 10px; border-radius: 8px; cursor: pointer; font-size: 1rem;
}

/* ===========================================
   AD UNITS  (AdSense ready)
=========================================== */
.ad-slot {
  background: var(--surface);
  border: 1px dashed var(--border2);
  border-radius: var(--r2);
  padding: 8px; margin: 32px 0;
  min-height: 90px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
}
.ad-label {
  font-size: 0.6rem; color: var(--text3);
  text-transform: uppercase; letter-spacing: 0.12em;
}
.ad-slot-leaderboard { min-height: 90px; }
.ad-slot-rect { min-height: 250px; }
.ad-slot-inline { min-height: 100px; }

/* ===========================================
   HERO
=========================================== */
.hero {
  padding: 72px 0 56px; text-align: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(245,200,66,0.08); border: 1px solid rgba(245,200,66,0.22);
  color: var(--gold); padding: 5px 16px; border-radius: 50px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 24px;
  animation: tagPulse 3s ease-in-out infinite;
}
@keyframes tagPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(245,200,66,0); }
  50%      { box-shadow: 0 0 16px 2px rgba(245,200,66,0.12); }
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900; letter-spacing: -0.03em;
  line-height: 1.1; margin-bottom: 20px;
}
.hero-title .accent {
  background: var(--grad-gold);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.05rem; color: var(--text2);
  max-width: 580px; margin: 0 auto 32px; line-height: 1.75;
}

.hero-counters {
  display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.counter-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.82rem; color: var(--text2);
}
.counter-item strong { color: var(--teal); font-family: var(--ff-mono); font-size: 0.88rem; }
.counter-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: blink-dot 2s infinite; }
@keyframes blink-dot { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

/* ===========================================
   LYRICS GENERATOR TOOL
=========================================== */
.tool-section { padding: 0 0 56px; }

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  overflow: hidden;
  box-shadow: var(--sh2);
  position: relative;
}
.tool-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--rose), var(--teal));
}

.tool-header {
  padding: 28px 32px 0;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.tool-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; }
.tool-subtitle { font-size: 0.82rem; color: var(--text2); }

.tool-body { padding: 24px 32px 32px; }

/* Genre Grid */
.genre-label { font-size: 0.7rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; margin-bottom: 12px; }

.genre-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px;
  margin-bottom: 24px;
}
.genre-btn {
  background: var(--surface2); border: 1.5px solid var(--border);
  color: var(--text2); padding: 12px 6px; border-radius: var(--r);
  cursor: pointer; font-family: var(--ff-body); font-size: 0.78rem; font-weight: 700;
  text-align: center; transition: var(--tr);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.genre-btn .gi { font-size: 1.3rem; }
.genre-btn:hover { border-color: var(--gold); color: var(--text); }
.genre-btn.active {
  border-color: var(--gold); background: rgba(245,200,66,0.09);
  color: var(--gold); box-shadow: 0 0 0 3px rgba(245,200,66,0.07);
}

/* Options row */
.options-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.field-group { display: flex; flex-direction: column; gap: 7px; }
.field-group label { font-size: 0.7rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.field-group select {
  background: var(--surface2); border: 1.5px solid var(--border);
  color: var(--text); font-family: var(--ff-body); font-size: 0.87rem;
  padding: 10px 14px; border-radius: var(--r); cursor: pointer; transition: var(--tr);
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235c5970' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.field-group select:focus { outline: none; border-color: rgba(245,200,66,0.4); }
.field-group select option { background: #1c1c28; }

/* Prompt */
.prompt-area { margin-bottom: 22px; }
.prompt-area textarea {
  width: 100%; background: var(--surface2); border: 1.5px solid var(--border);
  color: var(--text); font-family: var(--ff-body); font-size: 0.88rem;
  padding: 13px 16px; border-radius: var(--r); resize: vertical; min-height: 90px;
  line-height: 1.65; transition: var(--tr);
}
.prompt-area textarea:focus { outline: none; border-color: rgba(245,200,66,0.35); }
.prompt-area textarea::placeholder { color: var(--text3); }
.prompt-tip { font-size: 0.75rem; color: var(--text3); margin-top: 8px; display: flex; gap: 6px; }

/* Generate Button */
.gen-btn {
  width: 100%; padding: 16px;
  background: var(--grad-gold); border: none; border-radius: var(--r);
  color: #0a0a0f; font-family: var(--ff-display); font-size: 0.95rem; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: var(--tr); position: relative; overflow: hidden;
}
.gen-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(245,200,66,0.32); }
.gen-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.gen-spinner {
  width: 18px; height: 18px; border: 2.5px solid rgba(0,0,0,0.2);
  border-top-color: #0a0a0f; border-radius: 50%;
  animation: spin 0.7s linear infinite; display: none;
}
.gen-btn.loading .gen-spinner { display: block; }
.gen-btn.loading .gen-label { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Output */
.output-wrap {
  margin-top: 24px; border: 1px solid var(--border);
  border-radius: var(--r2); overflow: hidden; display: none;
  animation: fadeUp 0.4s ease both;
}
.output-wrap.show { display: block; }
@keyframes fadeUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }

.output-topbar {
  background: var(--surface2); padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--border);
}
.output-info { display: flex; align-items: center; gap: 16px; }
.output-title-label { font-size: 0.72rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.output-stats { display: flex; gap: 12px; }
.output-stat { font-size: 0.72rem; color: var(--text3); font-family: var(--ff-mono); }
.output-stat span { color: var(--teal); }

.output-actions { display: flex; gap: 8px; }
.icon-btn {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text2); width: 32px; height: 32px; border-radius: 8px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; transition: var(--tr);
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.icon-btn.ok { border-color: var(--teal); color: var(--teal); }

.lyrics-output {
  padding: 28px; font-family: var(--ff-mono); font-size: 0.9rem;
  line-height: 2; color: var(--text); min-height: 220px;
  white-space: pre-wrap; word-break: break-word;
}
.lyr-section-tag {
  display: block; color: var(--gold); font-size: 0.68rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  font-weight: 700; margin: 14px 0 4px;
}
.lyr-section-tag:first-child { margin-top: 0; }
.lyr-cursor {
  display: inline-block; width: 2px; height: 1em;
  background: var(--gold); vertical-align: text-bottom;
  animation: blink-cur 0.9s step-end infinite; margin-left: 1px;
}
@keyframes blink-cur { 0%,100%{opacity:1;} 50%{opacity:0;} }
.lyr-placeholder {
  color: var(--text3); font-family: var(--ff-body); font-size: 0.9rem;
  text-align: center; padding: 40px 0;
}

.output-bottombar {
  background: var(--surface2); padding: 13px 20px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.genre-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(245,200,66,0.08); border: 1px solid rgba(245,200,66,0.2);
  color: var(--gold); padding: 4px 12px; border-radius: 50px;
  font-size: 0.72rem; font-weight: 700;
}
.dl-btn {
  background: none; border: 1px solid var(--border); color: var(--text2);
  padding: 5px 14px; border-radius: 8px; cursor: pointer;
  font-family: var(--ff-body); font-size: 0.75rem; font-weight: 600;
  transition: var(--tr); display: flex; align-items: center; gap: 6px;
}
.dl-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ===========================================
   SECTION COMMON
=========================================== */
.section-head { text-align: center; margin-bottom: 44px; }
.section-chip {
  display: inline-block; padding: 4px 14px;
  border-radius: 50px; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px;
}
.chip-gold { background: rgba(245,200,66,0.1); border: 1px solid rgba(245,200,66,0.25); color: var(--gold); }
.chip-rose { background: rgba(232,84,122,0.1); border: 1px solid rgba(232,84,122,0.25); color: var(--rose); }
.chip-teal { background: rgba(46,232,192,0.1); border: 1px solid rgba(46,232,192,0.25); color: var(--teal); }
.chip-purple { background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.25); color: var(--purple); }

.section-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 900; margin-bottom: 12px; }
.section-desc { color: var(--text2); font-size: 0.97rem; max-width: 500px; margin: 0 auto; }

/* ===========================================
   YOUTUBE VIDEOS
=========================================== */
.videos-section { padding: 64px 0; }

.video-filters {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px;
}
.vf-btn {
  background: var(--surface); border: 1.5px solid var(--border);
  color: var(--text2); padding: 7px 18px; border-radius: 50px;
  font-family: var(--ff-body); font-size: 0.78rem; font-weight: 700;
  cursor: pointer; transition: var(--tr); letter-spacing: 0.03em;
}
.vf-btn:hover, .vf-btn.active {
  background: rgba(232,84,122,0.08); border-color: var(--rose); color: var(--rose);
}

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

.video-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r2); overflow: hidden; transition: var(--tr);
  cursor: pointer;
}
.video-card:hover { border-color: rgba(232,84,122,0.3); transform: translateY(-4px); box-shadow: var(--sh2); }

.vc-thumb {
  position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--surface2);
}
.vc-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.video-card:hover .vc-thumb img { transform: scale(1.05); }

.vc-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--tr);
}
.video-card:hover .vc-overlay { opacity: 1; }
.vc-play {
  width: 52px; height: 52px; background: rgba(255,255,255,0.92);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #0a0a0f; font-size: 1.1rem;
  transform: scale(0.8); transition: transform 0.3s;
}
.video-card:hover .vc-play { transform: scale(1); }

.vc-badges {
  position: absolute; top: 8px; left: 8px; display: flex; gap: 5px;
}
.vc-badge {
  font-size: 0.62rem; font-weight: 700; padding: 2px 8px; border-radius: 50px;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.badge-new { background: #22c55e; color: #fff; }
.badge-ai  { background: var(--purple); color: #fff; }
.badge-hot { background: var(--rose); color: #fff; }

.vc-dur {
  position: absolute; bottom: 7px; right: 8px;
  background: rgba(0,0,0,0.85); color: #fff; font-size: 0.7rem;
  padding: 2px 7px; border-radius: 4px; font-family: var(--ff-mono);
}

.vc-info { padding: 15px 16px; }
.vc-title {
  font-size: 0.88rem; font-weight: 700; line-height: 1.4; margin-bottom: 7px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-family: var(--ff-body);
}
.vc-channel { font-size: 0.76rem; color: var(--teal); font-weight: 600; margin-bottom: 7px; }
.vc-meta { display: flex; gap: 12px; }
.vc-meta span { font-size: 0.72rem; color: var(--text3); display: flex; align-items: center; gap: 4px; }

/* Video Modal */
.vid-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92); display: none;
  align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(12px);
}
.vid-modal.open { display: flex; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

.vid-modal-box {
  width: 100%; max-width: 900px;
  background: var(--surface); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r2); overflow: hidden;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from{transform:translateY(30px);opacity:0} to{transform:translateY(0);opacity:1} }

.vid-modal-top {
  padding: 14px 18px; display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid var(--border);
}
.vid-modal-title { font-size: 0.9rem; font-weight: 700; }
.vid-modal-close {
  background: none; border: none; color: var(--text2); font-size: 1.1rem;
  cursor: pointer; width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; transition: var(--tr);
}
.vid-modal-close:hover { background: var(--surface2); color: var(--rose); }
.vid-iframe-wrap { position: relative; aspect-ratio: 16/9; }
.vid-iframe-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.vid-modal-bot {
  padding: 14px 18px; display: flex; align-items: center;
  justify-content: space-between; border-top: 1px solid var(--border);
}
.vid-channel-tag { font-size: 0.78rem; color: var(--teal); font-weight: 600; }
.vid-yt-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: #ff0000; color: #fff; padding: 6px 14px; border-radius: 8px;
  font-size: 0.75rem; font-weight: 700;
}

/* ===========================================
   BLOG POSTS
=========================================== */
.blog-section { padding: 64px 0; }

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

.post-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r2); overflow: hidden; transition: var(--tr);
}
.post-card:hover {
  border-color: rgba(139,92,246,0.3); transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(139,92,246,0.1);
}

.pc-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--surface2); }
.pc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post-card:hover .pc-thumb img { transform: scale(1.05); }

.pc-body { padding: 18px 18px 20px; }
.pc-cat {
  font-size: 0.68rem; color: var(--purple); text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 700; margin-bottom: 7px;
}
.pc-title {
  font-size: 0.95rem; font-weight: 700; line-height: 1.4; margin-bottom: 9px;
  font-family: var(--ff-body);
}
.pc-title a { color: var(--text); }
.pc-title a:hover { color: var(--gold); }
.pc-excerpt { font-size: 0.82rem; color: var(--text2); line-height: 1.65; margin-bottom: 14px; }
.pc-footer { display: flex; align-items: center; justify-content: space-between; }
.pc-date { font-size: 0.72rem; color: var(--text3); font-family: var(--ff-mono); }
.pc-read { font-size: 0.72rem; color: var(--gold); font-weight: 700; display: flex; align-items: center; gap: 4px; }
.pc-read:hover { color: var(--rose); }

/* ===========================================
   SINGLE POST / PAGE
=========================================== */
.content-wrap { display: grid; grid-template-columns: 1fr 310px; gap: 40px; padding: 48px 0 80px; align-items: start; }

.article-header { padding: 48px 0 28px; }
.art-cat { font-size: 0.72rem; color: var(--rose); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 12px; }
.art-cat a { color: inherit; }
.art-title { font-size: clamp(1.7rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 14px; }
.art-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 0.8rem; color: var(--text3); }
.art-meta span { display: flex; align-items: center; gap: 5px; }
.art-thumb { border-radius: var(--r2); overflow: hidden; margin-bottom: 36px; aspect-ratio: 16/7; }
.art-thumb img { width: 100%; height: 100%; object-fit: cover; }

.art-content { font-size: 1rem; line-height: 1.85; color: rgba(236,233,248,0.88); }
.art-content h2 { font-size: 1.6rem; margin: 36px 0 14px; padding-left: 16px; border-left: 3px solid var(--gold); }
.art-content h3 { font-size: 1.2rem; margin: 28px 0 10px; color: var(--text); }
.art-content p { margin-bottom: 18px; }
.art-content ul, .art-content ol { padding-left: 22px; margin-bottom: 18px; }
.art-content li { margin-bottom: 7px; }
.art-content blockquote { margin: 28px 0; padding: 18px 22px; background: rgba(245,200,66,0.05); border-left: 3px solid var(--gold); border-radius: 0 var(--r) var(--r) 0; font-style: italic; color: var(--text2); }
.art-content a { color: var(--gold); border-bottom: 1px solid rgba(245,200,66,0.3); }
.art-content a:hover { border-bottom-color: var(--gold); }
.art-content img { border-radius: var(--r); margin: 18px 0; }
.art-content code { background: var(--surface2); padding: 2px 7px; border-radius: 5px; font-family: var(--ff-mono); font-size: 0.88em; color: var(--teal); }
.art-content pre { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--r); padding: 18px; overflow-x: auto; margin-bottom: 18px; font-family: var(--ff-mono); font-size: 0.86rem; }

.art-tags { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text3); font-size: 0.75rem; padding: 4px 12px; border-radius: 50px;
  transition: var(--tr);
}
.tag-pill:hover { border-color: var(--gold); color: var(--gold); }

/* Sidebar */
.sidebar { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 22px; }

.widget {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r2); overflow: hidden;
}
.widget-head {
  padding: 13px 18px; border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.widget-title { font-size: 0.72rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }
.widget-body { padding: 16px 18px; }

.trending-list { display: flex; flex-direction: column; gap: 2px; }
.trending-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.trending-item:last-child { border-bottom: none; }
.trending-num { font-family: var(--ff-mono); font-size: 1.1rem; color: rgba(255,255,255,0.08); font-weight: 900; width: 22px; flex-shrink: 0; }
.trending-info .t-title { font-size: 0.82rem; font-weight: 600; line-height: 1.3; margin-bottom: 3px; }
.trending-info .t-meta { font-size: 0.7rem; color: var(--text3); }

/* ===========================================
   FAQ
=========================================== */
.faq-section { padding: 64px 0; border-top: 1px solid var(--border); }

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r2); overflow: hidden; }
.faq-q {
  width: 100%; background: none; border: none; color: var(--text);
  text-align: left; padding: 18px 22px;
  font-family: var(--ff-body); font-size: 0.93rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  transition: var(--tr);
}
.faq-q:hover { background: var(--surface2); }
.faq-q.open { color: var(--gold); }
.faq-chev { font-size: 0.72rem; color: var(--text3); transition: transform 0.25s; flex-shrink: 0; }
.faq-q.open .faq-chev { transform: rotate(180deg); color: var(--gold); }
.faq-a {
  max-height: 0; overflow: hidden; padding: 0 22px;
  font-size: 0.88rem; color: var(--text2); line-height: 1.75;
  transition: max-height 0.35s ease, padding 0.25s;
  background: var(--surface2);
}
.faq-a.open { max-height: 400px; padding: 16px 22px 20px; }

/* ===========================================
   REVIEWS
=========================================== */
.reviews-section { padding: 64px 0; border-top: 1px solid var(--border); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.review-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 20px; transition: var(--tr);
}
.review-card:hover { border-color: rgba(245,200,66,0.2); }
.rv-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.rv-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface2); flex-shrink: 0; }
.rv-name { font-size: 0.87rem; font-weight: 700; }
.rv-role { font-size: 0.72rem; color: var(--text3); }
.rv-stars { color: var(--gold); font-size: 0.82rem; margin-bottom: 8px; }
.rv-text { font-size: 0.85rem; color: var(--text2); line-height: 1.7; }
.rv-time { font-size: 0.7rem; color: var(--text3); margin-top: 10px; font-family: var(--ff-mono); }

/* ===========================================
   ARTICLE CONTENT (SEO blocks)
=========================================== */
.seo-section { padding: 64px 0; border-top: 1px solid var(--border); }
.seo-content h2 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); margin-bottom: 12px; }
.seo-content h3 { font-size: 1.1rem; margin: 26px 0 9px; color: var(--text); }
.seo-content p { font-size: 0.93rem; color: rgba(236,233,248,0.75); line-height: 1.85; margin-bottom: 14px; }
.seo-content ul { padding-left: 20px; margin-bottom: 14px; }
.seo-content li { font-size: 0.91rem; color: rgba(236,233,248,0.75); line-height: 1.8; margin-bottom: 5px; }
.seo-content li strong { color: var(--gold); }

/* Genre detail cards */
.genre-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 28px 0; }
.gc-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px 14px; }
.gc-icon { font-size: 1.4rem; margin-bottom: 7px; }
.gc-name { font-size: 0.87rem; font-weight: 800; margin-bottom: 4px; }
.gc-desc { font-size: 0.76rem; color: var(--text3); line-height: 1.55; }

/* ===========================================
   CTA BANNER
=========================================== */
.cta-banner {
  background: linear-gradient(135deg, rgba(245,200,66,0.07), rgba(232,84,122,0.07));
  border: 1px solid rgba(245,200,66,0.18);
  border-radius: var(--r3); padding: 56px 40px; text-align: center;
  margin: 48px 0 64px;
}
.cta-banner h2 { font-size: 1.9rem; margin-bottom: 10px; }
.cta-banner p { color: var(--text2); margin-bottom: 26px; }
.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad-gold); color: #0a0a0f;
  padding: 13px 30px; border-radius: 50px;
  font-family: var(--ff-display); font-size: 0.88rem; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; border: none;
  transition: var(--tr);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(245,200,66,0.3); color: #0a0a0f; opacity: 1; }

/* ===========================================
   ARCHIVE / SEARCH / 404
=========================================== */
.archive-header { padding: 60px 0 32px; text-align: center; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-bottom: 64px; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--r); font-size: 0.85rem;
  background: var(--surface); border: 1px solid var(--border); color: var(--text2);
  transition: var(--tr);
}
.pagination a:hover, .pagination .current {
  background: rgba(245,200,66,0.08); border-color: var(--gold); color: var(--gold);
}

.error-page { text-align: center; padding: 120px 0; }
.error-code {
  font-size: 7rem; font-family: var(--ff-display); font-weight: 900;
  background: var(--grad-gold); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text; line-height: 1;
}

/* ===========================================
   FOOTER
=========================================== */
#site-footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 60px 0 28px; margin-top: auto;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 0.84rem; color: var(--text3); line-height: 1.7; margin-top: 12px; }
.footer-socials { display: flex; gap: 9px; margin-top: 16px; }
.social-btn {
  width: 34px; height: 34px; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: var(--text3); font-size: 0.82rem; transition: var(--tr);
}
.social-btn:hover { border-color: var(--gold); color: var(--gold); }
.footer-col h4 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text3); margin-bottom: 14px; font-weight: 700; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { color: var(--text3); font-size: 0.84rem; transition: var(--tr); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.78rem; color: var(--text3); }
.footer-bottom small { font-size: 0.68rem; color: rgba(92,89,112,0.6); }

/* ===========================================
   SKELETON LOADER
=========================================== */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
  background-size: 200% 100%; animation: skel 1.5s infinite;
  border-radius: var(--r);
}
@keyframes skel { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ===========================================
   ANIMATIONS
=========================================== */
.fade-in-up { animation: fadeUp 0.55s ease both; }
.video-card:nth-child(2) { animation-delay: 0.08s; }
.video-card:nth-child(3) { animation-delay: 0.16s; }
.video-card:nth-child(4) { animation-delay: 0.22s; }
.video-card:nth-child(5) { animation-delay: 0.28s; }
.video-card:nth-child(6) { animation-delay: 0.34s; }

/* ===========================================
   RESPONSIVE
=========================================== */
@media (max-width: 1024px) {
  .videos-grid, .posts-grid, .reviews-grid, .archive-grid { grid-template-columns: repeat(2,1fr); }
  .genre-grid { grid-template-columns: repeat(4,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .genre-cards { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 700px) {
  #main-nav { display: none; }
  #main-nav.open {
    display: block; position: absolute; top: 66px; left: 0; right: 0;
    background: rgba(10,10,15,0.98); padding: 16px 24px;
    border-bottom: 1px solid var(--border); z-index: 200;
  }
  #main-nav.open ul { flex-direction: column; gap: 4px; }
  .mobile-toggle { display: flex; align-items: center; }
  .search-form { display: none; }
  .videos-grid, .posts-grid, .reviews-grid, .archive-grid { grid-template-columns: 1fr; }
  .genre-grid { grid-template-columns: repeat(4,1fr); }
  .options-row { grid-template-columns: 1fr; }
  .tool-header, .tool-body { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .genre-cards { grid-template-columns: repeat(2,1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .genre-grid { grid-template-columns: repeat(2,1fr); }
  .hero-title { font-size: 2rem; }
  .video-filters { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
}
