:root {
    --bg-color: #0f0f0f;
    --text-color: #f1f1f1;
    --secondary-text: #aaaaaa;
    --accent: #ff0000;
    --card-bg: #1c1c1c;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0; padding: 20px;
}

.container { max-width: 1400px; margin: 0 auto; }
section { margin-bottom: 50px; }

h2 { 
    display: flex; align-items: center; gap: 10px; 
    font-size: 1.5rem; border-bottom: 1px solid #333; padding-bottom: 10px;
}

/* GRID SYSTEM */
.grid-shorts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

.grid-regular {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* CARD STYLE */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease;
    cursor: pointer;
    border: 1px solid #2a2a2a;
}

.card:hover { transform: translateY(-5px); border-color: #444; }

.thumb-box { position: relative; width: 100%; background: #222; }
.ratio-shorts { aspect-ratio: 9 / 16; }
.ratio-regular { aspect-ratio: 16 / 9; }

.thumb-box img { width: 100%; height: 100%; object-fit: cover; }

.info { padding: 12px; }
.info h3 { font-size: 14px; margin: 0 0 8px 0; color: #fff; }
.desc { font-size: 12px; color: var(--secondary-text); line-height: 1.4; }
.tags { margin-top: 8px; font-size: 11px; color: #3ea6ff; }

/* Hilangkan atau sembunyikan .desc jika tidak ingin tampil di kartu */
.desc {
    display: none; /* Deskripsi tidak akan tampil di layar, tapi tetap ada di kode */
}

/* MODAL PLAYER */
#player-modal {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.95); z-index: 9999;
    justify-content: center; align-items: center; padding: 20px;
}

/* Perbaikan Modal & Player agar besar */
.modal-content {
    width: 95%;
    max-width: 1100px;
    height: 80vh; /* Berikan tinggi agar iframe punya ruang */
    display: flex;
    flex-direction: column;
}

#video-wrapper {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}
