/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0f1a;
  --bg2: #151828;
  --bg3: #1c2035;
  --card: #1a1d2e;
  --card-hover: #212540;
  --accent: #7c6fdb;
  --accent2: #ff6b6b;
  --accent3: #43e97b;
  --text: #e2e8f0;
  --text-muted: #8892a4;
  --border: #2a2f4a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-hover: 0 8px 32px rgba(124,111,219,0.25);
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== HEADER ===== */
.site-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  flex-shrink: 0;
  display: inline-block;
  color: var(--text);
}

.logo span { color: var(--text); }
.logo-img { height: 28px; width: auto; display: block; object-fit: contain; }


.main-nav ul {
  display: flex;
  gap: 4px;
}

.main-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  background: var(--bg3);
}

.main-nav a.lang-switch {
  font-weight: 700;
  letter-spacing: .05em;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 5px 10px;
}
.main-nav a.lang-switch:hover {
  background: var(--accent);
  color: #fff;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-bg {
  position: absolute;
  inset: -30px;
  background-size: cover;
  background-position: center;
  filter: blur(12px);
  transition: opacity 0.5s ease;
  will-change: opacity, transform;
  animation: ken-burns 8s ease-in-out infinite alternate;
}

@keyframes ken-burns {
  0%   { transform: scale(1.08); }
  100% { transform: scale(1.16); }
}

.slider-bg.fading { opacity: 0; }

.slider-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(13,15,26,0.5) 0%, rgba(13,15,26,0.15) 40%, rgba(13,15,26,0.7) 85%, #0d0f1a 100%),
    linear-gradient(135deg, rgba(26,16,64,0.6) 0%, transparent 60%);
  z-index: 1;
}

.slide-content {
  position: relative;
  top: -30px;
  z-index: 2;
  text-align: center;
  max-width: 540px;
  padding: 0 24px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.slide-content.fade-out {
  opacity: 0;
  transform: translateY(12px);
}

.slide-category {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: rgba(124,111,219,0.18);
  border: 1px solid rgba(124,111,219,0.45);
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #c4bbf5;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 13px;
}

.slide-title {
  font-size: clamp(1.35rem, 3.375vw, 2.25rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6);
}

.slide-desc {
  font-size: 0.84rem;
  color: rgba(226,232,240,0.78);
  margin-bottom: 24px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 82px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slider-dot.active {
  background: var(--accent);
  width: 28px;
}

.slider-dot:hover { background: rgba(255,255,255,0.6); }

/* Arrows */
.slider-arrow {
  position: absolute;
  top: 44%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  backdrop-filter: blur(6px);
}

.slider-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.08);
}

.slider-prev { left: 24px; }
.slider-next { right: 24px; }

@media (max-width: 600px) {
  .hero-slider { height: 345px; }
  .slider-arrow { display: none; }
  .slider-dots { display: none; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #9488e8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124,111,219,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
.section {
  padding: 60px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-float {
  margin-top: -100px;
  position: relative;
  z-index: 10;
  padding-top: 0;
}

.section-float .game-card {
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

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

.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 24px;
  background: var(--accent);
  border-radius: 2px;
}

.section-link {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color var(--transition);
}

.section-link:hover { color: #9488e8; }

/* ===== GAME GRID ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: stretch;
}

.games-grid > * {
  min-width: 0;
}

.games-grid > [data-category] {
  height: 100%;
}

@media (min-width: 480px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); }
}

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

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

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

/* ===== GAME CARD ===== */
.game-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
}

.game-card:hover {
  background: var(--card-hover);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.game-card-thumb {
  position: relative;
  aspect-ratio: 16/10;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--bg3);
}

.game-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-card:hover .game-card-thumb img {
  transform: scale(1.05);
}

.game-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity var(--transition);
}

.game-card:hover .game-card-play { opacity: 1; }

.play-icon {
  width: 52px;
  height: 52px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.badge-new {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent3);
  color: #0d1a1a;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-featured {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--accent2);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}

.game-card-body {
  padding: 10px 12px 12px;
  min-height: 62px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card-cat {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== CATEGORIES SECTION ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

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

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

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
  transition: all var(--transition);
  text-align: center;
}

.category-card:hover {
  background: var(--card-hover);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.category-icon { font-size: 2rem; }

.category-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
}

.category-card:hover .category-name { color: var(--text); }

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto 28px;
  padding: 24px 20px 0;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ===== GAME PAGE ===== */
.game-page-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
}

.game-page-header { margin-bottom: 20px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--border); }

.game-page-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  margin-bottom: 8px;
}

.game-page-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-badge.cat { background: rgba(124,111,219,0.15); color: var(--accent); }
.meta-badge.mobile { background: rgba(67,233,123,0.12); color: var(--accent3); }

a.meta-badge {
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}
a.meta-badge:hover { opacity: 0.75; transform: translateY(-1px); }

.tag-filter-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  margin-bottom: 12px;
  background: rgba(124,111,219,0.1);
  border: 1px solid rgba(124,111,219,0.3);
  border-radius: 10px;
  font-size: 0.9rem;
}
.tag-clear-btn {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  color: inherit;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  transition: background 0.15s;
}
.tag-clear-btn:hover { background: rgba(255,255,255,0.15); }

/* ===== GAME COVER IMAGE ===== */
.game-cover-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(0,0,0,0.3);
}
.game-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== GAME FRAME ===== */
.game-frame-wrap {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 32px;
  position: relative;
}

.game-frame-wrap iframe {
  width: 100%;
  height: 500px;
  border: none;
  display: block;
}

@media (min-width: 768px) {
  .game-frame-wrap iframe { height: 600px; }
}

.fullscreen-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
  transition: background var(--transition);
}

.fullscreen-btn:hover { background: var(--accent); border-color: var(--accent); }

/* ===== GAME INFO ===== */
.game-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .game-info-grid { grid-template-columns: 2fr 1fr; }
}

.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.info-card h2 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #a89ff0;
}

.info-card p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.controls-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.control-key {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== SIMILAR GAMES ===== */
.similar-section { margin-bottom: 48px; }

.similar-section .section-title {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.similar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 480px) {
  .similar-grid { grid-template-columns: repeat(3, 1fr); }
}

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

/* ===== AD PLACEHOLDER ===== */
.ad-slot {
  background: var(--bg2);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 24px 0;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 20px 24px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

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

@media (min-width: 600px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.footer-brand .logo { font-size: 1.3rem; margin-bottom: 12px; }

.footer-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

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

.footer-legal a:hover { color: var(--accent); }

/* ===== LEGAL PAGES ===== */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 20px;
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.legal-date {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--accent);
}

.legal-page p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-page ul {
  list-style: disc;
  padding-left: 24px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

@media (min-width: 600px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.contact-card .icon { font-size: 2.5rem; margin-bottom: 12px; }

.contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-card a { color: var(--accent); }

/* ===== MOBILE NAV ===== */
@media (max-width: 767px) {
  .hamburger { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    z-index: 99;
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .main-nav a { display: block; padding: 10px 14px; }
}

/* ===== UTILITY ===== */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }

/* ===== PAGE HERO (list page) ===== */
.page-hero {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 40px 20px;
  text-align: center;
}

.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 900; margin-bottom: 8px; }
.page-hero p { color: var(--text-muted); font-size: 1rem; }

/* ===== PROSE CARD (legal/static pages) ===== */
.prose-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  max-width: 820px;
  margin: 0 auto;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
}

.prose-card h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
  margin-top: 28px;
  margin-bottom: 10px;
}

.prose-card p { margin-bottom: 14px; }

.prose-card ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 14px;
}

.prose-card a { color: var(--accent); text-decoration: underline; }

@media (max-width: 600px) {
  .prose-card { padding: 24px 20px; }
}

/* ===== BUTTON SECONDARY ===== */
.btn-secondary {
  background: var(--bg3);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--card-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ===== ADBLOCK MODAL ===== */
.adblock-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.adblock-overlay.visible { display: flex; }

.adblock-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 440px;
  width: 100%;
  padding: 32px 28px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  animation: adblock-in 0.25s ease;
}
@keyframes adblock-in {
  from { opacity:0; transform:translateY(20px) scale(0.97); }
  to   { opacity:1; transform:none; }
}
.adblock-icon   { font-size: 2.8rem; margin-bottom: 12px; }
.adblock-title  { font-size: 1.15rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.adblock-desc   { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }

.adblock-steps  {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
  text-align: left;
}
.adblock-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text);
  padding: 4px 0;
}
.adblock-step-num {
  background: var(--accent);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.adblock-actions { display: flex; gap: 8px; flex-direction: column; }
.adblock-btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}
.adblock-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.adblock-btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}
.adblock-btn-ghost:hover { color: var(--text); border-color: var(--text-muted); }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 32px 0 16px;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition);
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.page-info { margin-left: 12px; font-size: 0.8rem; color: var(--text-muted); }

/* Filter bar — link style (server-side) */
.filter-bar a.filter-btn { text-decoration: none; cursor: pointer; }
.tag-filter-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}
.tag-clear-btn {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
}
.tag-clear-btn:hover { color: var(--accent); }
