:root {
    --bg: #0f1724;
    --card: #0b1220;
    --muted: #9aa4b2;
    --accent: linear-gradient(90deg, #06b6d4, #7c3aed);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-2: rgba(255, 255, 255, 0.02);
    --radius: 14px;
    --max-width: 1100px;
    color-scheme: dark;
  }
  
  * {
    box-sizing: border-box;
  }
  
  html, body {
    height: 100%;
  }
  
  body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    margin: 0;
    background: radial-gradient(1200px 600px at 10% 10%, rgba(124, 58, 237, 0.12), transparent),
                radial-gradient(900px 500px at 90% 90%, rgba(6, 182, 212, 0.08), transparent),
                var(--bg);
    color: #e6eef8;
    padding: 32px 20px;
    display: flex;
    justify-content: center;
  }
  
  .app {
    width: 100%;
    max-width: var(--max-width);
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  /* Header */
  header {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
  }
  
  .brand {
    display: flex;
    gap: 12px;
    align-items: center;
  }
  
  .logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--accent);
    box-shadow: 0 6px 18px rgba(139, 31, 246, 0.18);
    font-weight: 800;
    color: #ffebeb;
    font-size: 18px;
  }
  .logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden; /* agar gambar ikut membentuk border radius */
  }
  
  .logo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* biar gambar tidak kepotong aneh */
  }

  h1 {
    margin: 0;
    font-size: 20px;
  }
  
  .lead {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
  }
  
  /* Controls */
  .controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
  }
  
  .search {
    display: flex;
    gap: 8px;
    align-items: center;
    background: var(--glass);
    padding: 10px 12px;
    border-radius: 10px;
  }
  
  .search input {
    background: transparent;
    border: none;
    color: inherit;
    outline: none;
  }
  
  .chip {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--glass-2);
    cursor: pointer;
    font-size: 13px;
  }
  
  .chip.active {
    background: linear-gradient(90deg, #163f5f, #1f2940);
    box-shadow: 0 2px 12px rgba(0,0,0,0.6);
  }
  
  /* Layout */
  main {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 22px;
  }
  
  @media (max-width: 980px) {
    main {
      grid-template-columns: 1fr;
    }
  }
  
  /* Sidebar */
  .sidebar {
    background: var(--glass-2);
    padding: 16px;
    border-radius: 12px;
  }
  
  .filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .filter-group label {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
    display: block;
  }
  
  .categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  
  /* Content */
  .content-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 14px;
  }
  
  @media (max-width: 1200px) {
    .grid {
      grid-template-columns: repeat(2,1fr);
    }
  }
  
  @media (max-width: 600px) {
    .grid {
      grid-template-columns: repeat(1,1fr);
    }
  }
  
  .card {
    background: var(--glass);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
  }
  .card:hover {
    cursor: pointer;
    background: rgba(255,255,255,0.05);
  }
  
  .thumb {
    width: 96px;
    height: 96px;
    border-radius: 10px;
    object-fit: cover;
  }
  
  h3 {
    margin: 0;
    font-size: 16px;
  }
  
  .meta {
    font-size: 13px;
    color: var(--muted);
    margin-top: 6px;
  }
  
  .muted {
    color: var(--muted);
  }
  
  .fav {
    position: absolute;
    right: 10px;
    bottom: 10px; /* ⬅ pindah ke pojok kanan bawah */
    background: rgba(255,255,255,0.05);
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    font-size: 8px;
  }
  
  
  /* Footer */
  footer {
    color: var(--muted);
    font-size: 13px;
    text-align: center;
    padding: 6px;
  }
  
  /* Modal */
  .modal-backdrop {
      display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    


  }
  
  .modal {
    width: 100%;
    max-width: 820px;
    background: var(--glass);
    border-radius: 14px;
    padding: 18px;
    background: #172239;
  }
  
  .hero {
    width: 100%;
    height: 260px;
    border-radius: 10px;
    object-fit: cover;
  }
  
  button.btn {
    border: none;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    background: var(--accent);
    color: white;
    font-weight: 600;
    margin:3px;
  }
  
  /* Empty result */
  .empty {
    padding: 36px;
    background: var(--glass);
    border-radius: 12px;
    text-align: center;
  }
  .btn {
    padding:50px 14px;border-radius:10px;background:var(--accent);color:white;border:none;cursor:pointer;
  }

  .filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
  }
  
  .filter-group select {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #000000;
    background:rgba(3, 55, 151, 0.788);
    font-size: 14px;
    outline: none;
    transition: 0.2s;
    cursor: pointer;
  }
  
  .filter-group select:hover {
    border-color: #a26cff;
    box-shadow: 0 0 6px rgba(162,108,255,0.4);
  }
  
  .filter-group select:focus {
    border-color: #7a3cff;
    box-shadow: 0 0 8px rgba(122,60,255,0.5);
  }
  






