/* Accent text utility */
.text-accent { color: var(--accent); }

/* Visitor counter */
.visitor-counter {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: white;
  z-index: 100;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.visitor-counter .count {
  color: var(--accent);
  font-weight: bold;
  margin-left: 4px;
  display: inline-block;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Indicador de cache persistente */
.cached-data-indicator {
  display: inline-block;
  margin-left: 5px;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2em;
  opacity: 0.8;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

@keyframes visitShine {
  0% { background-position: 0 0, 120% 0; }
  65% { background-position: 0 0, -220% 0; }
  100% { background-position: 0 0, -220% 0; }
}

/* Selection color */
::selection {
  background: rgba(108, 249, 255, 0.3);
  color: var(--text);
}
::-moz-selection {
  background: rgba(108, 249, 255, 0.3);
  color: var(--text);
}

/* Disclaimer Modal */
.disclaimer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.disclaimer-content {
  background-color: #111;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.disclaimer-content h2 {
  margin-top: 0;
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.disclaimer-content p {
  margin-bottom: 1rem;
  color: #ccc;
}

.disclaimer-content .btn {
  margin-top: 1rem;
}

.disclaimer-content .btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Base styles */
:root {
  color-scheme: dark;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --bg: #050505;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --text: #f4f4f4;
  --muted: rgba(244, 244, 244, 0.65);
  --accent: #6cf9ff;
  --accent-strong: #1cf7e2;
  --border: rgba(255, 255, 255, 0.1);
  --grid-pos-x: 0px;
  --grid-pos-y: 0px;
  --grid-cell: 80px;
  --grid-trail-length: 6;
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: #000;
  color: var(--text);
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(108, 249, 255, 0.1), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(98, 55, 255, 0.12), transparent 35%);
  pointer-events: none;
  z-index: -2;
  background-size: 140% 140%;
  background-position: 20% 20%, 80% 0%, 50% 80%;
  animation: orbsDrift 18s ease-in-out infinite alternate;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(var(--surface) 1px, transparent 1px),
    linear-gradient(90deg, var(--surface) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.4;
  z-index: 0;
  background-position: var(--grid-pos-x) var(--grid-pos-y),
    calc(-1 * var(--grid-pos-x)) calc(-1 * var(--grid-pos-y));
  transition: background-position 300ms ease-out;
}

.grid-highlight {
  position: fixed;
  width: var(--grid-cell);
  height: var(--grid-cell);
  background: rgba(108, 249, 255, 0.28);
  outline: 1px solid rgba(108, 249, 255, 0.6);
  outline-offset: -1px;
  transform: translate(-120px, -120px);
  transition: transform 140ms ease-out, opacity 300ms ease;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
}

.grid-highlight::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(108, 249, 255, 0.15);
  transition: opacity 400ms ease;
}

.grid-ghost {
  position: fixed;
  width: var(--grid-cell);
  height: var(--grid-cell);
  background: rgba(108, 249, 255, 0.28);
  outline: 1px solid rgba(108, 249, 255, 0.6);
  outline-offset: -1px;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 600ms ease-out;
  will-change: opacity, transform;
  mix-blend-mode: normal;
}

main.page {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px 120px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 72px;
  align-items: start;
}

h1 {
  font-size: clamp(3rem, 4vw, 4.5rem);
  margin: 0 0 12px;
}

.hero__title-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
  margin-bottom: 0;
}

.hero__title-row.has-activity {
  align-items: flex-start;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .hero__title-row {
    flex-wrap: wrap;
  }
}

.hero__title-row h1 {
  margin: 0;
  flex-shrink: 0;
}

.discord-presence {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(30, 31, 34, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  max-width: 320px;
  min-width: 200px;
  align-self: flex-start;
}

.discord-presence.has-activity {
  align-items: flex-start;
  min-width: 280px;
}

.discord-presence.offline-only,
.discord-presence.online-only {
  min-width: 120px;
  justify-content: center;
  align-self: center;
}

.discord-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.hero__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: block;
}

.hero__avatar[src]:not([src=""]) {
  opacity: 1;
}

.discord-status {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #747f8d;
  border: 3px solid rgba(30, 31, 34, 0.95);
}

.discord-presence[data-status="online"] .discord-status {
  background: #53F09D;
}

.discord-presence[data-status="idle"] .discord-status {
  background: #faa61a;
}

.discord-presence[data-status="dnd"] .discord-status {
  background: #ed4245;
}

.discord-presence[data-status="offline"] .discord-status {
  background: #747f8d;
}

.discord-activity {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.activity-type {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

.activity-content {
  display: flex;
  gap: 10px;
}

.activity-icon-wrapper {
  position: relative;
  flex-shrink: 0;
}

.activity-icon {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
}

.activity-icon--placeholder {
  background: rgba(255, 255, 255, 0.1);
}

.activity-icon-small {
  position: absolute;
  bottom: 2px;
  right: -4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(30, 31, 34, 0.95);
  object-fit: cover;
  background: rgba(30, 31, 34, 0.95);
}

.activity-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  justify-content: center;
}

.activity-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-details,
.activity-state {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-elapsed {
  font-size: 0.7rem;
  color: #53F09D;
  display: flex;
  align-items: center;
  gap: 4px;
}

.activity-elapsed::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2353F09D'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67V7z'/%3E%3C/svg%3E");
  background-size: contain;
}

.offline-message {
  font-size: 0.85rem;
  color: #747f8d; /* Cor do status offline */
  font-weight: 600;
}

.status-online {
  font-size: 0.85rem;
  color: #53F09D; /* Cor do status online */
  font-weight: 600;
}

.status-idle {
  font-size: 0.85rem;
  color: #faa61a; /* Cor do status idle/away */
  font-weight: 600;
}

.status-dnd {
  font-size: 0.85rem;
  color: #ed4245; /* Cor do status do not disturb */
  font-weight: 600;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 0 0 12px;
}

h3 {
  font-size: 1.4rem;
  margin: 0 0 8px;
}

p {
  margin: 0 0 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.hero__bio {
  max-width: 46ch;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.hero__tags span {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  background-color: rgba(255, 255, 255, 0.02);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  border: none;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 24px;
  cursor: pointer;
  color: #000;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  transition: transform 150ms ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn.icon {
  padding: 0;
  width: 52px;
  height: 52px;
  border-radius: 0;
  transform: none;
  position: relative;
  overflow: hidden;
}

.btn.icon::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 200ms ease, transform 200ms ease;
}

.btn.icon.copied::after {
  opacity: 1;
  transform: scale(1);
}

.btn.icon svg {
  width: 24px;
  height: 24px;
  stroke: #000;
  fill: none;
  stroke-width: 1.5;
  transition: opacity 200ms ease, transform 200ms ease;
}

.btn.icon rect {
  fill: none;
  stroke: currentColor;
}

.btn.icon path {
  stroke: currentColor;
  fill: none;
}

.btn.icon .icon-check {
  position: absolute;
  opacity: 0;
  transform: scale(0.6);
  stroke-width: 2;
}

.btn.icon.copied .icon-copy {
  opacity: 0;
  transform: translateY(-4px);
}

.btn.icon.copied .icon-check {
  opacity: 1;
  transform: scale(1);
}

.btn-group {
  display: inline-flex;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.btn-group .btn {
  border-radius: 0;
  transform: none;
}

.btn-group .btn:first-child {
  padding-inline: 28px;
}

.btn-group .btn:hover {
  transform: none;
}

.btn.pill {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid transparent;
  transition: border-color 150ms ease, transform 150ms ease;
}

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

.btn.pill.disabled,
.btn.pill[disabled],
.btn.pill[aria-disabled="true"] {
  background: rgba(255, 255, 255, 0.02);
  color: rgba(244, 244, 244, 0.45);
  border-color: rgba(255, 255, 255, 0.06);
  filter: saturate(0.7);
  pointer-events: none;
}

.works-modal[hidden] { display: none; }
.works-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.works-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.works-modal__panel {
  position: relative;
  width: min(960px, 92vw);
  max-height: 90vh;
  background: rgba(6, 6, 6, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  pointer-events: auto;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.65);
}

.works-modal__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.works-modal__controls input[type="search"] {
  width: 280px;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
}

.works-modal__list {
  overflow-y: auto;
  max-height: calc(90vh - 180px);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  padding-right: 6px;
}

.works-modal__list::-webkit-scrollbar {
  width: 6px;
}

.works-modal__list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}

.works-modal__info {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.works-modal__close {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.works-modal__close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.works-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.works-card header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.works-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.works-card__media {
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 39.19%;
  overflow: hidden;
  background: #000;
  border-radius: 12px;
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  object-fit: fill;
  cursor: pointer;
  background: #000;
}

.streamable-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  background: #000;
  border-radius: 12px;
}

.streamable-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

/* Controles de vídeo */
.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-wrapper:hover .video-controls,
.video-wrapper.playing .video-controls {
  opacity: 1;
}

.video-btn {
  background: transparent;
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.video-btn svg {
  width: 24px;
  height: 24px;
}

.video-progress {
  flex: 1;
  height: 8px;
  position: relative;
  cursor: pointer;
}

.video-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  margin: 0;
}

.video-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.video-progress-filled {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #53F09D;
  border-radius: 4px;
}

.video-time {
  font-size: 0.8rem;
  color: white;
  min-width: 80px;
  text-align: center;
}

/* Controles de volume */
.volume-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.volume-slider-container {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  border-radius: 6px;
  padding: 12px 8px;
  margin-bottom: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.volume-wrapper:hover .volume-slider-container {
  opacity: 1;
  visibility: visible;
}

.volume-slider {
  width: 4px;
  height: 80px;
  -webkit-appearance: slider-vertical;
  appearance: slider-vertical;
  writing-mode: vertical-lr;
  direction: rtl;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* Ícones de play/pause */
.video-playpause .icon-pause {
  display: none;
}

.video-wrapper.playing .video-playpause .icon-play {
  display: none;
}

.video-wrapper.playing .video-playpause .icon-pause {
  display: block;
}

/* Ícones de volume */
.video-volume .icon-volume-off {
  display: none;
}

.video-wrapper.muted .video-volume .icon-volume-on {
  display: none;
}

.video-wrapper.muted .video-volume .icon-volume-off {
  display: block;
}

/* Ícones de fullscreen */
.video-fullscreen .icon-compress {
  display: none;
}

.video-wrapper.fullscreen .video-fullscreen .icon-expand {
  display: none;
}

.video-wrapper.fullscreen .video-fullscreen .icon-compress {
  display: block;
}

/* Removemos as bordas adicionais para mostrar os controles do player */



.works-card__media video {
  display: block;
  width: 100%;
  border-radius: 12px;
  background: #000;
  cursor: pointer;
}



.video-controls {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.works-card__media:hover .video-controls,
.works-card__media.playing .video-controls {
  opacity: 1;
}

.works-card__media:fullscreen,
.works-card__media:-webkit-full-screen {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.works-card__media:fullscreen video,
.works-card__media:-webkit-full-screen video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.works-card__media:fullscreen .video-controls,
.works-card__media:-webkit-full-screen .video-controls {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  opacity: 1;
}

.video-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}

.video-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.video-btn svg {
  width: 16px;
  height: 16px;
}

.video-playpause .icon-pause {
  display: none;
}

.works-card__media.playing .video-playpause .icon-play {
  display: none;
}

.works-card__media.playing .video-playpause .icon-pause {
  display: block;
}

.video-fullscreen .icon-compress {
  display: none;
}

.works-card__media.is-fullscreen .video-fullscreen .icon-expand {
  display: none;
}

.works-card__media.is-fullscreen .video-fullscreen .icon-compress {
  display: block;
}

.video-progress {
  flex: 1;
  position: relative;
  height: 6px;
  cursor: pointer;
}

.video-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  margin: 0;
}

.video-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  overflow: hidden;
}

.video-progress-filled {
  height: 100%;
  width: 0;
  background: #fff;
  border-radius: 3px;
  transition: width 0.1s linear;
}

.video-time {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.video-volume .icon-volume-off {
  display: none;
}

.works-card__media.muted .video-volume .icon-volume-on {
  display: none;
}

.works-card__media.muted .video-volume .icon-volume-off {
  display: block;
}

.volume-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.volume-slider-container {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  border-radius: 6px;
  padding: 12px 8px;
  margin-bottom: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.volume-wrapper:hover .volume-slider-container {
  opacity: 1;
  visibility: visible;
}

.volume-slider {
  width: 4px;
  height: 80px;
  -webkit-appearance: slider-vertical;
  appearance: slider-vertical;
  writing-mode: vertical-lr;
  direction: rtl;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.works-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.works-tag {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .works-modal__panel {
    width: min(600px, 94vw);
    padding: 20px;
  }

  .works-modal__controls input[type="search"] {
    width: 100%;
  }
  
  .works-modal__list {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 480px) {
  .works-modal__list {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .works-card {
    padding: 12px;
    gap: 8px;
  }
}

.hero__card {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 32px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(12px);
  align-self: start;
  height: fit-content;
}

.hero__card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  margin-bottom: 0;
}

.hero__card li {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.section {
  margin: 64px 0;
}

.section__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
}

.section__note {
  max-width: 32ch;
  font-size: 0.9rem;
}

.pricing-content {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 800px) {
  .pricing-content {
    grid-template-columns: 1fr;
  }
}

.pricing-card--large {
  padding: 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}

.pricing-card--large h3 {
  margin: 0 0 20px 0;
  font-size: 1.2rem;
}

.pricing-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.pricing-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pricing-method {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pricing-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.pricing-types {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-type {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pricing-label {
  font-weight: 600;
  color: var(--accent);
  min-width: 100px;
}

.pricing-desc {
  color: rgba(244, 244, 244, 0.7);
  font-size: 0.9rem;
}

.pricing-note {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
}

.pricing-note strong {
  color: var(--accent);
}

.pricing-exception {
  margin: 16px 0 0 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  color: rgba(244, 244, 244, 0.7);
  line-height: 1.5;
}

.stack-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.stack-grid article {
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}

.games-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.game-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 200ms ease, border-color 200ms ease;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.game-card__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.game-card__header > div {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.game-card__header h3 {
  margin: 0;
  line-height: 1.15;
}

.game-card__header img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.game-card__meta {
  display: flex;
  justify-content: flex-start;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.1;
}

.visit-count {
  display: inline-block;
  padding-inline: 0;
  font-weight: 600;
  position: relative;
  background-image:
    linear-gradient(rgba(244, 244, 244, 0.78), rgba(244, 244, 244, 0.78)),
    linear-gradient(110deg, transparent 10%, rgba(255, 255, 255, 0.95) 40%, transparent 70%);
  background-size: 100% 100%, 260% 100%;
  background-position: 0 0, 120% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: visitShine 6s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
  animation-delay: 0.5s;
}

.game-card a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto; /* push link to bottom of card */
}

.games-grid + .placeholder {
  margin-top: 16px;
  text-align: center;
}

/* Audio player */
.audio-player {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: min(360px, 92vw);
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  z-index: 2;
}

.audio-meta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.audio-icon {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.2);
}

.audio-text {
  display: grid;
}

.audio-title {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.audio-time {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
}

.audio-time span {
  font-family: "Space Mono", Consolas, monospace;
  font-variant-numeric: tabular-nums;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
}

/* Bar visualizer that doubles as a seek slider */
.audio-bars {
  width: 100%;
  height: 72px;
  display: grid;
  grid-template-columns: repeat(48, 1fr);
  align-items: end;
  gap: 3px;
  cursor: pointer;
  user-select: none;
}

.audio-bar {
  height: 12px;
  background: rgba(255,255,255,0.18);
  border-radius: 3px;
  transition: height 80ms linear, background-color 120ms ease;
  will-change: height;
}

.audio-bar.progress {
  background: linear-gradient(180deg, rgba(108,249,255,0.95), rgba(108,249,255,0.55));
}

.audio-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.audio-volume {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
}

.audio-volume svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  opacity: 0.7;
}

.audio-volume input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 110px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
}

.audio-volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(108, 249, 255, 0.2);
  border: none;
}

.audio-volume input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  box-shadow: 0 0 0 4px rgba(108, 249, 255, 0.2);
}

.audio-volume input[type="range"]::-moz-range-track {
  background: transparent;
}

.audio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: #fff;
  transition: background-color 150ms ease, border-color 150ms ease, transform 120ms ease;
}

.audio-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; transition: transform 150ms ease, filter 150ms ease, opacity 150ms ease; }
.audio-btn .icon-pause { display: none; }
.audio-btn.play.playing .icon-play { display: none; }
.audio-btn.play.playing .icon-pause { display: block; }

.audio-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.28);
}
.audio-btn:hover svg {
  transform: translateY(-1px) scale(1.08);
  filter: drop-shadow(0 1px 6px rgba(255,255,255,0.25));
}

.audio-unmute {
  display: none;
  margin-top: 4px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 6px 10px;
}

.footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.9rem;
}

code {
  font-family: "Space Mono", Consolas, monospace;
  color: var(--accent);
}

@keyframes orbsDrift {
  0% {
    background-position: 20% 20%, 80% 0%, 50% 80%;
  }
  50% {
    background-position: 25% 15%, 75% 5%, 45% 85%;
  }
  100% {
    background-position: 15% 25%, 85% 10%, 55% 75%;
  }
}

@keyframes shineSweep {
  0% {
    background-position: -120% 0;
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  60% {
    background-position: 120% 0;
    opacity: 0.9;
  }
  100% {
    background-position: 120% 0;
    opacity: 0;
  }
}

@media (max-width: 960px) {
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .games-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .hero__actions {
    flex-direction: column;
  }

  .btn-group {
    width: 100%;
  }

  .btn-group .btn {
    flex: 1;
  }

  .hero__card {
    padding: 24px;
  }
}
