/* ===== ROOT VARIABLES ===== */
:root {
  --bg: #0a0a0a;
  --bg-enter: #050505;
  --card-bg: rgba(20, 20, 20, 0.65);
  --accent: #7c3aed;
  --accent-light: #a855f7;
  --accent-dark: #5b21b6;
  --text: #ffffff;
  --text-muted: #a0a0a0;
  --border: rgba(255, 255, 255, 0.1);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

* {
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* The custom SVG treatment is intentionally limited to clip folder icons. */
.clip-category .folder-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  min-width: 1em;
  color: currentColor;
  font-style: normal;
  line-height: 1;
  vertical-align: -0.125em;
}

.clip-category .folder-icon::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.fa-arrow-left { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M19 12H5m6-6-6 6 6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.fa-bookmark { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 4c0-1.1.9-2 2-2h8c1.1 0 2 .9 2 2v18l-6-4-6 4V4Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/></svg>"); }
.fa-solid.fa-bookmark { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 4c0-1.1.9-2 2-2h8c1.1 0 2 .9 2 2v18l-6-4-6 4V4Z' fill='black'/></svg>"); }
.fa-chevron-left { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='m15 18-6-6 6-6' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.fa-chevron-right { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='m9 18 6-6-6-6' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.fa-comment-dots { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 18.5 3 21v-5.2A8.5 8.5 0 1 1 5 18.5Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/><circle cx='8' cy='11.5' r='1.2'/><circle cx='12' cy='11.5' r='1.2'/><circle cx='16' cy='11.5' r='1.2'/></svg>"); }
.fa-film { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 3h16a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Zm4 0v18m8-18v18M2 8h6m8 0h6M2 16h6m8 0h6' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/></svg>"); }
.fa-folder,
.fa-folder-closed { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 6a2 2 0 0 1 2-2h5l2 2h7a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/></svg>"); }
.fa-folder-open { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 18V6a2 2 0 0 1 2-2h5l2 2h7a2 2 0 0 1 2 2v2M3 18l2.2-7h17L20 18a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/></svg>"); }
.fa-gamepad { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7.5 7h9a5 5 0 0 1 4.7 6.7l-1.4 4a2.7 2.7 0 0 1-4.5 1l-1.4-1.5h-3.8l-1.4 1.5a2.7 2.7 0 0 1-4.5-1l-1.4-4A5 5 0 0 1 7.5 7Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/><path d='M7 11v4m-2-2h4' stroke='black' stroke-width='2' stroke-linecap='round'/><circle cx='16.5' cy='11.5' r='1'/><circle cx='18.5' cy='14' r='1'/></svg>"); }
.fa-heart { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 21S3 16 3 9.5A4.5 4.5 0 0 1 12 8a4.5 4.5 0 0 1 9 1.5C21 16 12 21 12 21Z' fill='black'/></svg>"); }
.fa-lock { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 10h12a2 2 0 0 1 2 2v8H4v-8a2 2 0 0 1 2-2Zm2 0V7a4 4 0 0 1 8 0v3' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/><circle cx='12' cy='15' r='1.5'/></svg>"); }
.fa-pause { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='6' y='4' width='4' height='16' rx='1' fill='black'/><rect x='14' y='4' width='4' height='16' rx='1' fill='black'/></svg>"); }
.fa-play { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 4.8c0-1.2 1.3-1.9 2.3-1.2l10.2 7.2a1.5 1.5 0 0 1 0 2.4L9.3 20.4A1.5 1.5 0 0 1 7 19.2V4.8Z' fill='black'/></svg>"); }
.fa-share { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='m14 5 4-3 4 3m-4-3v11a4 4 0 0 1-4 4H5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/><circle cx='5' cy='17' r='3' fill='none' stroke='black' stroke-width='2'/></svg>"); }
.fa-shield-halved { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2 4 5v6c0 5.2 3.4 9.4 8 11 4.6-1.6 8-5.8 8-11V5l-8-3Zm0 3v13.8c-2.9-1.5-5-4.5-5-7.8V7l5-2Z' fill='black'/></svg>"); }
.fa-spinner { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M21 12a9 9 0 1 1-9-9' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'/></svg>"); }
.fa-spotify { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='9.5' fill='none' stroke='black' stroke-width='2'/><path d='M6.8 9.2c3.8-1.1 7.6-.8 10.8.9M7.7 12.4c3.1-.8 6.4-.5 9.1.8m-8.2 2.4c2.5-.6 5-.4 7.2.7' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/></svg>"); }
.fa-steam { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='15.8' cy='8.2' r='4.2' fill='none' stroke='black' stroke-width='2'/><circle cx='15.8' cy='8.2' r='1.8'/><circle cx='7.2' cy='16.8' r='3.2' fill='none' stroke='black' stroke-width='2'/><path d='m9.8 14.9 3.1-4.1M2.6 14.3l1.8.8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>"); }
.fa-tiktok { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M14 3h3c.3 2.1 1.6 3.5 4 3.9v3a9 9 0 0 1-4-1.2v6.6a6 6 0 1 1-5-5.9v3.2a3 3 0 1 0 2 2.7V3Z' fill='black'/></svg>"); }
.fa-triangle-exclamation { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3 2 21h20L12 3Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/><path d='M12 9v5' stroke='black' stroke-width='2' stroke-linecap='round'/><circle cx='12' cy='17.5' r='1.2'/></svg>"); }
.fa-volume-high { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 9h4l5-4v14l-5-4H4V9Zm12.5-1a6 6 0 0 1 0 8m2.5-11a10 10 0 0 1 0 14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.fa-volume-low { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 9h4l5-4v14l-5-4H4V9Zm12.5-1a6 6 0 0 1 0 8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.fa-volume-xmark { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 9h4l5-4v14l-5-4H4V9Zm12.5 1 5 5m0-5-5 5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.fa-wand-magic-sparkles { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='m4 20 12-12m-9 9 3 3M15 3l.7 2.3L18 6l-2.3.7L15 9l-.7-2.3L12 6l2.3-.7L15 3Zm5 7 .5 1.5L22 12l-1.5.5L20 14l-.5-1.5L18 12l1.5-.5L20 10Z' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.fa-xmark { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='m6 6 12 12M18 6 6 18' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/></svg>"); }

/* ===== NATIVE HARDWARE CURSOR ===== */
body {
  cursor: url('data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="4" fill="%23ffffff"/></svg>') 8 8, auto;
}
a, button, input, select, textarea, .tab-btn, .game-card, .anime-card, .list-item, .social-item, .video-card, .link-btn, .player-nav-btn, .clip-category, .nav-link, .volume-slider {
  cursor: url('data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="6" fill="%23ffffff"/></svg>') 8 8, pointer !important;
}
*:active {
  cursor: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="8" fill="%23ffffff"/></svg>') 10 10, auto;
}

/* ===== WALLPAPER BACKGROUND ===== */
#wallpaper-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

#wallpaper-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1.5s ease;
  opacity: 1;
}

#wallpaper-container img.fade-out {
  opacity: 0;
}

#wallpaper-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

/* ===== PARTICLES ===== */
#tsparticles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* ===== NAVIGATION BAR ===== */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  padding: 10px 24px;
  border-radius: 50px;
  background: rgba(12, 8, 20, 0.85);
  border: 1px solid var(--border);
  /* backdrop-filter kept but reduced — small element, acceptable cost */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  animation: fadeInDown 0.8s ease;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 18px;
  border-radius: 50px;
transition: color 0.3s ease, background 0.3s ease;
  letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(124, 58, 237, 0.15);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  pointer-events: none;
  position: relative;
  z-index: 2;
}

/* ===== CRT TV FRAME ===== */
.crt-frame {
  position: relative;
  background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 50%, #1a1a1a 100%);
  border-radius: 20px;
  padding: 18px;
  box-shadow:
    0 0 0 2px #222,
    0 0 0 4px #111,
    inset 0 2px 4px rgba(255, 255, 255, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(124, 58, 237, 0.05);
  pointer-events: auto;
  z-index: 2;
  animation: crtTurnOn 0.6s ease-out;
}

/* Power LED */
.crt-led {
  position: absolute;
  bottom: 8px;
  right: 20px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e, 0 0 12px rgba(34, 197, 94, 0.4);
  animation: ledBlink 3s ease infinite;
}

@keyframes ledBlink {

  0%,
  90%,
  100% {
    opacity: 1;
  }

  95% {
    opacity: 0.4;
  }
}

/* Screen area */
.crt-screen {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

/* Scanlines — removed, was causing full-screen repeating-gradient repaint every frame */
/*
.crt-screen::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: repeating-linear-gradient(...);
  pointer-events: none;
  z-index: 20;
}
*/

/* Vignette */
.crt-screen::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 21;
}

/* TV turn-on animation */
@keyframes crtTurnOn {
  0% {
    transform: scaleY(0.005) scaleX(0.3);
    filter: brightness(3);
  }

  30% {
    transform: scaleY(0.005) scaleX(1);
    filter: brightness(2);
  }

  50% {
    transform: scaleY(1) scaleX(1);
    filter: brightness(1.5);
  }

  100% {
    transform: scaleY(1) scaleX(1);
    filter: brightness(1);
  }
}

/* ===== PROFILE CARD ===== */
.main-content {
  perspective: 800px;
}

.profile-card {
  max-width: 480px;
  width: 92%;
  padding: 40px;
  border-radius: 24px;
  background: rgba(12, 8, 20, 0.92);
  border: 1px solid var(--border);
  text-align: center;
  animation: fadeInUp 0.8s ease;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
  pointer-events: auto;
  z-index: 2;
  will-change: transform;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Holographic glare overlay */
.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(circle at var(--holo-x, 50%) var(--holo-y, 50%),
      rgba(255, 255, 255, 0.1) 0%,
      rgba(168, 85, 247, 0.06) 20%,
      rgba(59, 130, 246, 0.04) 40%,
      rgba(236, 72, 153, 0.04) 60%,
      transparent 80%);
}

/* Rainbow shimmer layer */
.profile-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  pointer-events: none;
  z-index: 11;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: linear-gradient(135deg,
      rgba(255, 0, 0, 0.03) 0%,
      rgba(255, 154, 0, 0.03) 10%,
      rgba(208, 222, 33, 0.03) 20%,
      rgba(79, 220, 74, 0.03) 30%,
      rgba(63, 218, 216, 0.03) 40%,
      rgba(47, 201, 226, 0.03) 50%,
      rgba(28, 127, 238, 0.03) 60%,
      rgba(95, 21, 242, 0.03) 70%,
      rgba(186, 12, 248, 0.03) 80%,
      rgba(251, 7, 217, 0.03) 90%,
      rgba(255, 0, 0, 0.03) 100%);
  background-size: 200% 200%;
  mix-blend-mode: color-dodge;
}

@media (prefers-reduced-motion: no-preference) {
  .profile-card::after {
    animation: holoShimmer 3s ease infinite;
  }
}

.profile-card:hover::before,
.profile-card:hover::after {
  opacity: 1;
}

.profile-card:hover {
  box-shadow:
    0 0 20px rgba(124, 58, 237, 0.15),
    0 0 60px rgba(124, 58, 237, 0.05);
}

@keyframes holoShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Quote Bubble */
.quote-bubble {
  position: relative;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 16px;
  padding: 12px 20px;
  margin: 0 auto 20px auto;
  max-width: 300px;
  min-height: 44px;
  text-align: center;
  font-size: 0.88rem;
  color: #ddd0ff;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  word-wrap: break-word;
}

.quote-bubble-arrow {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid rgba(124, 58, 237, 0.25);
}

#quote-text {
  transition: opacity 0.6s ease;
}

/* Avatar */
.avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 18px;
}

.avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.avatar:hover {
  border-color: var(--accent-light);
  transform: scale(1.05);
}

.status-dot {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 3px solid #0a0a0a;
  transition: background 0.3s ease;
}

.status-dot.online {
  background: #3ba55d;
}

.status-dot.idle {
  background: #faa61a;
}

.status-dot.dnd {
  background: #ed4245;
}

.status-dot.offline {
  background: #747f8d;
}

/* Username */
.username {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

/* Typed text */
.typed-wrapper {
  height: 28px;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.typed-cursor {
  color: var(--accent-light);
}

/* Activity Tabs */
.activity-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  justify-content: center;
}

.activity-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.activity-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.activity-tab.active {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--accent);
  color: var(--accent-light);
}

/* Tab Containers */
.tab-content {
  display: none;
  flex: 1;
  width: 100%;
  overflow-y: auto;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
.tab-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}
.tab-content.active {
  display: flex;
  flex-direction: column;
}

/* Hide scrollbar for inline swipe container as well */
#tiktok-swipe-container {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
#tiktok-swipe-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Activity Box */
.activity-box {
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.activity-pane {
  display: none;
  width: 100%;
}
.activity-pane.active {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.activity-box:hover {
  border-color: rgba(124, 58, 237, 0.3);
}

.activity-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}


.activity-box .activity-icon {
  width: 84px;
  height: 84px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.activity-box .activity-info {
  text-align: left;
  flex: 1;
  min-width: 0;
}

.activity-box .activity-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 2px;
}

.activity-box .activity-label.spotify {
  color: #1db954;
}

.activity-box .activity-label.playing {
  color: var(--accent-light);
}

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

.activity-box .activity-details {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-box .activity-state {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.8;
}

.game-time-wrapper {
  width: 100%;
  text-align: left;
  font-size: 0.75rem;
  color: var(--accent-light);
  margin-top: 4px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.activity-box .no-activity {
  color: var(--text-muted);
  font-size: 0.85rem;
  width: 100%;
  text-align: center;
}

/* Spotify Progress Bar */
.spotify-progress-wrapper {
  width: 100%;
  flex-basis: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 2px;
}

.spotify-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.spotify-progress-fill {
  height: 100%;
  background: #1db954;
  border-radius: 2px;
  width: 0%;
  transition: width 1s linear;
}

.spotify-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* ===== VOLUME WIDGET (Bottom-Left) ===== */
.volume-widget {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 16px;
  background: rgba(12, 8, 20, 0.90);
  /* backdrop-filter removed — fixed overlay always blurring wallpaper */
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.volume-btn {
  background: none;
  border: none;
  color: #7c3aed;
  font-size: 1rem;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

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

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

/* ===== PASSWORD MODAL ===== */
.password-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
}

.password-modal.hidden {
  display: none;
}

.password-box {
  padding: 32px;
  border-radius: 20px;
  text-align: center;
  max-width: 320px;
  width: 90%;
  background: rgba(12, 8, 20, 0.96);
  border: 1px solid var(--border);
  /* backdrop-filter removed */
}

.password-box h3 {
  margin-bottom: 8px;
  color: #fff;
}

.password-box p {
  color: #a0a0a0;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

#folder-password-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 1rem;
  margin-bottom: 8px;
  outline: none;
}

#folder-password-input:focus {
  border-color: #7c3aed;
}

.password-error {
  color: #ef4444;
  font-size: 0.85rem;
  min-height: 20px;
  margin-bottom: 16px;
}

.password-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn-primary,
.btn-secondary {
  padding: 10px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.btn-primary {
  background: #7c3aed;
  color: #fff;
}

.btn-primary:hover {
  background: #6d28d9;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ===== LOCK BADGE ON FOLDERS ===== */
.clip-category {
  position: relative;
}

.lock-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.65rem;
  color: #fbbf24;
  opacity: 0.7;
}

/* ===== CLIPS MODAL ===== */
.clips-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  /* backdrop-filter removed — full-viewport blur when modal opens = biggest Brave lag spike */
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.clips-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.clips-content {
  width: 90%;
  max-width: 1400px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  border-radius: 24px;
  background: rgba(10, 6, 18, 0.97);
  border: 1px solid var(--border);
  /* backdrop-filter removed — nested blur inside full-screen blur = double GPU cost */
  position: relative;
  animation: fadeInUp 0.4s ease;
}

/* Custom scrollbar */
.clips-content::-webkit-scrollbar {
  width: 6px;
}

.clips-content::-webkit-scrollbar-track {
  background: transparent;
}

.clips-content::-webkit-scrollbar-thumb {
  background: var(--accent-dark);
  border-radius: 3px;
}

.clips-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clips-close:hover {
  background: rgba(237, 66, 69, 0.2);
  color: #ed4245;
  border-color: rgba(237, 66, 69, 0.3);
}

.clips-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.clips-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.clips-back-btn:hover {
  background: rgba(124, 58, 237, 0.15);
  color: var(--text);
}

/* Category grid */
.clips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.clip-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.clip-category:hover {
  border-color: var(--accent);
  background: rgba(124, 58, 237, 0.1);
  transform: translateY(-2px);
}

.clip-category .folder-icon {
  font-size: 2rem;
  color: var(--accent-light);
  transition: transform 0.3s ease;
}

.clip-category:hover .folder-icon {
  transform: scale(1.1);
}

.clip-category .folder-name {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  text-transform: capitalize;
  transition: color 0.3s ease;
}

.clip-category:hover .folder-name {
  color: var(--text);
}

/* Video list inside category */
.clips-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clip-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.clip-item:hover {
  border-color: var(--accent);
  background: rgba(124, 58, 237, 0.08);
}

.clip-item .play-icon {
  font-size: 1.2rem;
  color: var(--accent-light);
  flex-shrink: 0;
}

.clip-item .clip-name {
  flex: 1;
  font-size: 0.9rem;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clip-item .clip-play-btn {
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--accent);
  border: none;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.clip-item .clip-play-btn:hover {
  background: var(--accent-light);
}

/* Empty category state */
.clips-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 20px;
  font-size: 0.9rem;
}

.clips-empty i {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.1);
}

/* Video player overlay */
.video-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.94);
  /* backdrop-filter removed */
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.video-overlay video {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  outline: none;
  cursor: auto !important; /* İmleç videonun donanım ivmelenmesini bozmasın */
}

.video-overlay .video-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-overlay .video-close:hover {
  background: rgba(237, 66, 69, 0.3);
}

/* ===== ANIME MODAL ===== */
.anime-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  /* backdrop-filter removed */
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.anime-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.anime-content {
  width: 90%;
  max-width: 1400px;
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: 24px;
  background: rgba(10, 6, 18, 0.97);
  border: 1px solid var(--border);
  /* backdrop-filter removed */
  position: relative;
  animation: fadeInUp 0.4s ease;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.anime-content::-webkit-scrollbar {
  display: none;
}

.anime-title-heading {
  flex-shrink: 0;
}

.anime-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}

.anime-close:hover {
  background: rgba(237, 66, 69, 0.2);
  color: #ed4245;
  border-color: rgba(237, 66, 69, 0.3);
}

.anime-title-heading {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

/* Anime Grid */
.anime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  overflow-y: auto;
  max-height: calc(80vh - 120px);
  padding-right: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 58, 237, 0.3) transparent;
  user-select: none;
}

.anime-grid::-webkit-scrollbar {
  width: 6px;
}

.anime-grid::-webkit-scrollbar-track {
  background: transparent;
}

.anime-grid::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.3);
  border-radius: 3px;
}

/* Anime Card */
.anime-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 16px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  /* backdrop-filter removed — repeated on many cards = too many GPU layers */
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.5s ease both;
}

.anime-card:hover {
  border-color: var(--accent);
  background: rgba(124, 58, 237, 0.08);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.15);
}

/* Placeholder cover image */
.anime-cover-placeholder {
  width: 120px;
  height: 160px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #6d28d9 100%);
  margin-bottom: 12px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.anime-card:hover .anime-cover-placeholder {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35);
}

/* Subtle shimmer effect on placeholder */
.anime-cover-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
      transparent 30%,
      rgba(255, 255, 255, 0.06) 50%,
      transparent 70%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* Cover image (loaded from API) */
.anime-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Pulsing placeholder while loading */
.anime-cover-loading {
  animation: coverPulse 1.8s ease-in-out infinite;
}

@keyframes coverPulse {

  0%,
  100% {
    opacity: 1;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #6d28d9 100%);
  }

  50% {
    opacity: 0.5;
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 50%, #a855f7 100%);
  }
}

/* Anime title text */
.anime-title {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  word-break: break-word;
  transition: color 0.3s ease;
}

.anime-card:hover .anime-title {
  color: var(--accent-light);
}

/* ===== COMMENTS MODAL ===== */
.comments-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  /* backdrop-filter removed */
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.comments-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.comments-content {
  width: 90%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  border-radius: 24px;
  background: rgba(10, 6, 18, 0.97);
  border: 1px solid var(--border);
  /* backdrop-filter removed */
  position: relative;
  animation: fadeInUp 0.4s ease;
}

.comments-content::-webkit-scrollbar {
  width: 6px;
}

.comments-content::-webkit-scrollbar-track {
  background: transparent;
}

.comments-content::-webkit-scrollbar-thumb {
  background: var(--accent-dark);
  border-radius: 3px;
}

.comments-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}

.comments-close:hover {
  background: rgba(237, 66, 69, 0.2);
  color: #ed4245;
  border-color: rgba(237, 66, 69, 0.3);
}

.comments-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.comment-form input,
.comment-form textarea {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: #7c3aed;
}

.comment-form textarea {
  resize: vertical;
  min-height: 80px;
}

.comments-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 20px 0;
}

.approved-comments h3 {
  font-size: 1rem;
  color: #a0a0a0;
  margin-bottom: 12px;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.no-comments {
  color: #666;
  font-size: 0.85rem;
  text-align: center;
}

/* ===== APPROVED COMMENTS ===== */
.approved-comment {
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(124, 58, 237, 0.15);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.comment-header strong {
  color: #c4b5fd;
  font-size: 0.9rem;
}

.comment-date {
  color: #666;
  font-size: 0.75rem;
}

.comment-text {
  color: #ddd;
  font-size: 0.88rem;
  line-height: 1.4;
  margin: 0;
}

.no-comments {
  color: #555;
  font-size: 0.85rem;
  text-align: center;
  padding: 20px 0;
}

/* ===== SOCIAL LINKS ===== */
.social-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.social-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.social-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #888;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.social-item:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.35);
  color: #fff;
  transform: translateY(-2px);
}

/* Icon-only: Steam, Spotify */
.social-item.icon-only {
  width: 40px;
  padding: 0;
}

/* Steam hover tooltip with profile picture */
.steam-link {
  position: relative;
  overflow: visible;
}

.steam-tooltip {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%) scale(0.85);
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(124, 58, 237, 0.4);
  background: #0a0a0a;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.steam-tooltip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.steam-link:hover .steam-tooltip {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* Riot items - compact to prevent overflow */
.riot-item {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  color: #bbb;
  letter-spacing: 0.5px;
  gap: 6px;
  cursor: default;
  padding: 0 10px;
  height: 36px;
}

.riot-logo {
  width: 16px;
  height: 16px;
  color: #7c3aed;
}

.riot-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  transform: none;
}

/* ===== CLIPS SUBTITLE ===== */
.clips-subtitle {
  color: #666;
  font-size: 0.85rem;
  font-style: italic;
  margin-top: -8px;
  margin-bottom: 20px;
  text-align: left;
}

/* ===== VIDEO THUMBNAIL GRID ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding: 4px;
}

.video-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-card:hover {
  transform: scale(1.03);
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.15);
}

.video-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background 0.3s ease;
}

.video-thumb-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.15);
}

.video-thumb-placeholder i {
  font-size: 2.5rem;
  color: rgba(124, 58, 237, 0.5);
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-card:hover .video-play-overlay {
  opacity: 1;
}

.video-play-overlay i {
  font-size: 3rem;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

/* ===== CLIP PLAYER OVERLAY ===== */
.clip-player-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  /* backdrop-filter removed */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 250;
}

.clip-player-overlay.hidden {
  display: none;
}

.clip-player-box {
  padding: 24px;
  border-radius: 20px;
  max-width: 90vw;
  width: auto;
  text-align: center;
  position: relative;
}

.clip-player-box .clips-close {
  position: absolute;
  top: -8px;
  right: -8px;
}

#clip-video {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  max-width: 100%;
  max-height: 70vh;
}

/* Player Wrapper & Nav Buttons */
.player-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.player-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(124, 58, 237, 0.2);
  color: #fff;
  font-size: 1.1rem;
display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.player-nav-btn:hover {
  background: rgba(124, 58, 237, 0.4);
  transform: scale(1.1);
}

.player-nav-btn.hidden {
  display: none;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .profile-card {
    padding: 28px 20px;
  }

  .username {
    font-size: 1.5rem;
  }

  .navbar {
    top: 12px;
    padding: 8px 16px;
    gap: 10px;
  }

  .nav-link {
    font-size: 0.8rem;
    padding: 5px 14px;
  }

  .volume-widget {
    bottom: 12px;
    left: 12px;
  }

  /* Riot nicks wrap on narrow screens */
  .social-row:has(.riot-item) {
    flex-wrap: wrap;
    justify-content: center;
  }

  .riot-item {
    flex: 1 1 100%;
    justify-content: center;
  }

  .clips-content {
    padding: 20px;
    width: 95%;
  }

  .clips-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
  }

  .anime-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .anime-content {
    padding: 20px;
    width: 95%;
  }

  .comments-content {
    padding: 20px;
    width: 95%;
  }

  .nav-link {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
}

@media (max-width: 480px) {
  .clips-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .anime-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .anime-card {
    min-height: 160px;
    padding: 12px 8px;
  }

  .anime-cover-placeholder {
    width: 90px;
    height: 120px;
  }
}

/* ===== CATBOX QT WIDGET ===== */
#catbox-qt-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1;
display: block;
  text-decoration: none;
  line-height: 0;
  pointer-events: auto;
}

#catbox-qt {
  width: auto;
  height: auto;
  max-width: 300px;
  max-height: 300px;
  object-fit: contain;
  object-position: right bottom;
  /* Lighter shadow — transition:filter is expensive on some browsers */
  filter: drop-shadow(0 3px 8px rgba(124, 58, 237, 0.3));
  transition: transform 0.3s ease;
  user-select: none;
  pointer-events: auto;
  display: block;
}

#catbox-qt-wrapper:hover #catbox-qt {
  transform: scale(1.12) rotate(4deg);
  filter: drop-shadow(0 5px 14px rgba(124, 58, 237, 0.5));
}

@media (hover: none) and (pointer: coarse) {
  * {
    cursor: auto !important;
  }

  .custom-cursor {
    display: none !important;
  }
}

/* ===== INTRO ANIMATION ===== */
#intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #050505;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-terminal {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  color: #a855f7;
  padding: 40px;
  max-width: 600px;
  width: 90%;
  transition: opacity 0.3s ease;
}

.intro-line {
  margin-bottom: 8px;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
}

.intro-cursor {
  display: inline-block;
  animation: introBlink 0.6s step-end infinite;
  color: #a855f7;
  font-size: 1rem;
}

@keyframes introBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

#intro-glitch-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 2;
}

/* ===== 8-BALL FORTUNE ===== */
#fortune-trigger {
  display: none;
}

#fortune-panel {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 48px;
  height: 48px;
  background: rgba(12, 8, 20, 0.88);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 50%;
  /* backdrop-filter removed from always-visible fixed element */
  z-index: 200;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.3s ease,
    box-shadow 0.3s ease;
}

#fortune-panel:hover {
  border-color: rgba(124, 58, 237, 0.6);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}

#fortune-panel.fortune-open {
  width: 320px;
  height: 180px;
  border-radius: 20px;
  background: rgba(15, 15, 15, 0.92);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 60px rgba(124, 58, 237, 0.08);
}

@media (max-width: 400px) {
  #fortune-panel.fortune-open {
    width: calc(100vw - 40px);
  }
}

.fortune-collapsed {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
line-height: 1;
  transition: opacity 0.15s ease;
}

#fortune-panel.fortune-open .fortune-collapsed {
  opacity: 0;
  pointer-events: none;
}

.fortune-expanded {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease 0.2s;
}

#fortune-panel.fortune-open .fortune-expanded {
  opacity: 1;
  pointer-events: auto;
}

.fortune-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fortune-ball {
  font-size: 1.3rem;
}

.fortune-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-light);
  flex: 1;
  letter-spacing: 0.5px;
}

.fortune-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.fortune-close-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.fortune-body {
  padding: 20px 18px 18px;
}

.fortune-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 14px;
  min-height: 50px;
  display: flex;
  align-items: center;
}

.fortune-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
  text-align: right;
}

/* ===== PET MASCOTS ===== */
.mascot {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 50;
user-select: none;
  /* will-change set via JS after element init */
}

.mascot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
  transition: transform 0.2s ease;
}

.mascot:hover img {
  filter: drop-shadow(0 4px 12px rgba(124, 58, 237, 0.4));
}

.mascot-walking img {
  animation: mascotWalk 0.4s ease-in-out infinite;
}

@keyframes mascotWalk {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-3deg);
  }

  75% {
    transform: rotate(3deg);
  }
}

.mascot-jump {
  animation: mascotJump 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

@keyframes mascotJump {
  0% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-30px);
  }

  100% {
    transform: translateY(0);
  }
}

.mascot-sleeping::after {
  content: '💤';
  position: absolute;
  top: -15px;
  right: -5px;
  font-size: 1rem;
  animation: sleepBubble 2s ease-in-out infinite;
}

@keyframes sleepBubble {

  0%,
  100% {
    opacity: 0.4;
    transform: translateY(0) scale(0.8);
  }

  50% {
    opacity: 1;
    transform: translateY(-8px) scale(1);
  }
}

/* Hide mascots on very small screens */
@media (max-width: 480px) {
  .mascot {
    display: none;
  }
}
/* ===== TIKTOK EMBED ===== */
.tiktok-embed-container {
  width: 100%;
  max-width: 325px;
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  background: #1a1a1d;
  position: relative;
  flex-shrink: 0;
}

.tiktok-embed-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  top: 0;
  left: 0;
}


/* ===== TIKTOK GRID & SWIPE ===== */
#tiktok-grid-container::-webkit-scrollbar {
  display: none;
}
/* ===== TIKTOK PINNED SECTION ===== */
.tiktok-pinned-section {
  width: 100%;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.tiktok-pinned-section.hidden {
  display: none;
}

.tiktok-pinned-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
.tiktok-pinned-header i {
  font-size: 14px;
}

.tiktok-pinned-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 5px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.tiktok-pinned-container::-webkit-scrollbar {
  display: none;
}

.tiktok-pinned-thumb {
  width: 70px;
  min-width: 70px;
  aspect-ratio: 9 / 16;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 0 2px var(--accent);
  position: relative;
}
.tiktok-pinned-thumb:hover {
  transform: scale(1.08);
}

.tiktok-pinned-thumb .pinned-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  background: rgba(0,0,0,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 9px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  cursor: pointer;
}
.tiktok-pinned-thumb:hover .pinned-remove {
  opacity: 1;
  pointer-events: auto;
}

/* ===== TIKTOK THUMBNAILS ===== */
.tiktok-thumbnail {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  transition: transform 0.2s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  position: relative;
}
.tiktok-thumbnail:hover {
  transform: scale(1.05);
}

/* Pin button on each thumbnail */
.tiktok-pin-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s, background 0.2s;
  z-index: 2;
  border: none;
}
.tiktok-thumbnail:hover .tiktok-pin-btn {
  opacity: 1;
}
.tiktok-pin-btn.pinned {
  opacity: 1;
  color: var(--accent);
  background: rgba(0,0,0,0.7);
}
.tiktok-swipe-item {
  width: 100%;
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}
/* TikTok Player container needs height 100% inside swipe item */
.tiktok-swipe-item .tiktok-embed-container {
  height: 90vh; /* Leave room for close button */
  max-height: 800px;
  margin: auto;
}

/* Custom TikTok V2 Player UI */
.tiktok-custom-player {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.tiktok-custom-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}

.tiktok-ui-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none; /* Let clicks pass through to video/play overlay */
}

/* Gradients for readability */
.tiktok-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
  z-index: -1;
}

.tiktok-footer-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  z-index: -1;
}

/* Header */
.tiktok-header {
  display: flex;
  align-items: center;
  padding: 16px;
  position: relative;
  pointer-events: auto; /* Buttons should be clickable */
}

.tiktok-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
  border: 1px solid rgba(255,255,255,0.2);
}

.tiktok-author-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.tiktok-author-name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}

.tiktok-follow-btn {
  background-color: #fe2c55;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 16px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.tiktok-follow-btn:hover {
  background-color: #e0274b;
}

/* Footer */
.tiktok-footer {
  padding: 16px;
  position: relative;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tiktok-desc {
  font-size: 14px;
  line-height: 1.4;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.tiktok-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Volume Control */
.tiktok-volume-control {
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.5);
  padding: 6px 12px;
  border-radius: 20px;
  gap: 8px;
  backdrop-filter: blur(4px);
}

.tiktok-volume-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}

.tiktok-volume-slider {
  width: 60px;
  height: 4px;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  outline: none;
}
.tiktok-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

/* Play/Pause Overlay */
.tiktok-click-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tiktok-play-icon {
  font-size: 48px;
  color: rgba(255,255,255,0.7);
  opacity: 0;
  transition: opacity 0.2s;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.tiktok-click-overlay.paused .tiktok-play-icon {
  opacity: 1;
}

/* TikTok Logo Watermark */
.tiktok-watermark {
  font-size: 24px;
  opacity: 0.8;
  filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.8));
}

/* ===== TIKTOK V2 CUSTOM PLAYER ===== */
.tiktok-v2-container {
  position: relative;
  width: 100%;
  height: auto; /* Video boyutuna göre otomatik ayarlanacak */
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  background-color: #000;
  font-family: 'Inter', sans-serif;
  margin: auto;
}

.tiktok-v2-bg {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  opacity: 0.6;
  z-index: 0;
}

.tiktok-v2-video {
  position: relative;
  width: 100%;
  height: auto;
  max-height: 90vh; /* Ekrana sığması için */
  object-fit: contain;
  z-index: 1;
  cursor: pointer;
  display: block; /* Altında boşluk kalmaması için */
}

.tiktok-v2-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none; /* Let clicks pass through to video by default */
}

/* Header */
.tiktok-v2-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 15px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
  pointer-events: auto;
}

.tiktok-v2-author {
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  margin-top: 5px;
  margin-left: 5px;
}

.tiktok-v2-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin-right: 12px;
  border: 1px solid rgba(255,255,255,0.4);
}

.tiktok-v2-author-info {
  display: flex;
  flex-direction: column;
}

.tiktok-v2-nickname {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  line-height: 1.2;
}

.tiktok-v2-handle {
  color: #e0e0e0;
  font-size: 13px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.tiktok-v2-logo {
  color: #fff;
  font-size: 28px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  opacity: 0.9;
  margin-top: 5px;
  margin-right: 5px;
}

/* Sidebar */
.tiktok-v2-sidebar {
  position: absolute;
  right: 15px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  pointer-events: auto;
}

.tiktok-v2-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  cursor: pointer;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  transition: transform 0.2s;
}
.tiktok-v2-action:hover {
  transform: scale(1.1);
}

.tiktok-v2-action i {
  font-size: 22px;
  margin-bottom: 2px;
}
.tiktok-v2-action span {
  font-size: 12px;
  font-weight: 700;
}

/* Description (Gizlendi, resimde açıklama yok) */
.tiktok-v2-desc {
  display: none;
}

/* Bottom Controls */
.tiktok-v2-bottom {
  position: absolute;
  bottom: 25px; /* Progress bar'ın hemen üstünde */
  left: 15px;
  display: flex;
  align-items: center;
  gap: 20px;
  pointer-events: auto;
}

.tiktok-v2-control-btn {
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  transition: opacity 0.2s;
}
.tiktok-v2-control-btn:hover {
  opacity: 0.8;
}

/* Volume Slider */
.tiktok-v2-vol-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tiktok-v2-vol-wrapper:hover .tiktok-v2-vol-slider {
  width: 80px;
  opacity: 1;
  visibility: visible;
}

.tiktok-v2-vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 0;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  outline: none;
  opacity: 0;
  visibility: hidden;
  transition: width 0.3s, opacity 0.3s;
  cursor: pointer;
}

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

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

/* Progress Bar */
.tiktok-v2-progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  pointer-events: auto;
  z-index: 5;
}

.tiktok-v2-progress-bar {
  height: 100%;
  background: #fff;
  width: 0%;
  transition: width 0.1s linear;
}

/* Center Play Button Overlay (when paused) */
.tiktok-v2-center-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 3;
}
.tiktok-v2-center-play i {
  color: rgba(255, 255, 255, 0.9);
  font-size: 32px;
  margin-left: 5px; /* Optik ortalama için */
}
.tiktok-v2-center-play.hidden {
  opacity: 0;
}

/* ===== V2 ACCESSIBILITY, LAYOUT & RESPONSIVE OVERRIDES ===== */
:root {
  --surface: rgba(12, 8, 20, 0.94);
  --surface-soft: rgba(255, 255, 255, 0.06);
  --accent-readable: #b98cff;
  --focus: #d8b4fe;
  --danger: #fb7185;
  --success: #4ade80;
}

body.dialog-open,
body.intro-open {
  overflow: hidden;
}

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

.hidden {
  display: none !important;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.activity-pane[hidden] {
  display: none !important;
}

.form-status {
  min-height: 24px;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.form-status:empty {
  display: none;
}

.form-status.success {
  color: var(--success);
}

.form-status.error,
.password-error {
  color: var(--danger);
}

.clips-content,
.anime-content,
.comments-content,
.password-box,
.clip-player-box {
  overscroll-behavior: contain;
}

.clip-category,
.video-card {
  width: 100%;
  color: inherit;
  font: inherit;
}

.video-card {
  padding: 0;
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-thumb-fallback {
  background: rgba(124, 58, 237, 0.15);
}

.anime-cover-missing::before {
  content: 'Kapak yok';
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.tiktok-content {
  flex-direction: column;
}

#tiktok-close-btn {
  z-index: 6;
}

.tiktok-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  width: 100%;
  padding: 20px 0;
}

.tiktok-feed-status {
  width: min(100%, 520px);
  margin: 28px auto 8px;
  padding: 28px 24px;
  display: grid;
  justify-items: center;
  gap: 9px;
  text-align: center;
  border: 1px solid rgba(185, 140, 255, 0.2);
  border-radius: 18px;
  background: rgba(124, 58, 237, 0.07);
}

.tiktok-feed-status.hidden {
  display: none;
}

.tiktok-feed-status-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent-readable);
  background: rgba(124, 58, 237, 0.18);
  font-size: 1.1rem;
}

.tiktok-feed-status[data-state="loading"] .tiktok-feed-status-icon {
  animation: tiktokStatusSpin 1s linear infinite;
}

@keyframes tiktokStatusSpin {
  to { transform: rotate(360deg); }
}

.tiktok-feed-status strong {
  font-size: 1rem;
}

.tiktok-feed-status p {
  max-width: 42ch;
  color: var(--text-muted);
  line-height: 1.55;
}

.tiktok-feed-status code {
  color: #fff;
}

.tiktok-thumbnail {
  background-image: linear-gradient(145deg, rgba(124, 58, 237, 0.24), rgba(9, 7, 16, 0.94));
}

.tiktok-thumbnail::before {
  content: '▶';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.62);
  font-size: 1.25rem;
  transition: opacity 0.2s ease;
}

.tiktok-thumbnail.has-cover::before {
  opacity: 0;
}

.tiktok-grid-sentinel {
  height: 50px;
  grid-column: 1 / -1;
}

.tiktok-player-overlay {
  z-index: 300;
  flex-direction: column;
  background: #000;
}

.tiktok-swipe-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

.tiktok-swipe-sentinel {
  width: 100%;
  min-height: 1px;
}

.tiktok-thumbnail,
.tiktok-pinned-thumb {
  isolation: isolate;
}

.tiktok-open-btn,
.pinned-locate {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  background: transparent;
}

.tiktok-pin-btn,
.pinned-remove {
  z-index: 3;
}

.tiktok-v2-action,
.tiktok-v2-control-btn {
  border: 0;
  background: transparent;
  color: #fff;
}

.tiktok-v2-pin-action {
  padding: 4px;
}

.tiktok-v2-control-btn {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
}

.tiktok-v2-progress-container {
  min-height: 8px;
}

.intro-open #intro-overlay {
  opacity: 1;
}

#intro-overlay {
  transition: opacity 0.4s ease;
}

#intro-overlay.intro-leaving {
  opacity: 0;
  pointer-events: none;
}

.intro-terminal-hidden {
  opacity: 0;
}

#intro-glitch-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(124, 58, 237, 0.07) 0,
    rgba(124, 58, 237, 0.07) 1px,
    transparent 1px,
    transparent 4px
  );
}

#intro-glitch-overlay.active {
  display: block;
  animation: glitchFade 0.5s ease-out forwards;
}

@keyframes glitchFade {
  0% { opacity: 1; filter: brightness(2) contrast(1.5) hue-rotate(0deg); }
  30% { filter: brightness(1.5) contrast(1.2) hue-rotate(30deg); }
  60% { filter: brightness(1.2) contrast(1) hue-rotate(-20deg); }
  100% { opacity: 0; filter: brightness(1) contrast(1) hue-rotate(0deg); }
}

.noscript-message {
  position: fixed;
  inset: auto 20px 20px;
  z-index: 99999;
  padding: 12px;
  border-radius: 12px;
  background: #18181b;
  color: #fff;
  text-align: center;
}
