/* ========== VARIABLES & RESET ========== */
    :root {
      --bg-deep: #020203;
      --bg-card: #0a0a0e;

      --accent-p: #7c3aed;
      /* Electric Purple */
      --accent-s: #f43f5e;
      /* Hot Pink */
      --accent-t: #3b82f6;
      /* Cyan Blue */

      --glass: rgba(255, 255, 255, 0.05);
      --glass-border: rgba(255, 255, 255, 0.1);

      --text-main: #ffffff;
      --text-muted: #94a3b8;

      --radius-lg: 32px;
      --radius-md: 20px;

      --font-stack: 'Outfit', sans-serif;
      --font-mono: 'Space Grotesk', monospace;

      --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      outline: none;
    }

    body {
      background-color: var(--bg-deep);
      color: var(--text-main);
      font-family: var(--font-stack);
      overflow-x: hidden;
      min-height: 100vh;
    }

    /* --- CALM ORB BACKGROUND --- */
    .bg-aurora {
      position: fixed;
      inset: 0;
      z-index: -1;
      background: #040406;
      overflow: hidden;
    }

    /* Individual floating orb */
    .orb {
      position: absolute;
      border-radius: 50%;
      filter: blur(90px);
      opacity: 0;
      animation: orb-drift linear infinite;
    }

    .orb-1 {
      width: 600px;
      height: 600px;
      background: radial-gradient(circle, rgba(109, 40, 217, 0.28) 0%, transparent 70%);
      left: -10%;
      top: 10%;
      animation-duration: 28s;
      animation-delay: 0s;
    }

    .orb-2 {
      width: 480px;
      height: 480px;
      background: radial-gradient(circle, rgba(79, 70, 229, 0.22) 0%, transparent 70%);
      right: -5%;
      top: 40%;
      animation-duration: 36s;
      animation-delay: -12s;
    }

    .orb-3 {
      width: 420px;
      height: 420px;
      background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
      left: 35%;
      bottom: -5%;
      animation-duration: 32s;
      animation-delay: -6s;
    }

    .orb-4 {
      width: 340px;
      height: 340px;
      background: radial-gradient(circle, rgba(30, 64, 175, 0.18) 0%, transparent 70%);
      left: 60%;
      top: 5%;
      animation-duration: 42s;
      animation-delay: -20s;
    }

    .orb-5 {
      width: 280px;
      height: 280px;
      background: radial-gradient(circle, rgba(167, 139, 250, 0.15) 0%, transparent 70%);
      left: 20%;
      top: 55%;
      animation-duration: 48s;
      animation-delay: -30s;
    }

    /* Tiny pinpoint stars */
    .stars-static {
      position: absolute;
      inset: 0;
      background-image:
        radial-gradient(1px 1px at 8% 12%, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(1px 1px at 22% 68%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 45% 33%, rgba(255, 255, 255, 0.25), transparent),
        radial-gradient(1px 1px at 67% 82%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 83% 17%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 91% 55%, rgba(255, 255, 255, 0.15), transparent),
        radial-gradient(1.5px 1.5px at 37% 90%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 55% 5%, rgba(255, 255, 255, 0.25), transparent);
      background-size: 800px 800px;
      opacity: 0.6;
    }

    @keyframes orb-drift {
      0% {
        opacity: 0;
        transform: translate(0px, 0px) scale(1);
      }

      8% {
        opacity: 1;
      }

      25% {
        opacity: 1;
        transform: translate(30px, -50px) scale(1.05);
      }

      50% {
        opacity: 1;
        transform: translate(-20px, -80px) scale(1.08);
      }

      75% {
        opacity: 1;
        transform: translate(20px, -40px) scale(1.04);
      }

      92% {
        opacity: 1;
      }

      100% {
        opacity: 0;
        transform: translate(0px, 0px) scale(1);
      }
    }

    /* --- LAYOUT UTILITIES --- */
    .container {
      max-width: 1600px;
      margin: 0 auto;
      padding: 0 5vw;
    }

    .section-spacing {
      margin-bottom: 120px;
    }

    /* --- RYNIXX HEADER REIMAGINED --- */
    .ryn-header-container {
      display: flex;
      justify-content: center;
      padding: 80px 0 60px;
      position: relative;
    }

    .ryn-big-logo {
      font-family: var(--font-stack);
      font-weight: 900;
      font-size: clamp(4rem, 8vw, 8rem);
      line-height: 0.9;
      text-transform: uppercase;
      letter-spacing: -2px;
      color: transparent;
      /* Static Gradient */
      background: linear-gradient(to bottom, #ffffff 30%, #94a3b8 100%);
      -webkit-background-clip: text;
      background-clip: text;
      position: relative;
      z-index: 2;
      filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    }

    /* Removed .ryn-letter and keyframes for performance */

    .ryn-big-logo span {
      display: block;
      font-size: 0.4em;
      letter-spacing: 10px;
      color: var(--accent-p);
      text-align: right;
      margin-top: 10px;
      text-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
      font-family: var(--font-mono);
      -webkit-text-fill-color: initial;
      /* Reset clip for span */
      background: none;
    }



    /* --- TRENDING ROW (Top 5) --- */
    .trend-row {
      display: flex;
      gap: 14px;
      overflow-x: auto;
      padding-bottom: 12px;
      scroll-behavior: smooth;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: thin;
      scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
    }

    .trend-row::-webkit-scrollbar {
      height: 4px;
    }

    .trend-row::-webkit-scrollbar-track {
      background: transparent;
    }

    .trend-row::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.15);
      border-radius: 4px;
    }

    .t-card {
      flex: 0 0 240px;
      height: 135px;
      border-radius: 16px;
      overflow: hidden;
      position: relative;
      cursor: pointer;
      border: 1px solid var(--glass-border);
      background: #111;
      transition: all 0.4s var(--ease-out);
    }

    .t-card:hover {
      border-color: var(--accent-p);
      transform: translateY(-6px) scale(1.03);
      box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.5),
        0 0 24px rgba(124, 58, 237, 0.15);
    }

    .t-card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0.7;
      transition: all 0.5s var(--ease-out);
    }

    .t-card:hover img {
      opacity: 0.4;
      transform: scale(1.08);
    }

    .t-card-info {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 28px 14px 12px;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 30%, transparent 100%);
    }

    .t-card-title {
      font-size: 0.85rem;
      font-weight: 800;
      text-transform: uppercase;
      color: white;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* Trend Rank Badge */
    .t-rank {
      position: absolute;
      top: -6px;
      left: -6px;
      width: 34px;
      height: 34px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font-mono);
      font-weight: 800;
      font-size: 1rem;
      border-radius: 10px;
      transform: rotate(-8deg);
      box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.5);
      z-index: 10;
      border: 1px solid rgba(255, 255, 255, 0.2);
      text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
    }

    .t-rank-1 {
      background: linear-gradient(135deg, #FFD700, #FDB931);
      color: #333;
      box-shadow: 0 0 14px rgba(255, 215, 0, 0.4);
    }

    .t-rank-2 {
      background: linear-gradient(135deg, #E0E0E0, #BDBDBD);
      color: #333;
    }

    .t-rank-3 {
      background: linear-gradient(135deg, #CD7F32, #A0522D);
      color: white;
    }

    .t-rank-4,
    .t-rank-5 {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(8px);
      color: var(--text-muted);
    }

    @media (max-width: 600px) {
      .t-card {
        flex: 0 0 192px;
        height: 108px;
      }
    }

    /* --- LIBRARY (CrazyGames-style Responsive Grid) --- */
    .lib-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 14px;
      grid-auto-flow: dense;
    }

    /* Card wrapper */
    .l-card-wrap {
      display: block;
      cursor: pointer;
    }

    .l-card {
      width: 100%;
      aspect-ratio: 16 / 9;
      background: var(--bg-card);
      border-radius: 14px;
      position: relative;
      overflow: hidden;
      border: 1px solid transparent;
      transition: 0.35s;
    }

    .l-card:hover {
      transform: translateY(-6px) scale(1.03);
      border-color: rgba(124, 58, 237, 0.5);
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(124, 58, 237, 0.15);
      z-index: 10;
    }

    .l-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: 0.4s;
      border-radius: 14px;
    }

    .l-card:hover .l-img {
      filter: brightness(0.35) blur(2px);
      transform: scale(1.06);
    }

    .l-content {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 16px;
      text-align: center;
      opacity: 0;
      transform: translateY(14px);
      transition: 0.3s var(--ease-out);
    }

    .l-card:hover .l-content {
      opacity: 1;
      transform: translateY(0);
    }

    .l-title {
      font-size: 1.1rem;
      font-weight: 700;
      text-transform: uppercase;
      margin-bottom: 10px;
    }

    .l-btn {
      background: white;
      color: black;
      border: none;
      padding: 9px 22px;
      border-radius: 99px;
      font-weight: 700;
      font-size: 0.85rem;
      transition: 0.2s;
    }

    .l-btn:hover {
      background: var(--accent-p);
      color: white;
      transform: scale(1.05);
    }



    /* --- BENTO SPANS UTILITIES --- */
    .span-2-col {
      grid-column: span 2;
    }

    /* span-2-row removed to prevent aspect ratio issues with 16:9 images */

    .span-big {
      grid-column: span 2;
      grid-row: span 2;
    }

    /* --- SEARCH BAR --- */
    .search-wrapper {
      position: relative;
      width: 300px;
    }

    .search-input {
      width: 100%;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: white;
      padding: 12px 20px 12px 45px;
      border-radius: 99px;
      font-family: var(--font-mono);
      font-size: 1rem;
      transition: 0.3s;
    }

    .search-input:focus {
      background: rgba(255, 255, 255, 0.1);
      border-color: var(--accent-p);
      box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
    }

    .search-icon {
      position: absolute;
      left: 18px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted);
      pointer-events: none;
    }

    /* Small mobile tweaks */
    @media(max-width: 600px) {
      .lib-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        grid-auto-rows: 100px;
        gap: 8px;
      }

      .sec-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
      }

      .search-wrapper {
        width: 100%;
      }

      .filter-controls {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
      }
    }

    /* --- SECTION HEADERS (CrazyGames Style) --- */
    .sec-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 24px;
      padding-bottom: 16px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .sec-title {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 1.1rem;
      font-weight: 800;
      text-transform: uppercase;
      color: white;
      letter-spacing: 0.5px;
    }

    .sec-title .sec-chip {
      display: inline-block;
      width: 8px;
      height: 24px;
      border-radius: 4px;
      background: linear-gradient(180deg, var(--accent-p), var(--accent-s));
    }

    .sec-title span {
      color: var(--text-muted);
      display: inline;
      font-size: inherit;
      line-height: inherit;
    }

    /* --- DISABLED STATE --- */
    .disabled {
      filter: grayscale(100%) opacity(0.4);
      pointer-events: none !important;
      cursor: not-allowed !important;
    }

    .disabled .b-rank-badge {
      display: none;
    }

    /* Responsive */

    /* LABEL BADGES 3D STYLE */
    .g-labels {
      position: absolute;
      top: 8px;
      right: 8px;
      display: flex;
      flex-direction: column;
      gap: 6px;
      align-items: flex-end;
      z-index: 25;
      pointer-events: none;
    }

    .g-label {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 10px;
      border-radius: 7px;
      font-family: var(--font-mono);
      font-size: 0.72rem;
      font-weight: 800;
      color: white;
      text-transform: uppercase;
      letter-spacing: 0.5px;

      /* 3D EFFECT */
      box-shadow:
        0 3px 0 rgba(0, 0, 0, 0.35),
        0 8px 16px rgba(0, 0, 0, 0.4);
      transform: rotate(2deg);
      border: 1px solid rgba(255, 255, 255, 0.2);
      white-space: nowrap;
    }

    /* Icon / Emoji Styling */
    .g-label .l-icon {
      font-size: 1.2rem;
      /* Bigger Icon */
      filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.3));
      line-height: 1;
    }

    /* Pulsing for Important Labels */
    @keyframes pulse-pop {
      0% {
        transform: scale(1) rotate(2deg);
      }

      50% {
        transform: scale(1.1) rotate(2deg);
      }

      100% {
        transform: scale(1) rotate(2deg);
      }
    }

    .g-label.urgent-important {
      animation: pulse-pop 1.5s infinite;
      border: 1px solid rgba(255, 255, 255, 0.6);
      box-shadow:
        0 5px 0 rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 255, 255, 0.3);
    }

    /* --- RYNIXX ORIGINAL BADGE (FIXED: BOTTOM) --- */
    .ryn-original-badge {
      position: absolute;
      top: auto;
      /* Ensure top is unset */
      bottom: 0;
      /* Force bottom */
      left: 0;
      right: 0;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 10%, transparent 100%);
      padding: 30px 10px 10px 10px;
      color: white;
      font-family: var(--font-mono);
      font-weight: 700;
      font-size: 0.7rem;
      z-index: 5;
      display: flex;
      align-items: flex-end;
      gap: 8px;
      pointer-events: none;
      transition: opacity 0.3s ease;
      /* Fade out on hover */
      border-bottom-left-radius: var(--radius-md);
      border-bottom-right-radius: var(--radius-md);
    }

    /* Hide badge on hover to prevent overlap with buttons */
    .l-card:hover .ryn-original-badge {
      opacity: 0;
    }

    .ryn-original-badge span {
      background: var(--accent-p);
      padding: 3px 8px;
      border-radius: 4px;
      font-size: 0.7rem;
      box-shadow: 0 4px 10px rgba(124, 58, 237, 0.5);
      letter-spacing: 1px;
    }

    .ryn-original-badge i {
      font-size: 0.8rem;
    }

    /* --- FILTER TOGGLE (CrazyGames Pill Style) --- */
    .filter-controls {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .filter-btn {
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.08);
      color: var(--text-muted);
      font-family: var(--font-mono);
      font-weight: 700;
      font-size: 0.78rem;
      padding: 7px 16px;
      border-radius: 10px;
      cursor: pointer;
      transition: 0.25s;
      display: flex;
      align-items: center;
      gap: 6px;
      letter-spacing: 0.4px;
      text-transform: uppercase;
    }

    .filter-btn.active {
      background: var(--accent-p);
      border-color: var(--accent-p);
      color: white;
      box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
    }

    .filter-btn:hover:not(.active) {
      color: white;
      background: rgba(255, 255, 255, 0.1);
      border-color: rgba(255, 255, 255, 0.15);
    }

    /* UPDATED tab — amber accent when active */
    #btn-updated.active {
      background: linear-gradient(135deg, #d97706, #f59e0b);
      border-color: #f59e0b;
      box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
    }

    /* ========== FLOATING NAV BAR ========== */
    .ryn-nav {
      position: fixed;
      top: 16px;
      left: 50%;
      transform: translateX(-50%);
      width: calc(100% - 40px);
      max-width: 900px;
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 28px;
      border-radius: 99px;
      background: rgba(10, 10, 14, 0.55);
      backdrop-filter: blur(24px) saturate(1.6);
      -webkit-backdrop-filter: blur(24px) saturate(1.6);
      border: 1px solid rgba(255, 255, 255, 0.08);
      box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
      transition: all 0.5s var(--ease-out);
    }

    .ryn-nav.scrolled {
      top: 10px;
      padding: 10px 24px;
      background: rgba(10, 10, 14, 0.82);
      box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(124, 58, 237, 0.08);
    }

    /* Nav Brand */
    .nav-brand {
      font-family: var(--font-stack);
      font-weight: 900;
      font-size: 1.3rem;
      text-transform: uppercase;
      letter-spacing: -0.5px;
      color: white;
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: 0.3s;
      cursor: pointer;
    }

    .nav-brand:hover {
      color: var(--accent-p);
      filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.5));
    }

    .nav-brand .brand-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--accent-p);
      box-shadow: 0 0 10px var(--accent-p), 0 0 20px rgba(124, 58, 237, 0.3);
      animation: dot-pulse 2s ease-in-out infinite;
    }

    @keyframes dot-pulse {

      0%,
      100% {
        opacity: 1;
        box-shadow: 0 0 10px var(--accent-p);
      }

      50% {
        opacity: 0.5;
        box-shadow: 0 0 20px var(--accent-p), 0 0 40px rgba(124, 58, 237, 0.4);
      }
    }

    /* Nav Links */
    .nav-links {
      display: flex;
      align-items: center;
      gap: 6px;
      list-style: none;
    }

    .nav-links a {
      position: relative;
      color: var(--text-muted);
      text-decoration: none;
      font-family: var(--font-mono);
      font-weight: 600;
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      padding: 8px 16px;
      border-radius: 99px;
      transition: all 0.35s var(--ease-out);
      overflow: hidden;
    }

    .nav-links a::after {
      content: '';
      position: absolute;
      bottom: 4px;
      left: 50%;
      width: 0;
      height: 2px;
      background: linear-gradient(90deg, var(--accent-p), var(--accent-s));
      border-radius: 2px;
      transform: translateX(-50%);
      transition: width 0.35s var(--ease-out);
      box-shadow: 0 0 8px rgba(124, 58, 237, 0.5);
    }

    .nav-links a:hover {
      color: white;
      background: rgba(255, 255, 255, 0.06);
    }

    .nav-links a:hover::after {
      width: 60%;
    }

    .nav-links a.active-link {
      color: white;
      background: rgba(124, 58, 237, 0.15);
    }

    .nav-links a.active-link::after {
      width: 60%;
    }

    /* Nav Icon Buttons */
    .nav-actions {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .nav-icon-btn {
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.08);
      color: var(--text-muted);
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 0.9rem;
      transition: all 0.35s var(--ease-out);
    }

    .nav-icon-btn:hover {
      color: white;
      background: rgba(124, 58, 237, 0.2);
      border-color: rgba(124, 58, 237, 0.4);
      box-shadow: 0 0 16px rgba(124, 58, 237, 0.25);
      transform: scale(1.1);
    }

    /* Hamburger */
    .nav-hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      padding: 4px;
      z-index: 1001;
    }

    .nav-hamburger span {
      display: block;
      width: 22px;
      height: 2px;
      background: var(--text-muted);
      border-radius: 2px;
      transition: all 0.35s var(--ease-out);
      transform-origin: center;
    }

    .nav-hamburger:hover span {
      background: white;
    }

    .nav-hamburger.open span:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
      background: var(--accent-p);
    }

    .nav-hamburger.open span:nth-child(2) {
      opacity: 0;
      transform: scaleX(0);
    }

    .nav-hamburger.open span:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
      background: var(--accent-p);
    }

    /* Mobile Nav */
    @media (max-width: 700px) {
      .ryn-nav {
        width: calc(100% - 24px);
        padding: 12px 20px;
      }

      .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        background: rgba(2, 2, 3, 0.95);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        opacity: 0;
        visibility: hidden;
        transform: scale(0.95);
        transition: all 0.4s var(--ease-out);
        z-index: 999;
      }

      .nav-links.mobile-open {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
      }

      .nav-links a {
        font-size: 1.4rem;
        padding: 14px 32px;
      }

      .nav-hamburger {
        display: flex;
      }

      .nav-actions {
        display: none;
      }
    }

    /* ========== SIDEBAR LAYOUT ========== */

    /* On desktop: sidebar + main side-by-side. On mobile: sidebar hidden. */
    .page-layout {
      display: flex;
      min-height: 100vh;
    }

    /* LEFT SIDEBAR */
    .ryn-sidebar {
      width: 220px;
      flex-shrink: 0;
      background: rgba(8, 8, 12, 0.97);
      border-right: 1px solid rgba(255, 255, 255, 0.05);
      position: fixed;
      left: 0;
      top: 0;
      height: 100vh;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      z-index: 60;
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      scrollbar-width: none;
    }

    .ryn-sidebar::-webkit-scrollbar {
      display: none;
    }

    .sidebar-brand {
      padding: 22px 20px 18px;
      display: flex;
      align-items: center;
      gap: 10px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      text-decoration: none;
      cursor: pointer;
    }

    .sidebar-brand-logo {
      font-family: var(--font-stack);
      font-weight: 900;
      font-size: 1.15rem;
      text-transform: uppercase;
      letter-spacing: -0.5px;
      color: white;
    }

    .sidebar-brand-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--accent-p);
      box-shadow: 0 0 8px var(--accent-p);
      animation: dot-pulse 2s ease-in-out infinite;
      flex-shrink: 0;
    }

    .sidebar-section-label {
      padding: 18px 18px 6px;
      font-size: 0.62rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      color: #3d4a5c;
    }

    .sidebar-nav {
      display: flex;
      flex-direction: column;
      gap: 2px;
      padding: 0 8px;
    }

    .sidebar-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 9px 12px;
      border-radius: 10px;
      color: var(--text-muted);
      font-family: var(--font-stack);
      font-weight: 600;
      font-size: 0.88rem;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.2s;
      border: 1px solid transparent;
    }

    .sidebar-item:hover {
      background: rgba(255, 255, 255, 0.06);
      color: white;
    }

    .sidebar-item.active {
      background: rgba(124, 58, 237, 0.12);
      border-color: rgba(124, 58, 237, 0.2);
      color: #a78bfa;
    }

    .sidebar-item i {
      width: 18px;
      text-align: center;
      font-size: 0.9rem;
      opacity: 0.8;
    }

    .sidebar-item.active i {
      opacity: 1;
    }

    /* Sidebar suggest button */
    .sidebar-suggest {
      margin: auto 12px 16px;
      padding: 10px 14px;
      background: linear-gradient(135deg, var(--accent-p), #a855f7);
      border: none;
      border-radius: 12px;
      color: white;
      font-family: var(--font-stack);
      font-weight: 700;
      font-size: 0.82rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: all 0.25s;
      text-decoration: none;
    }

    .sidebar-suggest:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
    }

    /* MAIN CONTENT — offset for sidebar on desktop */
    .main-content {
      margin-left: 220px;
      flex: 1;
      min-width: 0;
    }

    /* Hide the old floating top nav on desktop (sidebar takes over) */
    @media (min-width: 900px) {
      .ryn-nav {
        display: none;
      }
    }

    /* On mobile: sidebar = hidden, top nav = shown */
    @media (max-width: 899px) {
      .ryn-sidebar {
        display: none;
      }

      .main-content {
        margin-left: 0;
        padding-top: 72px;
      }
    }

    /* Push body content below nav (mobile only, handled above) */
    body {
      padding-top: 0;
    }

    /* ========== SECTION ROWS (shared: Recently Played, Trending, Updated) ========== */
    .row-section {
      margin-bottom: 44px;
    }

    .row-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
    }

    .row-head-left {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .row-head-icon {
      width: 32px;
      height: 32px;
      border-radius: 9px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.9rem;
    }

    .row-head h2 {
      font-size: 1rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .row-head h2 span {
      color: var(--text-muted);
      font-weight: 500;
    }

    .row-see-all {
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--text-muted);
      cursor: pointer;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.08);
      padding: 5px 12px;
      border-radius: 8px;
      transition: 0.2s;
      text-transform: uppercase;
      letter-spacing: 0.3px;
    }

    .row-see-all:hover {
      color: white;
      background: rgba(255, 255, 255, 0.1);
    }


    .recent-head {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 20px;
      padding-bottom: 14px;
      border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    }

    .recent-head h2 {
      font-size: 1.2rem;
      font-weight: 700;
      text-transform: uppercase;
      color: var(--text-muted);
      letter-spacing: 1px;
    }

    .recent-head h2 span {
      color: white;
    }

    .recent-head i {
      font-size: 1.2rem;
      color: var(--accent-t);
    }

    .recent-scroll {
      display: flex;
      gap: 14px;
      overflow-x: auto;
      padding-bottom: 12px;
      scroll-behavior: smooth;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: thin;
      scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
    }

    .recent-scroll::-webkit-scrollbar {
      height: 4px;
    }

    .recent-scroll::-webkit-scrollbar-track {
      background: transparent;
    }

    .recent-scroll::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.15);
      border-radius: 4px;
    }

    .recent-card {
      flex: 0 0 150px;
      height: 100px;
      border-radius: 14px;
      overflow: hidden;
      position: relative;
      cursor: pointer;
      border: 1px solid rgba(255, 255, 255, 0.06);
      transition: all 0.35s var(--ease-out);
      background: #111;
    }

    .recent-card:hover {
      border-color: var(--accent-p);
      transform: translateY(-4px) scale(1.03);
      box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(124, 58, 237, 0.15);
    }

    .recent-card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s var(--ease-out);
    }

    .recent-card:hover img {
      transform: scale(1.1);
    }

    .recent-card-info {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 24px 10px 8px;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 20%, transparent 100%);
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .recent-card-title {
      font-size: 0.75rem;
      font-weight: 700;
      color: white;
      text-transform: uppercase;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .recent-card-time {
      font-size: 0.65rem;
      color: var(--text-muted);
      font-family: var(--font-mono);
    }

    @media (max-width: 600px) {
      .recent-card {
        flex: 0 0 120px;
        height: 80px;
      }
    }

    /* ========== SUGGEST NAV BUTTON ========== */
    .nav-suggest-btn {
      background: linear-gradient(135deg, var(--accent-p), #a855f7);
      color: white;
      border: none;
      padding: 8px 16px;
      border-radius: 10px;
      font-family: var(--font-stack);
      font-weight: 700;
      font-size: 0.78rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 7px;
      transition: all 0.3s var(--ease-out);
      letter-spacing: 0.3px;
      white-space: nowrap;
    }

    .nav-suggest-btn:hover {
      transform: scale(1.06);
      box-shadow: 0 4px 20px rgba(124, 58, 237, 0.5);
    }

    .nav-suggest-btn i {
      font-size: 0.85rem;
    }

    @media (max-width: 600px) {
      .nav-suggest-btn {
        padding: 7px 10px;
        font-size: 0;
        gap: 0;
      }

      .nav-suggest-btn i {
        font-size: 0.95rem;
      }
    }

    .sug-new-badge {
      display: inline-block;
      background: rgba(16, 185, 129, 0.15);
      color: #10b981;
      font-size: 0.65rem;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: 6px;
      margin-left: 8px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      vertical-align: middle;
    }

    /* ========== SUGGEST MODAL ========== */
    .suggest-overlay {
      position: fixed;
      inset: 0;
      z-index: 1000;
      background: rgba(0, 0, 0, 0.7);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      visibility: hidden;
      transition: all 0.35s var(--ease-out);
    }

    .suggest-overlay.open {
      opacity: 1;
      visibility: visible;
    }

    .suggest-modal {
      background: linear-gradient(170deg, #0e0e14 0%, #0a0a10 100%);
      border: 1px solid rgba(124, 58, 237, 0.2);
      border-radius: 28px;
      width: 90%;
      max-width: 640px;
      max-height: 90vh;
      display: flex;
      flex-direction: column;
      box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(124, 58, 237, 0.1);
      transform: translateY(30px) scale(0.96);
      transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
      overflow: hidden;
    }

    @media (max-width: 480px) {
      .suggest-modal {
        width: 95%;
        max-height: 90vh;
        border-radius: 20px;
      }

      .suggest-modal-header {
        padding: 18px 20px 14px;
      }

      .suggest-search-wrap {
        padding: 12px 20px;
      }

      .suggest-list {
        padding: 0 20px 12px;
      }

      .suggest-footer {
        padding: 12px 20px 20px;
      }
    }

    .suggest-overlay.open .suggest-modal {
      transform: translateY(0) scale(1);
    }

    .suggest-modal-header {
      padding: 24px 28px 18px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .suggest-modal-header h2 {
      font-size: 1.3rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .suggest-modal-header h2 i {
      color: var(--accent-p);
      font-size: 1.1rem;
    }

    .suggest-close {
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.08);
      color: var(--text-muted);
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 1rem;
      transition: all 0.25s;
    }

    .suggest-close:hover {
      background: rgba(239, 68, 68, 0.15);
      color: #f43f5e;
      border-color: rgba(239, 68, 68, 0.3);
    }

    .suggest-search-wrap {
      padding: 16px 28px;
    }

    .suggest-search {
      width: 100%;
      padding: 12px 18px 12px 44px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 14px;
      color: white;
      font-family: var(--font-stack);
      font-size: 0.9rem;
      transition: 0.3s;
    }

    .suggest-search:focus {
      border-color: var(--accent-p);
      box-shadow: 0 0 20px rgba(124, 58, 237, 0.15);
      background: rgba(255, 255, 255, 0.06);
    }

    .suggest-search-wrap {
      position: relative;
    }

    .suggest-search-wrap i {
      position: absolute;
      left: 44px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted);
      font-size: 0.85rem;
      pointer-events: none;
    }

    .suggest-list {
      flex: 1;
      overflow-y: auto;
      padding: 0 28px 16px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      max-height: 340px;
      scrollbar-width: thin;
      scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
    }

    .suggest-list::-webkit-scrollbar {
      width: 4px;
    }

    .suggest-list::-webkit-scrollbar-track {
      background: transparent;
    }

    .suggest-list::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.15);
      border-radius: 4px;
    }

    .suggest-item {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 14px 18px;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.05);
      border-radius: 14px;
      transition: all 0.25s;
    }

    .suggest-item:hover {
      background: rgba(124, 58, 237, 0.08);
      border-color: rgba(124, 58, 237, 0.2);
    }

    .suggest-item-name {
      flex: 1;
      font-weight: 600;
      font-size: 0.95rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .suggest-item-meta {
      font-size: 0.7rem;
      color: var(--text-muted);
      font-family: var(--font-mono);
    }

    .suggest-vote-btn {
      background: rgba(124, 58, 237, 0.12);
      border: 1px solid rgba(124, 58, 237, 0.25);
      color: var(--accent-p);
      padding: 6px 14px;
      border-radius: 10px;
      font-weight: 700;
      font-size: 0.8rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: all 0.25s;
      white-space: nowrap;
    }

    .suggest-vote-btn:hover {
      background: rgba(124, 58, 237, 0.25);
      transform: scale(1.05);
    }

    .suggest-vote-btn.voted {
      background: rgba(16, 185, 129, 0.12);
      border-color: rgba(16, 185, 129, 0.3);
      color: #10b981;
      cursor: default;
    }

    .suggest-empty {
      text-align: center;
      padding: 30px;
      color: var(--text-muted);
      font-size: 0.85rem;
    }

    .suggest-empty i {
      font-size: 2rem;
      margin-bottom: 12px;
      display: block;
      opacity: 0.3;
    }

    .suggest-footer {
      padding: 16px 28px 24px;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .suggest-add-form {
      display: flex;
      gap: 10px;
    }

    .suggest-add-input {
      flex: 1;
      padding: 12px 16px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 12px;
      color: white;
      font-family: var(--font-stack);
      font-size: 0.9rem;
      transition: 0.3s;
    }

    .suggest-add-input:focus {
      border-color: var(--accent-p);
      box-shadow: 0 0 15px rgba(124, 58, 237, 0.12);
    }

    .suggest-add-btn {
      background: linear-gradient(135deg, var(--accent-p), #a855f7);
      border: none;
      color: white;
      width: 46px;
      height: 46px;
      border-radius: 12px;
      font-size: 1.2rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.25s;
      flex-shrink: 0;
    }

    .suggest-add-btn:hover {
      transform: scale(1.08);
      box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
    }

    .suggest-add-btn:disabled {
      opacity: 0.4;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    .suggest-status {
      font-size: 0.8rem;
      margin-top: 10px;
      padding: 8px 14px;
      border-radius: 10px;
      text-align: center;
      display: none;
    }

    .suggest-status.show {
      display: block;
    }

    .suggest-status.success {
      background: rgba(16, 185, 129, 0.1);
      color: #10b981;
    }

    .suggest-status.error {
      background: rgba(239, 68, 68, 0.1);
      color: #f43f5e;
    }

    .suggest-status.info {
      background: rgba(124, 58, 237, 0.1);
      color: var(--accent-p);
    }

    /* --- SKELETON LOADING ANIMATION --- */
    .skeleton-card {
      position: relative;
      background: #111;
      overflow: hidden;
    }

    .shimmer {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
      );
      animation: shimmer-swipe 1.5s infinite;
    }

    @keyframes shimmer-swipe {
      0% {
        transform: translateX(-100%);
      }
      100% {
        transform: translateX(100%);
      }
    }

    /* --- COOKIE OVERLAY (BLOCKING) --- */
    .cookie-banner {
      position: fixed;
      inset: 0;
      background: rgba(2, 2, 3, 0.85); /* Deep dark tint */
      backdrop-filter: blur(25px) saturate(1.8);
      -webkit-backdrop-filter: blur(25px) saturate(1.8);
      z-index: 10000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      animation: fadeIn 0.6s ease;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .cookie-modal {
      max-width: 500px;
      width: 100%;
      background: var(--bg-card);
      border: 1px solid var(--glass-border);
      padding: 35px;
      border-radius: var(--radius-lg);
      text-align: center;
      box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(124, 58, 237, 0.1);
      transform: translateY(0);
      animation: modalSlideUp 0.5s var(--ease-out);
    }

    @keyframes modalSlideUp {
      from { transform: translateY(40px); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }

    .cookie-modal i {
      font-size: 3.5rem;
      color: var(--accent-p);
      margin-bottom: 25px;
      display: block;
      filter: drop-shadow(0 0 15px rgba(124, 58, 237, 0.4));
    }

    .cookie-modal h2 {
      font-size: 1.8rem;
      font-weight: 800;
      margin-bottom: 15px;
      letter-spacing: -0.5px;
    }

    .cookie-modal p {
      font-size: 0.95rem;
      color: var(--text-muted);
      line-height: 1.6;
      margin-bottom: 30px;
    }

    .cookie-modal a {
      color: var(--accent-p);
      text-decoration: none;
      font-weight: 600;
      transition: 0.3s;
    }

    .cookie-modal a:hover {
      text-decoration: underline;
    }

    .cookie-btn-group {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .cookie-btn-accept {
      background: var(--accent-p);
      color: white;
      border: none;
      padding: 14px;
      border-radius: 99px;
      font-family: var(--font-mono);
      font-weight: 800;
      font-size: 0.9rem;
      text-transform: uppercase;
      letter-spacing: 1px;
      cursor: pointer;
      transition: all 0.3s;
      box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
    }

    .cookie-btn-accept:hover {
      background: white;
      color: black;
      transform: translateY(-2px);
      box-shadow: 0 12px 25px rgba(124, 58, 237, 0.4);
    }

    .cookie-btn-exit {
      background: transparent;
      color: var(--text-muted);
      border: 1px solid rgba(255, 255, 255, 0.1);
      padding: 12px;
      border-radius: 99px;
      font-family: var(--font-mono);
      font-weight: 600;
      font-size: 0.8rem;
      text-transform: uppercase;
      cursor: pointer;
      transition: 0.3s;
    }

    .cookie-btn-exit:hover {
      background: rgba(239, 68, 68, 0.1);
      border-color: rgba(239, 68, 68, 0.3);
      color: #f43f5e;
    }