.tag-badge-pink {
  display: inline-block;
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.3);
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 700;
  margin-bottom: 1rem;
}

.art-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.art-title {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 0.8rem;
  background: linear-gradient(135deg, #f472b6, #ec4899, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.art-desc {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Video Masterpieces */
.video-section {
  margin-bottom: 4rem;
}

.video-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.8rem;
  align-items: start;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s, border-color 0.2s;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(236, 72, 153, 0.4);
}

.video-wrapper {
  position: relative;
  background: #000;
  width: 100%;
}

.yt-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  background: #000;
}

.yt-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.yt-container.shorts-frame {
  padding-bottom: 120%; /* vertical aspect */
}

.server-backup-video {
  width: 100%;
  display: block;
  background: #000;
}
.server-backup-video.hidden { display: none; }
.yt-container.hidden { display: none; }

.fallback-note {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: #7f1d1d;
  color: #fecaca;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.4rem;
  text-align: center;
}
.fallback-note.hidden { display: none; }

.video-switches {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.switch-source-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: #d1d5db;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.switch-source-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.video-wrapper video {
  width: 100%;
  height: auto;
  max-height: 420px;
  display: block;
  object-fit: contain;
  background: #000;
}

.video-wrapper.shorts-ratio video {
  max-height: 480px;
}

.video-details {
  padding: 1.25rem;
}

.video-tag-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.v-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
}

.v-tag.hot {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.yt-link {
  color: #38bdf8;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-decoration: none;
  font-weight: 600;
}
.yt-link:hover {
  text-decoration: underline;
}

.video-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
}

/* Golden Archive Video Grid */
.golden-archive-section {
  margin-bottom: 4rem;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.archive-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.archive-card:hover {
  transform: translateY(-4px);
  border-color: rgba(236, 72, 153, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.archive-thumb-wrap {
  position: relative;
  width: 100%;
  height: 160px;
  background: #000;
  overflow: hidden;
}

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

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

.archive-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  transition: background 0.2s, transform 0.2s;
}

.archive-card:hover .archive-play-btn {
  background: #ef4444;
  border-color: #ef4444;
  transform: translate(-50%, -50%) scale(1.1);
}

.archive-info {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.archive-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #a855f7;
  font-weight: 700;
}
.archive-badge.hot { color: #f59e0b; }
.archive-badge.lore { color: #38bdf8; }

.archive-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
}

.archive-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.yt-channel-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(168, 85, 247, 0.1));
  border: 1px dashed rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.yt-banner-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.yt-banner-text strong {
  font-size: 1.1rem;
  color: #fff;
}

.yt-banner-text span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 820px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* Doodle Pad */
.doodle-section {
  margin-bottom: 4rem;
}

.doodle-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.doodle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.doodle-sub {
  font-size: 0.8rem;
  color: var(--text-sub);
  font-family: var(--font-mono);
}

.doodle-tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.color-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}

.color-btn.active {
  transform: scale(1.2);
  border-color: #fff;
}

.canvas-wrap {
  background: #090b10;
  border: 2px dashed #272d3d;
  border-radius: 10px;
  overflow: hidden;
  touch-action: none;
}

#paintCanvas {
  width: 100%;
  height: auto;
  display: block;
  cursor: crosshair;
}

/* Gallery Grid */
.gallery-section {
  margin-bottom: 4rem;
}

/* Animation Spotlight Card */
.anim-spotlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.anim-video-box {
  background: #000;
  width: 100%;
}

.anim-video-box video {
  width: 100%;
  height: auto;
  max-height: 400px;
  display: block;
}

.anim-meta {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.anim-meta h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.anim-meta p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 820px) {
  .anim-spotlight-card {
    grid-template-columns: 1fr;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.art-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}

.art-card:hover {
  transform: translateY(-4px);
  border-color: rgba(236, 72, 153, 0.4);
}

.art-preview {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: #000;
}

.art-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.art-card:hover .art-preview img {
  transform: scale(1.05);
}

.art-overlay {
  position: absolute;
  bottom: 0.6rem;
  left: 0.6rem;
}

.art-tag {
  background: rgba(0, 0, 0, 0.7);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: #f472b6;
}

/* Generative Shape Box */
.generative-preview {
  height: 200px;
  background: #0b0f19;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gen-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(25px);
  animation: floatShape 6s infinite alternate ease-in-out;
}

.circle-shape {
  width: 100px;
  height: 100px;
  background: #ec4899;
  top: 20%;
  left: 20%;
}

.triangle-shape {
  width: 120px;
  height: 120px;
  background: #38bdf8;
  bottom: 20%;
  right: 25%;
  animation-delay: -3s;
}

.ring-shape {
  width: 80px;
  height: 80px;
  border: 4px solid #facc15;
  filter: none;
  animation: spinRing 10s infinite linear;
}

@keyframes floatShape {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.2); }
}

@keyframes spinRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Retro Preview */
.retro-preview {
  height: 200px;
  background: radial-gradient(circle at center, #2e3440, #1a1e28);
  display: flex;
  align-items: center;
  justify-content: center;
}

.skeuo-icon {
  background: linear-gradient(to bottom, #f3f4f6, #9ca3af);
  border: 2px solid #fff;
  border-radius: 20px;
  padding: 1.2rem 1.8rem;
  font-weight: 900;
  color: #1f2937;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5), inset 0 2px 2px #fff;
  font-size: 1.1rem;
}

.art-details {
  padding: 1.25rem;
}

.art-details h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: #fff;
}

.art-details p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
