/* ==================================================
   MetaPlay Theme v1
   ================================================== */

/* Variables */
:root {
  --bg:#f5f7fb;
  --surface:#ffffff;
  --surface-2:#f8fafc;
  --text:#111827;
  --text-muted:#6b7280;
  --primary:#7c3aed;
  --secondary:#2563eb;
  --border:#e5e7eb;
  --shadow:0 12px 30px rgba(0,0,0,.08);
}

[data-theme="dark"] {
  --bg:#050505;
  --surface:#10131d;
  --surface-2:#181c28;
  --text:#ffffff;
  --text-muted:#a1a1aa;
  --primary:#8b5cf6;
  --secondary:#3b82f6;
  --border:#2b3042;
  --shadow:0 12px 30px rgba(0,0,0,.35);
}

/* Smooth transition only when switching */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition:
    background-color .35s ease,
    color .35s ease,
    border-color .35s ease,
    box-shadow .35s ease,
    transform .35s ease,
    opacity .35s ease !important;
}

/* Global */
html,
body,
.body-wrapper,
.body-innerwrapper,
.site,
#sp-page-builder,
.sp-page-builder,
#sp-main-body {
  background:var(--bg) !important;
  color:var(--text) !important;
}

a {
  color:var(--primary);
}

/* Header */
#sp-header {
  background:rgba(255,255,255,.78) !important;
  border-bottom:1px solid var(--border);
  box-shadow:var(--shadow);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}

[data-theme="dark"] #sp-header {
  background:rgba(16,19,29,.78) !important;
}

#sp-header a,
.sp-megamenu-parent > li > a {
  color:var(--text) !important;
}

.sp-megamenu-parent > li.active > a,
.sp-megamenu-parent > li:hover > a {
  color:var(--primary) !important;
}

/* Cards */
.article,
.article-list .article,
.sppb-addon,
.mp-card {
  background:var(--surface) !important;
  color:var(--text) !important;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  border-radius:18px;
}

/* Utilities */
.mp-section {
  background:var(--bg) !important;
  color:var(--text) !important;
}

.mp-surface {
  background:var(--surface) !important;
  color:var(--text) !important;
}

.mp-surface-2 {
  background:var(--surface-2) !important;
  color:var(--text) !important;
}

.mp-muted {
  color:var(--text-muted) !important;
}

.btn-primary,
.mp-btn-primary {
  background:var(--primary) !important;
  color:#fff !important;
  border:none !important;
}

/* Premium Theme Toggle */
.theme-toggle {
  position:relative;
  width:76px;
  height:40px;
  padding:0;
  border-radius:999px;
  border:1px solid var(--border);
  background:linear-gradient(135deg, var(--surface), var(--surface-2));
  color:var(--text);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:var(--shadow);
  overflow:hidden;
  isolation:isolate;
}

.theme-toggle::before {
  content:"";
  position:absolute;
  inset:4px auto 4px 4px;
  width:30px;
  height:30px;
  border-radius:999px;
  background:linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow:
    0 8px 18px rgba(124,58,237,.35),
    inset 0 1px 0 rgba(255,255,255,.35);
  transform:translateX(0);
  transition:transform .35s cubic-bezier(.22,1,.36,1);
  z-index:1;
}

[data-theme="dark"] .theme-toggle::before {
  transform:translateX(36px);
}

.theme-toggle::after {
  content:"";
  position:absolute;
  inset:-40%;
  background:radial-gradient(circle, rgba(139,92,246,.22), transparent 45%);
  opacity:0;
  transform:scale(.8);
  transition:opacity .35s ease, transform .35s ease;
  z-index:0;
}

.theme-toggle:hover::after {
  opacity:1;
  transform:scale(1);
}

.theme-toggle:hover {
  border-color:var(--primary);
  transform:translateY(-1px);
}

.theme-toggle:active {
  transform:scale(.96);
}

.theme-toggle .theme-icon {
  position:relative;
  z-index:2;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 10px;
  font-size:15px;
  line-height:1;
  pointer-events:none;
}

.theme-toggle .sun,
.theme-toggle .moon {
  width:20px;
  height:20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.18));
}

/* ==================================================
   MetaPlay Components v1
   ================================================== */

/* Layout helpers */
.mp-container {
  width:min(1320px, calc(100% - 32px));
  margin-inline:auto;
}

.mp-section {
  padding:64px 0;
}

.mp-section-sm {
  padding:36px 0;
}

.mp-grid {
  display:grid;
  gap:24px;
}

.mp-grid-2 {
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.mp-grid-3 {
  grid-template-columns:repeat(3, minmax(0, 1fr));
}

.mp-grid-4 {
  grid-template-columns:repeat(4, minmax(0, 1fr));
}

/* Section title */
.mp-section-head {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:24px;
}

.mp-kicker {
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--primary);
  font-size:13px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.mp-title {
  margin:0;
  color:var(--text);
  font-size:clamp(28px, 4vw, 48px);
  line-height:1.02;
  font-weight:900;
  letter-spacing:-.04em;
}

.mp-subtitle {
  margin:10px 0 0;
  color:var(--text-muted);
  font-size:16px;
  line-height:1.7;
}

/* Buttons */
.mp-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:44px;
  padding:0 18px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--surface);
  color:var(--text) !important;
  font-weight:800;
  text-decoration:none !important;
  box-shadow:var(--shadow);
  transition:
    transform .25s ease,
    border-color .25s ease,
    background-color .25s ease,
    color .25s ease;
}

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

.mp-btn-primary {
  background:linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  color:#fff !important;
  border-color:transparent !important;
}

.mp-btn-ghost {
  background:transparent !important;
  box-shadow:none;
}

/* Badges */
.mp-badge {
  display:inline-flex;
  align-items:center;
  width:max-content;
  min-height:26px;
  padding:0 10px;
  border-radius:999px;
  background:rgba(124,58,237,.12);
  color:var(--primary);
  border:1px solid rgba(124,58,237,.22);
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

[data-theme="dark"] .mp-badge {
  background:rgba(139,92,246,.16);
  border-color:rgba(139,92,246,.28);
}

/* Base card */
.mp-card {
  position:relative;
  overflow:hidden;
  background:var(--surface) !important;
  color:var(--text) !important;
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow:var(--shadow);
}

.mp-card-hover {
  transition:
    transform .28s ease,
    border-color .28s ease,
    box-shadow .28s ease;
}

.mp-card-hover:hover {
  transform:translateY(-6px);
  border-color:rgba(124,58,237,.45);
}

/* Media */
.mp-media {
  position:relative;
  overflow:hidden;
  background:var(--surface-2);
}

.mp-media img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .5s ease;
}

.mp-card-hover:hover .mp-media img {
  transform:scale(1.05);
}

/* News Card */
.mp-news-card .mp-media {
  aspect-ratio:16 / 9;
}

.mp-card-body {
  padding:20px;
}

.mp-card-title {
  margin:10px 0 8px;
  color:var(--text);
  font-size:20px;
  line-height:1.15;
  font-weight:900;
  letter-spacing:-.03em;
}

.mp-card-text {
  color:var(--text-muted);
  font-size:14px;
  line-height:1.65;
}

.mp-meta {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  color:var(--text-muted);
  font-size:13px;
  margin-top:14px;
}

/* Hero */
.mp-hero {
  padding:72px 0 44px;
  background:
    radial-gradient(circle at top left, rgba(124,58,237,.22), transparent 36%),
    radial-gradient(circle at top right, rgba(37,99,235,.18), transparent 34%),
    var(--bg);
}

.mp-hero-grid {
  display:grid;
  grid-template-columns:1.35fr .65fr;
  gap:24px;
  align-items:stretch;
}

.mp-hero-card {
  min-height:460px;
}

.mp-hero-card .mp-media {
  position:absolute;
  inset:0;
  height:100%;
}

.mp-hero-card .mp-media::after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.18));
}

.mp-hero-content {
  position:relative;
  z-index:2;
  max-width:650px;
  padding:42px;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:end;
}

.mp-hero-title {
  margin:14px 0 12px;
  color:#fff;
  font-size:clamp(36px, 5vw, 68px);
  line-height:.95;
  font-weight:950;
  letter-spacing:-.06em;
}

.mp-hero-text {
  color:rgba(255,255,255,.78);
  font-size:17px;
  line-height:1.7;
}

/* Review score */
.mp-score {
  width:86px;
  height:86px;
  border-radius:24px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, var(--primary), var(--secondary));
  color:#fff;
  font-size:34px;
  font-weight:950;
  letter-spacing:-.06em;
  box-shadow:0 16px 34px rgba(124,58,237,.35);
}

.mp-review-card {
  display:grid;
  grid-template-columns:120px 1fr;
  gap:18px;
  align-items:center;
  padding:18px;
}

.mp-review-card .mp-media {
  width:120px;
  height:120px;
  border-radius:18px;
}

/* Sidebar mini card */
.mp-mini-card {
  display:grid;
  grid-template-columns:88px 1fr;
  gap:14px;
  align-items:center;
  padding:12px;
  border-radius:18px;
}

.mp-mini-card .mp-media {
  width:88px;
  height:68px;
  border-radius:14px;
}

.mp-mini-title {
  margin:0;
  color:var(--text);
  font-size:15px;
  font-weight:900;
  line-height:1.25;
}

/* Responsive */
@media (max-width: 991px) {
  .mp-grid-4,
  .mp-grid-3 {
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .mp-hero-grid {
    grid-template-columns:1fr;
  }

  .mp-hero-card {
    min-height:420px;
  }
}

@media (max-width: 640px) {
  .mp-grid-4,
  .mp-grid-3,
  .mp-grid-2 {
    grid-template-columns:1fr;
  }

  .mp-section {
    padding:44px 0;
  }

  .mp-hero {
    padding:48px 0 32px;
  }

  .mp-hero-content {
    padding:28px;
  }

  .mp-review-card {
    grid-template-columns:1fr;
  }

  .mp-review-card .mp-media {
    width:100%;
    height:auto;
    aspect-ratio:16 / 9;
  }
}

/* ==================================================
   MetaPlay Typography + Cleaner Hero
   ================================================== */

/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Manrope:wght@500;600;700;800&display=swap");

:root {
  --font-body:"Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading:"Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html,
body {
  font-family:var(--font-body) !important;
  letter-spacing:-.01em;
}

h1,h2,h3,h4,h5,h6,
.mp-title,
.mp-card-title,
.mp-hero-title,
.mp-mini-title {
  font-family:var(--font-heading) !important;
  font-weight:800;
  letter-spacing:-.045em;
}

/* Remove background gradient from hero */
.mp-hero {
  background:var(--bg) !important;
}

/* Subtle glow only on hero card */
.mp-hero-card {
  box-shadow:
    0 28px 70px rgba(0,0,0,.18),
    0 0 90px rgba(124,58,237,.12) !important;
}

[data-theme="dark"] .mp-hero-card {
  box-shadow:
    0 34px 80px rgba(0,0,0,.45),
    0 0 100px rgba(139,92,246,.18) !important;
}

/* Slightly cleaner text rhythm */
.mp-hero-text,
.mp-card-text,
.mp-subtitle {
  letter-spacing:-.01em;
}

/* More premium card feel */
.mp-card {
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

/* ==================================================
   MetaPlay Button Fixes
   ================================================== */

.mp-btn,
.mp-btn *,
.theme-toggle,
.theme-toggle * {
  font-family:var(--font-heading) !important;
}

.mp-btn {
  color:var(--text) !important;
}

.mp-btn-primary {
  color:#fff !important;
}

.mp-btn-ghost {
  color:var(--text) !important;
  background:var(--surface) !important;
  border-color:var(--border) !important;
}

.mp-btn-ghost:hover {
  color:#fff !important;
  background:linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  border-color:transparent !important;
}

.mp-hero .mp-btn-ghost {
  color:#fff !important;
  background:rgba(255,255,255,.12) !important;
  border-color:rgba(255,255,255,.22) !important;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

.mp-hero .mp-btn-ghost:hover {
  color:#fff !important;
  background:linear-gradient(135deg, var(--primary), var(--secondary)) !important;
}

/* ==================================================
   MetaPlay Typography v2
   ================================================== */

/* Body */
html,
body{
    font-family:var(--font-body);
    font-size:16px;
    font-weight:400;
    line-height:1.75;
}

/* Navigation */
.sp-megamenu-parent > li > a{
    font-family:var(--font-heading);
    font-weight:600 !important;
    font-size:15px;
    letter-spacing:-0.01em;
}

/* Buttons */
.mp-btn,
button,
.button{
    font-family:var(--font-heading);
    font-weight:600 !important;
    letter-spacing:-0.01em;
}

/* Hero */
.mp-hero-title{
    font-size:clamp(44px,5vw,72px);
    font-weight:700 !important;
    letter-spacing:-0.03em;
    line-height:.95;
}

/* Section Titles */
.mp-title{
    font-size:clamp(34px,4vw,54px);
    font-weight:700 !important;
    letter-spacing:-0.025em;
}

/* Cards */
.mp-card-title{
    font-size:22px;
    font-weight:700 !important;
    letter-spacing:-0.02em;
    line-height:1.2;
}

/* Mini cards */
.mp-mini-title{
    font-size:16px;
    font-weight:700;
    letter-spacing:-0.015em;
}

/* Paragraphs */
.mp-card-text,
.mp-hero-text,
.mp-subtitle{
    font-size:16px;
    line-height:1.8;
    font-weight:400;
}

/* Meta */
.mp-meta{
    font-size:13px;
    font-weight:500;
    color:var(--text-muted);
}

/* Badge */
.mp-badge{
    font-family:var(--font-heading);
    font-weight:700;
    letter-spacing:.08em;
}

/* ==================================================
   MetaPlay Theme Toggle SVG Icons
   ================================================== */

.theme-toggle .theme-icon {
  position:relative;
  z-index:2;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 11px;
  pointer-events:none;
}

.theme-toggle svg {
  width:17px;
  height:17px;
  stroke:currentColor;
  stroke-width:2;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition:
    opacity .28s ease,
    transform .28s ease,
    color .28s ease;
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
  color:var(--text);
  opacity:.72;
}

[data-theme="light"] .theme-toggle .sun-icon {
  color:#fff;
  opacity:1;
  transform:rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .moon-icon {
  opacity:.45;
  transform:scale(.88);
}

[data-theme="dark"] .theme-toggle .moon-icon {
  color:#fff;
  opacity:1;
  transform:rotate(-8deg) scale(1);
}

[data-theme="dark"] .theme-toggle .sun-icon {
  opacity:.45;
  transform:rotate(45deg) scale(.88);
}

/* ==================================================
