/* ==========================================================================
   CYBERSHIELD (CYBER) - Modern Japanese CyberSecurity & Tech Magazine Theme
   Tailored for FastRoute Engine with Maximum PageSpeed (95-100)
   Palette: Electric Cyber Purple (#7C43FF), Cyber Neon Lime (#D4E123), & Deep Obsidian (#06040B)
   ========================================================================== */

:root {
  --primary: #7c43ff;
  --primary-hover: #6929f0;
  --primary-light: rgba(124, 67, 255, 0.12);
  --primary-glow: rgba(124, 67, 255, 0.35);

  --accent: #D4E123;
  --accent-hover: #b5c218;
  --accent-light: rgba(212, 225, 35, 0.12);
  --accent-glow: rgba(212, 225, 35, 0.3);

  --bg-page: #06040b;
  --bg-card: #0e0b15;
  --bg-card-hover: #151122;
  --bg-alt: #130f1e;
  --bg-input: #171324;

  --text-main: #ebebed;
  --text-dark: #ffffff;
  --text-muted: #919095;
  --text-light: #6a6970;

  --border: #231f2f;
  --border-light: #2d283c;
  --border-accent: rgba(124, 67, 255, 0.35);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 16px 38px rgba(0, 0, 0, 0.7);
  --shadow-cyber: 0 0 25px rgba(124, 67, 255, 0.22);

  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --container-max: 1220px;
  --transition: 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-page: #f8f9fc;
  --bg-card: #ffffff;
  --bg-card-hover: #fcfcff;
  --bg-alt: #f1f3f9;
  --bg-input: #f1f3f9;

  --text-main: #2d3748;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --border: #e2e8f0;
  --border-light: #cbd5e1;
  --border-accent: rgba(124, 67, 255, 0.4);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.1);
  --shadow-cyber: 0 6px 20px rgba(124, 67, 255, 0.15);
}

/* Base Reset & Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
  position: relative;
}

/* Subtle Cyber Gradient Background Mesh */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 600px;
  background: radial-gradient(circle at 50% 0%, rgba(124, 67, 255, 0.14) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

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

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  position: relative;
  z-index: 1;
}

/* Header & Navigation */
.site-header {
  background-color: rgba(6, 4, 11, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all var(--transition);
}

[data-theme="light"] .site-header {
  background-color: rgba(255, 255, 255, 0.9);
}

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

/* Brand Logo with Cyber Glow */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon-box {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary) 0%, #4c1d95 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 0 16px var(--primary-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  line-height: 1.15;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-name .cyber-badge {
  font-size: 0.68rem;
  background: var(--accent-light);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 800;
  border: 1px solid var(--accent);
  letter-spacing: 0.05em;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  position: relative;
  transition: all var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-dark);
  background-color: var(--bg-alt);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  transition: all var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 50%;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search input {
  padding: 8px 36px 8px 14px;
  font-size: 0.88rem;
  background-color: var(--bg-input);
  color: var(--text-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  width: 165px;
  transition: all var(--transition);
  outline: none;
}

.header-search input:focus {
  width: 215px;
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.header-search button {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
}

.header-search button:hover {
  color: var(--primary);
}

.cyber-btn-header {
  padding: 7px 16px;
  background: linear-gradient(135deg, var(--primary) 0%, #581c87 100%);
  color: #ffffff;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 14px var(--primary-glow);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}

.cyber-btn-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(124, 67, 255, 0.6);
}

.theme-toggle-btn, .mobile-menu-btn {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.theme-toggle-btn:hover, .mobile-menu-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.mobile-menu-btn {
  display: none;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px 24px;
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-nav-drawer .nav-list {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.mobile-nav-drawer .nav-link {
  width: 100%;
}

/* Layout Grid */
.main-wrapper {
  padding-top: 30px;
  padding-bottom: 60px;
}

.layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.main-content-column {
  min-width: 0;
}

.sidebar-column {
  min-width: 0;
}

/* Hero Lead Card (Cyber Highlight) */
.cyber-hero-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 35px;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}

.cyber-hero-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-cyber);
  transform: translateY(-2px);
}

.cyber-hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
}

.cyber-hero-media {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.cyber-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cyber-hero-card:hover .cyber-hero-media img {
  transform: scale(1.04);
}

.cyber-hero-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(6, 4, 11, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.04em;
}

.cyber-hero-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.cyber-hero-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cyber-hero-title {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.4;
  margin: 12px 0 16px;
  color: var(--text-dark);
}

.cyber-hero-title a:hover {
  color: var(--primary);
}

.cyber-hero-snippet {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cyber-hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title svg {
  color: var(--primary);
}

.section-pill {
  font-size: 0.72rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  border: 1px solid rgba(124, 67, 255, 0.3);
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.article-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.article-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-cyber);
  transform: translateY(-2px);
}

.card-media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background-color: var(--bg-alt);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.category-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #c4a8ff;
  background-color: rgba(124, 67, 255, 0.12);
  border: 1px solid rgba(124, 67, 255, 0.35);
  padding: 2px 9px;
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.category-tag:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.post-title {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-dark);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-title:hover {
  color: var(--primary);
}

.post-snippet {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-footer-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  transition: all var(--transition);
}

.read-more-btn:hover {
  color: #ffffff;
  transform: translateX(3px);
}

/* Sidebar Widgets */
.sidebar-widget {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-title svg {
  color: var(--primary);
}

.sidebar-post-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-post-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-post-thumb {
  width: 72px;
  height: 52px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  flex-shrink: 0;
  background-color: var(--bg-alt);
}

.sidebar-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-post-info {
  flex: 1;
  min-width: 0;
}

.sidebar-post-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-post-title:hover {
  color: var(--primary);
}

.sidebar-post-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.sidebar-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar-tag-link {
  font-size: 0.8rem;
  background-color: var(--bg-alt);
  color: var(--text-main);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.sidebar-tag-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-light);
}

/* ==========================================================================
   SINGLE ARTICLE / AIPOST STYLES (NEAT JAPANESE EDITORIAL)
   ========================================================================== */
.single-post-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 34px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 35px;
}

.single-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.single-breadcrumb a:hover {
  color: var(--primary);
}

.single-title {
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.single-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-bottom: 20px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.single-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.single-featured-image {
  margin: 0 0 30px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.single-featured-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

/* Cyber Table of Contents (目次) Box */
.toc-box {
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 28px 0 36px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.toc-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-title .toc-icon {
  color: var(--accent);
}

.toc-toggle {
  background: none;
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: all var(--transition);
}

.toc-list.collapsed {
  display: none;
}

.toc-item {
  font-size: 0.92rem;
  line-height: 1.5;
}

.toc-item.level-2 {
  font-weight: 700;
  color: var(--text-main);
  padding-left: 6px;
}

.toc-item.level-3 {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding-left: 24px;
  position: relative;
}

.toc-item.level-3::before {
  content: "—";
  position: absolute;
  left: 8px;
  color: var(--border-light);
}

.toc-item a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Article Body Typography (Clean Japanese Layout) */
.entry-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-main);
  word-break: break-word;
}

.entry-content p {
  margin-bottom: 1.8rem;
  text-align: justify;
}

.entry-content h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 2.4rem 0 1.2rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.entry-content h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.25em;
  background-color: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  border-radius: 2px;
}

.entry-content h3 {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 1.9rem 0 0.9rem;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
}

.entry-content blockquote {
  background-color: var(--bg-alt);
  border-left: 4px solid var(--primary);
  padding: 16px 22px;
  border-radius: var(--radius-xs);
  margin: 2rem 0;
  font-size: 0.96rem;
  color: var(--text-main);
  font-style: normal;
}

.entry-content ul, .entry-content ol {
  margin: 1.5rem 0 1.8rem 1.4rem;
}

.entry-content ul {
  list-style: disc;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content li {
  margin-bottom: 0.6rem;
  padding-left: 4px;
}

/* In-Text Internal Links Styling */
.entry-content a {
  color: #c4a8ff;
  text-decoration: underline;
  text-decoration-color: rgba(196, 168, 255, 0.5);
  text-underline-offset: 4px;
  font-weight: 600;
  transition: all var(--transition);
}

.entry-content a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
  text-shadow: 0 0 8px rgba(212, 225, 35, 0.4);
}

[data-theme="light"] .entry-content a {
  color: #6929f0;
  text-decoration-color: rgba(105, 41, 240, 0.4);
}

[data-theme="light"] .entry-content a:hover {
  color: #4c1d95;
  text-decoration-color: #4c1d95;
}

/* In-text Figure Image & Gallery */
.article-image-box, .article-figure {
  margin: 2.4rem 0;
  text-align: center;
}

.article-image-box img, .article-figure img {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.article-image-box img:hover, .article-figure img:hover {
  transform: scale(1.02);
  border-color: var(--border-accent);
}

.article-image-box figcaption, .article-figure figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* TikTok Interactive Player Card */
.tiktok-player-wrapper {
  max-width: 520px;
  margin: 28px auto 35px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-card);
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow-cyber);
  text-align: center;
}

.tiktok-poster-card {
  position: relative;
  width: 100%;
  padding-bottom: 125%;
  height: 0;
  overflow: hidden;
  background: #000000;
  cursor: pointer;
}

.tiktok-poster-card:hover .play-btn-circle {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 30px rgba(124, 67, 255, 0.9);
}

.play-btn-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: rgba(124, 67, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(124, 67, 255, 0.7);
  transition: all 0.25s ease;
  pointer-events: none;
}

/* Media / TikTok Embed Card */
.cyber-embed-card {
  background: linear-gradient(135deg, rgba(124, 67, 255, 0.08) 0%, rgba(6, 4, 11, 0.5) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin: 2.2rem 0;
  box-shadow: var(--shadow-cyber);
}

.cyber-embed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

/* Author Bio Box */
.author-bio-box {
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-top: 40px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.author-bio-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
  flex-shrink: 0;
}

.author-bio-content {
  flex: 1;
}

.author-bio-role {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.author-bio-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 3px 0 6px;
}

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

/* Footer Section */
.site-footer {
  background-color: #040207;
  border-top: 1px solid var(--border);
  padding: 50px 0 30px;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 0.88rem;
  position: relative;
}

[data-theme="light"] .site-footer {
  background-color: #f1f3f9;
}

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

.footer-brand-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.footer-desc {
  line-height: 1.7;
  margin-bottom: 18px;
  max-width: 360px;
}

.footer-nav-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-accent);
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-cyber);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: translateY(-3px);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
  .sidebar-column {
    margin-top: 20px;
  }
  .cyber-hero-inner {
    grid-template-columns: 1fr;
  }
  .cyber-hero-media {
    min-height: 240px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .single-title {
    font-size: 1.55rem;
  }
  .single-post-wrapper {
    padding: 22px 18px;
  }
  .author-bio-box {
    flex-direction: column;
    text-align: center;
  }
}
