@import url('https://fonts.googleapis.com/css2?family=Funnel+Sans:ital,wght@0,300..800;1,300..800&display=swap');

.hero-outro {
  margin: 0 auto clamp(1.5rem, 5vw, 2.5rem);
  max-width: min(70ch, 90%);
  text-align: center;
  color: var(--text-secondary);
}

:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: inherit;
}

html,
body {
  min-height: 100%;
}

body {
  --background: radial-gradient(circle at 20% 10%, rgba(118, 87, 255, 0.28) 0%, transparent 50%), 
                radial-gradient(circle at 80% 90%, rgba(255, 68, 126, 0.24) 0%, transparent 50%), 
                linear-gradient(180deg, #020408 0%, #050812 30%, #060914 60%, #04060c 100%);
  --surface: rgba(12, 18, 34, 0.78);
  --surface-strong: rgba(16, 22, 38, 0.9);
  --outline: rgba(255, 255, 255, 0.08);
  --text-primary: #f7f9ff;
  --text-secondary: #cbd5ff;
  --text-muted: #9aa4c8;
  --banner-bg: rgba(18, 26, 46, 0.85);
  --banner-text: #f7f9ff;
  --accent: #ff3044;
  --accent-hover: #ff5162;
  --tooltip-bg: rgba(8, 12, 24, 0.92);
  --tooltip-text: #f7f9ff;
  --shadow-soft: 0 18px 38px rgba(7, 10, 28, 0.45);
  --shadow-strong: 0 28px 52px rgba(7, 10, 28, 0.6);
  --status-success-bg: rgba(46, 204, 113, 0.18);
  --status-success-border: rgba(46, 204, 113, 0.35);
  --status-success-text: #b6ffd6;
  --status-error-bg: rgba(255, 75, 110, 0.22);
  --status-error-border: rgba(255, 75, 110, 0.45);
  --status-error-text: #ffd2dc;

  margin: 0;
  padding: 0;
  font-family: "Funnel Sans", "Segoe UI", Tahoma, sans-serif;
  background: var(--background);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  transition: background 0.35s ease, color 0.35s ease;
}

body.theme-light {
  color-scheme: light;
  --background: radial-gradient(circle at 20% 15%, rgba(255, 126, 190, 0.22) 0%, transparent 45%), 
                radial-gradient(circle at 85% 85%, rgba(140, 168, 255, 0.26) 0%, transparent 45%), 
                linear-gradient(180deg, #f4f7ff 0%, #eef3ff 40%, #e8eeff 70%, #e0e8ff 100%);
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: rgba(255, 255, 255, 0.98);
  --outline: rgba(9, 20, 50, 0.12);
  --text-primary: #10162a;
  --text-secondary: #394060;
  --text-muted: #5e678c;
  --banner-bg: rgba(255, 255, 255, 0.94);
  --banner-text: #10162a;
  --accent: #ff3044;
  --accent-hover: #e52a3b;
  --tooltip-bg: rgba(16, 22, 38, 0.92);
  --tooltip-text: #ffffff;
  --shadow-soft: 0 18px 38px rgba(31, 34, 53, 0.18);
  --shadow-strong: 0 26px 56px rgba(31, 34, 53, 0.24);
  --status-success-bg: rgba(46, 204, 113, 0.12);
  --status-success-border: rgba(46, 204, 113, 0.25);
  --status-success-text: #1f6f43;
  --status-error-bg: rgba(255, 75, 110, 0.12);
  --status-error-border: rgba(255, 75, 110, 0.28);
  --status-error-text: #c1213b;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link:focus-visible {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6);
  clip: auto;
  z-index: 1000;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.home-page main {
  justify-content: center;
  text-align: center;
}


.top-banner {
  width: 100%;
  max-width: 1100px;
  background: var(--banner-bg);
  border: 1px solid var(--outline);
  border-radius: 14px;
  padding: 0.6rem 1.25rem;
  margin: 1rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  color: var(--banner-text);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  font-size: 0.96rem;
}

.top-banner strong {
  letter-spacing: 0.01em;
}

.banner-button {
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: var(--shadow-soft);
}

.banner-button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.site-header {
  width: 100%;
  max-width: 1200px;
  margin: 1.75rem auto 0;
  padding: 0 1.5rem;
}

.header-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.nav-wrapper {
  order: 1;
  flex: 1;
  display: flex;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x;
}

.nav-wrapper::-webkit-scrollbar {
  display: none;
}

.nav-links {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: linear-gradient(135deg, rgba(16, 23, 38, 0.92), rgba(12, 18, 36, 0.78));
  --nav-shadow: 0 18px 38px rgba(7, 10, 28, 0.45);
  box-shadow: none;
  filter: drop-shadow(var(--nav-shadow));
  backdrop-filter: blur(18px);
  isolation: isolate;
  overflow: hidden;
  white-space: nowrap;
  min-width: max-content;
  --nav-glow-x: 50%;
  --nav-glow-y: 50%;
  --nav-glow-strength: 45%;
  --nav-glow-opacity: 0.32;
  --nav-glow-color-1: hsla(330, 88%, 60%, 0.42);
  --nav-glow-color-2: hsla(255, 82%, 56%, 0.28);
}

.nav-links::before {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--nav-glow-x, 50%) var(--nav-glow-y, 50%),
    var(--nav-glow-color-1, hsla(330, 88%, 60%, 0.42)) 0%,
    var(--nav-glow-color-2, hsla(255, 82%, 56%, 0.28)) var(--nav-glow-strength, 45%),
    transparent calc(var(--nav-glow-strength, 45%) + 24%)
  );
  opacity: var(--nav-glow-opacity, 0.32);
  pointer-events: none;
  filter: saturate(1.35) blur(18px);
  transition: opacity 0.4s ease;
  z-index: 0;
}

.nav-links::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.08), rgba(8, 12, 24, 0.6));
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 0;
}

.nav-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.005em;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-pill:hover,
.nav-pill:focus-visible {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.14);
}

.theme-toggle {
  order: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: var(--surface-strong);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}
.site-logo {
  order: 2;
  margin-left: auto;
  font-weight: 700;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  color: var(--text-primary);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.header-bar .theme-toggle {
  margin-left: 0.5rem;
}

@media (min-width: 768px) {
  .header-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }

  .nav-wrapper {
    overflow-x: visible;
    flex: initial;
    width: auto;
    justify-content: center;
    margin: 0 auto;
    grid-column: 2;
  }

  .site-logo {
    order: 0;
    margin: 0;
    grid-column: 1;
    justify-self: start;
  }

  .theme-toggle {
    margin-left: 0;
    grid-column: 3;
    justify-self: end;
  }
}

@media (max-width: 767px) {
  .site-header {
    padding: 0 1rem;
  }

  .header-bar {
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 0.5rem;
  }

  .nav-wrapper {
    order: 1;
    width: 100%;
  }

  .site-logo {
    order: 2;
    margin-left: 0;
    display: none;
  }

  .theme-toggle {
    order: 3;
    display: inline-flex;
    padding: 0.45rem;
    font-size: 1.05rem;
    gap: 0;
    margin-left: auto;
  }

  .theme-toggle .toggle-text {
    display: none;
  }

  .theme-toggle .toggle-icon {
    font-size: 1.2rem;
  }
}

body.theme-light .nav-links {
  border-color: rgba(16, 23, 38, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 248, 255, 0.78));
  --nav-shadow: 0 18px 38px rgba(31, 34, 53, 0.12);
}

body.theme-light .nav-links::after {
  background: linear-gradient(150deg, rgba(16, 22, 38, 0.05), rgba(255, 255, 255, 0.46));
}

body.theme-light .nav-pill {
  color: var(--text-primary);
  background: rgba(16, 22, 38, 0.06);
  border-color: rgba(16, 22, 38, 0.08);
}

body.theme-light .nav-pill:hover,
body.theme-light .nav-pill:focus-visible {
  background: rgba(16, 22, 38, 0.12);
  border-color: rgba(16, 22, 38, 0.18);
}

.theme-toggle:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-strong);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.theme-toggle .toggle-icon {
  font-size: 1rem;
}

.theme-toggle .toggle-text {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

main {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  padding: 0 1rem 3rem;
}

body.home-page main {
  margin-top: clamp(2.75rem, 8vw, 4.5rem);
}

body:not(.home-page) main {
  margin-top: clamp(1rem, 4vw, 2.25rem);
}

h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.hero-name {
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title {
  margin-top: 0.15rem;
}

.hero-description {
  margin-top: 0.5rem;
}

p {
  max-width: 740px;
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  color: var(--text-secondary);
  margin: 1rem auto 2.2rem;
  line-height: 1.7;
  padding: 0 0.5rem;
}

ul {
  text-align: left;
  max-width: 500px;
  margin: 1rem auto;
  line-height: 1.8;
  font-size: clamp(1rem, 2.1vw, 1.2rem);
}

ol {
  text-align: left;
  max-width: 500px;
  margin: 1rem auto;
  line-height: 1.8;
  font-size: clamp(1rem, 2.1vw, 1.2rem);
}

.github-repo {
  text-decoration: none;
}

.button, button {
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  margin: 8px;
  font-size: clamp(0.9rem, 2vw, 1rem);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.button:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.75);
  outline-offset: 3px;
}

.button:hover, button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.button--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--outline);
  box-shadow: none;
}

.button--ghost:hover,
.button--ghost:focus-visible {
  background: var(--surface-strong);
  color: var(--text-primary);
  box-shadow: var(--shadow-soft);
}

/* Base social buttons (shared) */
.social-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--outline);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: var(--text-primary);
  overflow: visible;
}

.social-button img {
  width: clamp(30px, 5vw, 34px);
  height: clamp(30px, 5vw, 34px);
  transition: transform 0.2s ease, filter 0.2s ease;
  filter: none;
  flex-shrink: 0;
}

.social-button::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  background: var(--tooltip-bg);
  color: var(--tooltip-text);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(5, 8, 20, 0.5);
  backdrop-filter: blur(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

.social-button::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--tooltip-bg);
  transform: translate(-50%, 5px) rotate(45deg);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 99;
}

.social-label {
  display: none;
}

.social-button:hover,
.social-button:focus-visible {
  transform: translateY(-3px);
  background: var(--accent);
  box-shadow: var(--shadow-strong);
  color: #fff;
}

.social-button:hover img,
.social-button:focus-visible img {
  transform: scale(1.08);
  filter: brightness(1.15);
}

.social-button:hover::after,
.social-button:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.social-button:hover::before,
.social-button:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 1px) rotate(45deg);
}


/* Compact social buttons inside headers retain square footprint */
.site-header .social-button,
.hero-socials .social-button {
  width: 48px;
  height: 48px;
}

.nav-pill.active {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 28px rgba(255, 48, 68, 0.32);
}

.button-container {
  margin: 20px 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.hero-socials {
  margin-top: 2.5rem;
}

.playlist-section {
  width: min(960px, 100%);
  margin: clamp(2.5rem, 6vw, 4rem) auto;
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(135deg, rgba(15, 18, 36, 0.92), rgba(43, 19, 57, 0.72));
  box-shadow: 0 18px 30px rgba(6, 8, 18, 0.45);
  color: #fff;
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

.playlist-section__intro {
  display: grid;
  gap: 0.65rem;
  justify-items: center;
  text-align: center;
}

.playlist-section__intro h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2rem);
}

.playlist-section__intro p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  max-width: min(60ch, 100%);
}

.playlist-section__embed iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  box-shadow: var(--shadow-soft);
}

.project-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.project-card__actions .button {
  margin: 0;
}

.project-viewer {
  width: 100%;
  max-width: 1080px;
  margin: 3rem auto 4rem;
  display: none;
  flex-direction: column;
  gap: 1.75rem;
  padding: 0 1.5rem;
}

.project-viewer.is-open {
  display: flex;
}

.project-viewer__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.project-viewer__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.project-viewer__title {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--text-secondary);
}

.project-viewer__share {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.project-viewer__close {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: var(--surface);
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.project-viewer__close:hover,
.project-viewer__close:focus-visible {
  transform: translateY(-2px);
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.project-viewer__body {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.project-detail {
  width: 100%;
  max-width: 1080px;
  margin: 2.5rem auto 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--surface-strong);
  border-radius: 24px;
  border: 1px solid var(--outline);
  box-shadow: var(--shadow-soft);
}

.project-detail--modal {
  margin: 0;
}

.project-detail__header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-detail__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.project-detail__header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.project-detail__header .lead {
  margin: 0;
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  line-height: 1.8;
}

.project-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.project-detail__actions .button {
  margin: 0;
}

.project-detail__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--outline);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.project-detail__meta div {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.project-detail__meta dt {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.project-detail__meta dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.project-detail__body {
  display: grid;
  gap: 2.5rem;
}

.project-detail__narrative {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.project-detail__narrative section {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.project-detail__narrative h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
  color: var(--text-primary);
}

.project-detail__narrative p {
  margin: 0;
  color: var(--text-secondary);
}

.project-detail__narrative ul,
.project-detail__narrative ol {
  padding-left: 1.2rem;
  color: var(--text-secondary);
}

.project-detail__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.project-detail__media {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--outline);
  box-shadow: var(--shadow-soft);
  background: var(--surface);
}

.project-detail__media img {
  width: 100%;
  height: auto;
  display: block;
}

.project-detail__media figcaption {
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  background: rgba(8, 12, 24, 0.35);
}

.project-detail__panel {
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid var(--outline);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.project-detail__panel h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  color: var(--text-primary);
}

.project-detail__panel ul,
.project-detail__panel ol {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-secondary);
}

.project-detail__panel li + li {
  margin-top: 0.45rem;
}

.project-detail__next {
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid var(--outline);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-detail__next h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  color: var(--text-primary);
}

.project-detail__next p {
  margin: 0;
  color: var(--text-secondary);
}

.project-detail__next ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-secondary);
}

.project-detail__next li + li {
  margin-top: 0.45rem;
}

@media (min-width: 980px) {
  .project-detail__body {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 600px) {
  .project-viewer {
    padding: 0 1rem;
  }

  .project-viewer__toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-viewer__controls {
    width: 100%;
    justify-content: flex-start;
  }

  .project-viewer__title {
    font-size: clamp(1.25rem, 5vw, 1.6rem);
  }

  .playlist-section {
    padding: clamp(1rem, 7vw, 1.5rem);
  }

  .project-detail {
    padding: clamp(1.25rem, 6vw, 1.8rem);
  }

  .project-detail__meta {
    grid-template-columns: 1fr;
  }
}

.now-playing {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto 2.5rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(135deg, rgba(21, 28, 45, 0.78), rgba(15, 19, 34, 0.92));
  box-shadow: 0 20px 35px rgba(12, 16, 32, 0.28);
  display: grid;
  grid-template-columns: minmax(360px, 460px) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
  overflow: hidden;
}

.now-playing::after {
  content: "";
  position: absolute;
  inset: -40% 60% 40% -20%;
  background: radial-gradient(circle, rgba(255, 62, 104, 0.35), transparent 55%);
  opacity: 0.35;
  pointer-events: none;
  transform: rotate(8deg);
}

.now-playing__media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(255, 89, 167, 0.18), rgba(71, 93, 255, 0.25));
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.now-playing__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.now-playing__thumb {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.now-playing__thumb--skeleton {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.22) 40%, rgba(255, 255, 255, 0.08) 80%);
  background-size: 200% 200%;
  animation: shimmer 1.8s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.now-playing__details {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: #f5f7ff;
}

.now-playing__details h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.now-playing__title {
  margin: 0;
  font-size: clamp(1rem, 2.4vw, 1.1rem);
  color: rgba(245, 247, 255, 0.82);
}

.now-playing__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(245, 247, 255, 0.72);
}

.now-playing__stats {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.now-playing__duration {
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(245, 247, 255, 0.12);
  color: rgba(245, 247, 255, 0.75);
}

.now-playing__actions {
  margin-top: 0.35rem;
}

.now-playing__actions .button {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.now-playing__actions .button:hover,
.now-playing__actions .button:focus-visible {
  background: var(--accent);
  border-color: transparent;
  box-shadow: var(--shadow-strong);
}

.now-playing:hover .now-playing__thumb {
  transform: scale(1.04);
  filter: saturate(1.1);
}

.now-playing--error .now-playing__title {
  color: rgba(245, 247, 255, 0.6);
}

.now-playing--error .now-playing__thumb {
  background: linear-gradient(135deg, rgba(71, 93, 255, 0.12), rgba(255, 89, 167, 0.14));
  animation: none;
}

@media (max-width: 900px) {
  .now-playing {
    grid-template-columns: 1fr;
  }
}

.release-countdown {
  width: min(720px, 100%);
  margin: 0 auto 2.5rem;
  padding: clamp(1.25rem, 4vw, 1.75rem) clamp(1.25rem, 5vw, 2.5rem);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(135deg, rgba(15, 18, 36, 0.92), rgba(43, 19, 57, 0.72));
  box-shadow: 0 18px 30px rgba(6, 8, 18, 0.45);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.release-countdown__label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.release-countdown__timer {
  margin: 0;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  text-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.release-countdown__note {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 600px) {
  .release-countdown {
    padding: 1.25rem;
    border-radius: 20px;
  }

  .release-countdown__timer {
    font-size: clamp(1.6rem, 9vw, 2.2rem);
  }
}

.highlight-cards {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}

.highlight-cards article {
  background: var(--surface-strong);
  border-radius: 20px;
  padding: 1.6rem;
  text-align: left;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  border: 1px solid var(--outline);
}

.highlight-cards h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  color: var(--text-primary);
}

.highlight-cards p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.highlight-cards .button {
  margin-top: auto;
  align-self: flex-start;
}

.project-collection {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2.5rem 0 3rem;
}

.project-collection__intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.project-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.project-card {
  background: var(--surface-strong);
  border: 1px solid var(--outline);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
  position: relative;
  overflow: hidden;
}

.project-card h3 {
  margin: 0;
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  color: var(--text-primary);
}

.project-card p {
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.6;
}

.project-card__meta {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.project-card__meta strong {
  color: var(--text-secondary);
}

.project-card .button {
  margin: 0.75rem 0 0;
  align-self: flex-start;
}

.project-card__preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: var(--card-preview, linear-gradient(135deg, rgba(255, 89, 167, 0.25), rgba(71, 93, 255, 0.25)));
  overflow: hidden;
  opacity: 0.65;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.project-card__preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10, 12, 24, 0.1), rgba(10, 12, 24, 0.45));
  transition: opacity 0.4s ease;
}

.project-card:hover .project-card__preview,
.project-card:focus-within .project-card__preview {
  opacity: 1;
  transform: translateY(0) scale(1.01);
  box-shadow: 0 18px 32px rgba(13, 17, 40, 0.28);
}

.project-card:hover .project-card__preview::after,
.project-card:focus-within .project-card__preview::after {
  opacity: 0;
}

.project-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.project-card--arena {
  --card-preview: linear-gradient(135deg, #ff597a 0%, rgba(255, 198, 83, 0.75) 45%, rgba(255, 255, 255, 0.2) 100%);
}

.project-card--command {
  --card-preview: linear-gradient(135deg, rgba(93, 170, 255, 0.85) 0%, rgba(107, 117, 255, 0.7) 60%, rgba(255, 255, 255, 0.18) 100%);
}

.project-card--toolkit {
  --card-preview: linear-gradient(135deg, rgba(130, 105, 255, 0.85) 0%, rgba(255, 105, 180, 0.75) 50%, rgba(255, 255, 255, 0.18) 100%);
}

.social-links {
  margin: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.site-header .social-links {
  margin: 1.25rem 0 0.5rem;
}

/* Make the GitHub logo white in dark mode (keeps other icons unchanged) */
body:not(.theme-light) .social-button img[src*="github"] {
  filter: brightness(0) invert(1);
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem 0;
}

.contact-links .social-button {
  justify-content: flex-start;
  width: auto;
  min-width: clamp(180px, 40vw, 220px);
  min-height: 56px;
  padding: 0.75rem 1.2rem;
  border-radius: 16px;
  gap: 0.75rem;
}

.contact-links .social-button::after,
.contact-links .social-button::before {
  display: none;
}

.contact-links .social-button:hover {
  transform: translateY(-3px);
  background: var(--accent);
  box-shadow: var(--shadow-strong);
  color: #fff;
}

.contact-links .social-button .social-label {
  display: inline;
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 600;
  color: inherit;
}

.site-footer {
  margin: 2rem 0 0;
  padding: 0.9rem 1rem;
  color: var(--text-muted);
  font-size: clamp(0.78rem, 1.7vw, 0.9rem);
  line-height: 1.4;
  width: 100%;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1rem;
}

.site-footer p,
.site-footer span {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.site-footer strong {
  color: var(--text-primary);
}

@media (max-width: 767px) {
  .site-footer {
    margin-top: 1.35rem;
    padding: 0.85rem 0.75rem;
    gap: 0.3rem 0.75rem;
  }
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Contact Section Styles */
.contact-section {
  text-align: center;
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--outline);
  border-radius: 12px;
  font-size: clamp(0.95rem, 2vw, 1rem);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--surface);
  color: var(--text-primary);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 48, 68, 0.25);
}

.contact-form button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

#formStatus {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  background: var(--surface);
  border: 1px solid transparent;
  color: var(--text-secondary);
}

#formStatus.success {
  background: var(--status-success-bg);
  border-color: var(--status-success-border);
  color: var(--status-success-text);
}

#formStatus.error {
  background: rgba(231, 76, 60, 0.2);
  border-color: rgba(231, 76, 60, 0.35);
  color: #ffb3b3;
}

/* About Page Styles */
.main-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1000px;
  width: 100%;
  margin: 2rem auto;
  gap: 3rem;
}

.main-content img {
  width: clamp(200px, 40vw, 350px);
  max-width: 100%;
  border-radius: 18px;
  border: 1px solid var(--outline);
  box-shadow: var(--shadow-soft);
}

.text-section {
  max-width: 500px;
  text-align: left;
  padding: 0 0.5rem;
}

.text-section ul {
  margin-top: 1rem;
  margin-left: 1.5rem;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.75;
  color: var(--text-secondary);
}

.text-section h1 {
  text-align: left;
  margin-bottom: 1rem;
}

.text-section p {
  text-align: left;
  color: var(--text-secondary);
}

/* Gallery Styles */
.gallery-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin: 1.5rem 0 3rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--outline);
  box-shadow: var(--shadow-soft);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Blog Styles */
.blog-hero {
  width: 100%;
  max-width: 820px;
  margin: 1.5rem auto 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-hero p {
  margin: 0 auto 1.2rem;
  color: var(--text-secondary);
}

.blog-hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.blog-featured {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.blog-featured-card {
  position: relative;
  overflow: hidden;
  background: var(--surface-strong);
  border-radius: 24px;
  padding: 2.1rem 2.3rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--outline);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.blog-featured-card .blog-card-media {
  border-radius: 20px;
  aspect-ratio: 16 / 7.5;
  margin-bottom: 0.35rem;
}

.blog-featured-card::after {
  content: "";
  position: absolute;
  top: -45%;
  right: -25%;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle at center, rgba(255, 75, 130, 0.28) 0%, transparent 65%);
  pointer-events: none;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--outline);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.blog-featured-card h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.8vw, 2.1rem);
  color: var(--text-primary);
}

.blog-featured-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.blog-featured-card ul {
  margin: 0.75rem 0 0 1.2rem;
  padding: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.blog-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.6rem;
}

.blog-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 1.7rem;
  box-shadow: var(--shadow-soft);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border: 1px solid var(--outline);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card-media {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--outline);
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.04);
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.blog-card h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  color: var(--text-primary);
}

.blog-card time {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.blog-card .tag-pill {
  background: rgba(255, 75, 130, 0.15);
  border-color: rgba(255, 75, 130, 0.35);
  color: var(--text-primary);
}

.blog-card a {
  align-self: flex-start;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.1rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.blog-card a:hover {
  color: var(--accent-hover);
  border-color: currentColor;
}

.blog-reader {
  width: 100%;
  max-width: 920px;
  margin: 0 auto 3rem;
  display: none;
  flex-direction: column;
  gap: 1.75rem;
}

.blog-reader.is-open {
  display: flex;
}

.blog-reader__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.blog-reader__title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin: 0;
  color: var(--text-secondary);
}

.blog-reader__close {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: var(--surface);
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.blog-reader__close:hover,
.blog-reader__close:focus-visible {
  transform: translateY(-2px);
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.blog-reader__body {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.blog-article-wrapper {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--surface-strong);
  border-radius: 24px;
  border: 1px solid var(--outline);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  text-align: left;
}

.blog-article-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-article-header h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--text-primary);
}

.blog-article-header .lead {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--text-secondary);
}

.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.blog-article-meta time {
  font-weight: 500;
  color: var(--text-secondary);
}

.blog-article-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  color: var(--text-secondary);
}

.blog-article-hero {
  margin: 0.5rem 0 1.25rem;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--outline);
  box-shadow: var(--shadow-soft);
  background: var(--surface);
}

.blog-article-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-article-hero figcaption {
  margin: 0;
  padding: 0.85rem 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.08);
}

.blog-article-content h2 {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  color: var(--text-primary);
}

.blog-article-content p,
.blog-article-content li {
  line-height: 1.8;
}

.blog-article-content ul {
  margin-left: 1.2rem;
  display: grid;
  gap: 0.75rem;
}

.blog-article-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 0.75rem 1.1rem;
  font-style: italic;
  color: var(--text-secondary);
  background: var(--surface);
  border-radius: 12px;
}

.blog-article-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.blog-article-footer .article-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.blog-article-footer .article-actions a,
.blog-article-footer .article-actions button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: var(--surface);
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.blog-article-footer .article-actions a:hover,
.blog-article-footer .article-actions a:focus-visible,
.blog-article-footer .article-actions button:hover,
.blog-article-footer .article-actions button:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px);
}

.blog-article-footer .article-actions button {
  font: inherit;
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.blog-back-link:hover {
  color: var(--accent-hover);
}

.blog-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.blog-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.blog-modal[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
}

.blog-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 24, 0.72);
  backdrop-filter: blur(12px);
}

.blog-modal__dialog {
  position: relative;
  width: min(960px, 100%);
  max-height: min(90vh, 960px);
  background: var(--surface-strong);
  border: 1px solid var(--outline);
  border-radius: 28px;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-modal__scroll {
  position: relative;
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  scrollbar-width: thin;
}

.blog-modal__scroll::-webkit-scrollbar {
  width: 6px;
}

.blog-modal__scroll::-webkit-scrollbar-thumb {
  background: var(--outline);
  border-radius: 999px;
}

.blog-modal__content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.blog-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--outline);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 1.4rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.blog-modal__close:hover,
.blog-modal__close:focus-visible {
  transform: translateY(-2px);
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-strong);
}

body.modal-open {
  overflow: hidden;
}

.comments-section {
  margin-top: clamp(1.75rem, 4vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.comments-section__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.comments-section--embedded #commento {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.comments-status {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.comments-status--success {
  color: var(--status-success-text);
}

.comments-status--warning {
  color: var(--accent-hover);
}

.comments-status--error {
  color: var(--status-error-text);
}

.comments-status--loading {
  color: var(--text-muted);
}

.comments-empty {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.comment-item {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.comment-item__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.comment-item__author {
  font-weight: 700;
  color: var(--text-primary);
}

.comment-item__timestamp {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.comment-item__message {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.comment-form {
  display: grid;
  gap: 0.9rem;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--outline);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-primary);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 48, 68, 0.25);
}

.comment-form__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.comment-form__actions .button {
  margin: 0;
}

.comment-form__hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive design */
@media (max-width: 768px) {
  body {
    padding: 1.25rem 0.75rem 2rem;
  }

  .top-banner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
  }

  .header-bar {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    padding: 0.6rem 0.9rem;
    gap: 0.6rem;
  }

  .nav-pill {
    flex: 0 0 auto;
  }

  .header-bar {
    justify-content: space-between;
    gap: 0.6rem;
  }

  .header-bar .theme-toggle {
    width: auto;
  }

  .hero-actions {
    width: 100%;
  }

  .button, button {
    width: 100%;
    margin: 0.35rem 0;
  }

  .highlight-cards,
  .blog-featured,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .main-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .text-section {
    text-align: left;
    width: 100%;
  }

  .text-section ul {
    margin-left: 1.25rem;
  }

  .social-links {
    gap: 0.75rem;
  }

  .contact-links {
    flex-direction: column;
    gap: 1rem;
  }

  .blog-article-wrapper {
    padding: 1.25rem;
    border-radius: 20px;
  }

  .blog-article-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .blog-modal {
    padding: 0.75rem;
  }

  .blog-modal__dialog {
    width: 100%;
    max-height: 95vh;
    border-radius: 20px;
  }

  .blog-modal__close {
    top: 0.6rem;
    right: 0.6rem;
  }

  .comment-form__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .comment-form__actions .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  body {
    padding: 1rem 0.5rem 1.75rem;
  }

  .hero-description br {
    display: none;
  }

  .nav-links {
    padding: 0.5rem 0.65rem;
  }

  .nav-pill {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  .theme-toggle {
    font-size: 0.85rem;
  }

  .social-button {
    width: 44px;
    height: 44px;
  }

  .social-button img {
    width: 26px;
    height: 26px;
  }

  .top-banner {
    padding: 0.85rem 1rem;
  }

  .blog-modal__dialog {
    border-radius: 16px;
  }

  .blog-modal__scroll {
    padding: 1.25rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  body {
    padding: 2rem 1.5rem;
  }
}

@media (min-width: 1025px) {
  h1 {
    font-size: 3rem;
  }
  
  .social-button {
    width: 56px;
    height: 56px;
  }

  .social-button img {
    width: 34px;
    height: 34px;
  }
}

/* Large screens (TV, large monitors) */
@media (min-width: 1440px) {
  body {
    padding: 3rem 2rem;
  }
  
  main {
    max-width: 1400px;
  }
  
  h1 {
    font-size: 3.5rem;
  }
  
  p {
    font-size: 1.35rem;
  }
  
  .social-button {
    width: 62px;
    height: 62px;
  }

  .social-button img {
    width: 38px;
    height: 38px;
  }
}

/* ----------------------- */
/* Admin Panel Enhancements */
/* ----------------------- */
.admin-page main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.admin-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.75rem;
}

.admin-hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.admin-card,
.admin-form-card,
.admin-table-card,
.admin-preview {
  background: rgba(17, 22, 39, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
}

.theme-light .admin-card,
.theme-light .admin-form-card,
.theme-light .admin-table-card,
.theme-light .admin-preview {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
}

.admin-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-card__status {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 1rem;
}

.admin-stats dt {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.admin-stats dd {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.1rem 0 0;
}

.admin-steps {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-quick-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.admin-form-card {
  display: grid;
  gap: 1.5rem;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.admin-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.admin-form__field--full {
  grid-column: 1 / -1;
}

.admin-form__checkbox label {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  font-weight: 500;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(17, 22, 39, 0.6);
  padding: 0.65rem 0.85rem;
  color: inherit;
  font: inherit;
}

.theme-light .admin-form input,
.theme-light .admin-form textarea,
.theme-light .admin-form select {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
}

.admin-form__actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.admin-preview pre {
  max-height: 420px;
  overflow: auto;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 1rem;
  border-radius: 0.75rem;
  white-space: pre-wrap;
}

.theme-light .admin-preview pre {
  background: rgba(0, 0, 0, 0.05);
}

.admin-help-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0.5rem 0 0;
}

.admin-table__scroll {
  width: 100%;
  overflow-x: auto;
}

.admin-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.theme-light .admin-table th,
.theme-light .admin-table td {
  border-color: rgba(0, 0, 0, 0.08);
}

.admin-table code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem 0.4rem;
  border-radius: 0.4rem;
  font-size: 0.85rem;
}

.theme-light .admin-table code {
  background: rgba(17, 22, 39, 0.08);
}

.button.button--small {
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
}

.button.button--ghost.button--small {
  padding: 0.4rem 0.9rem;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  background: rgba(255, 255, 255, 0.12);
}

.admin-pill--draft {
  background: rgba(255, 196, 87, 0.25);
}

.admin-pill--coming,
.admin-pill--coming\ soon {
  background: rgba(84, 153, 255, 0.25);
}

.admin-pill--published {
  background: rgba(99, 255, 155, 0.25);
}

.admin-error {
  color: #ff6b81;
}

.admin-lock {
  max-width: 640px;
  margin: 2rem auto 0;
}

.admin-lock__card {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  background: rgba(15, 18, 32, 0.8);
  text-align: center;
}

.theme-light .admin-lock__card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.12);
}

.admin-lock__actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.25rem 0;
}

.admin-auth-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-auth-meta img {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.admin-auth-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin: 0;
}

.admin-alert {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 196, 87, 0.15);
  border: 1px solid rgba(255, 196, 87, 0.4);
  font-size: 0.9rem;
}

.admin-allowlist {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-allowlist__content {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.admin-allowlist__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-allowlist__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-allowlist__form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.admin-allowlist__form-row {
  display: flex;
  gap: 0.75rem;
}

.admin-allowlist__form-row input {
  flex: 1;
}

.button.button--tiny {
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
}

[data-auth-guard][hidden],
[data-admin-shell][hidden],
.admin-auth-meta[hidden],
[data-allowlist-section][hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .admin-hero {
    flex-direction: column;
  }

  .admin-form {
    grid-template-columns: 1fr;
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}