/*
Theme Name: Clone RimbaTV
Description: Duplikat tema Rimba TV untuk WordPress.
Version: 1.1
*/

body {
    margin: 0; padding: 0; font-family: Arial, sans-serif;
    background-color: #000; color: #fff; overflow: hidden;
}

.main-wrapper { display: flex; height: 100vh; }

/* Kolom Kiri: Player Video */
.left-side {
    width: 65%; display: flex; flex-direction: column; position: relative;
    background: #111 url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6T8N-M4x2_bH4wVlXQ4-Kj_5/s16000/rimba.jpg') center/cover;
}
.player-area { flex-grow: 1; }

/* Running Text & Jam */
.bottom-bar {
    background-color: #fff; color: #000; display: flex; align-items: center;
    font-size: 13px; font-weight: bold; padding-right: 10px;
}
.clock { background: #b71c1c; color: white; padding: 8px 15px; min-width: 70px; text-align: center; }
.marquee-container { flex-grow: 1; margin-left: 10px; white-space: nowrap; overflow: hidden; }

/* Kolom Kanan: Jadwal */
.right-side { width: 35%; background-color: #1a1a1a; display: flex; flex-direction: column; }

/* Tabs */
.tabs { display: flex; background: #fff; }
.tab-btn {
    flex: 1; padding: 12px; background: none; border: none; cursor: pointer;
    font-weight: bold; color: #555; border-bottom: 3px solid transparent;
}
.tab-btn.active { color: #000; border-bottom: 3px solid #b71c1c; }

/* List Jadwal */
.schedule-container { overflow-y: auto; padding: 10px; background: #0f0f0f; flex-grow: 1; }
.match-card {
    background: #222; border-radius: 8px; margin-bottom: 12px;
    border: 1px solid #333; overflow: hidden;
}
.match-status { text-align: center; font-size: 11px; padding: 5px; color: #aaa; background: #1a1a1a; }
.match-status.selesai { color: #ff5252; }
.match-status.countdown { color: #ffca28; }

.match-info { text-align: center; font-size: 12px; padding: 10px; border-bottom: 1px solid #333; }
.match-teams { display: flex; justify-content: space-between; align-items: center; font-weight: bold; }

/* Tombol Channel */
.channels { display: flex; justify-content: center; gap: 5px; padding: 10px; background: #2a2a2a; }
.ch-btn {
    background: #333; color: #fff; border: none; padding: 5px 15px; border-radius: 4px;
    font-size: 11px; cursor: pointer; transition: 0.2s;
}
.ch-btn:hover { background: #555; }
/* =========================================
   TAMPILAN TAB LIVE TV (GRID LOGO)
   ========================================= */

.tv-header {
    background-color: #fff;
    color: #000;
    text-align: center;
    padding: 5px;
    font-family: monospace, sans-serif;
    font-size: 13px;
    margin-bottom: 15px;
    font-weight: bold;
    letter-spacing: 1px;
}

.tv-grid {
    display: grid;
    /* Ganti angka 3 di bawah ini dengan 4 atau 5 jika ingin kolom lebih banyak */
    grid-template-columns: repeat(3, 1fr); 
    gap: 10px; /* Jarak antar kotak */
    padding: 10px;
}

.tv-card {
    background-color: #fff;
    border-radius: 8px;
    aspect-ratio: 1 / 1; /* Menjaga kotak tetap persegi */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.tv-card:hover {
    transform: scale(1.05); /* Efek sedikit membesar saat disentuh mouse */
    box-shadow: 0 4px 8px rgba(255,255,255,0.2);
}

.tv-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Memastikan logo tidak terpotong */
}

/* Penyesuaian agar rapi di layar HP/Tablet */
@media (max-width: 1200px) {
    .tv-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .tv-grid { grid-template-columns: repeat(4, 1fr); } /* 4 baris di layar tablet/HP */
}
/* =========================================
   TOP BAR (NAMA WEB & RUANG IKLAN)
   ========================================= */
.top-bar {
    background-color: #0a0a0a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 2px solid #b71c1c; /* Garis aksen merah pemisah */
}

/* Desain Nama Web (Mengikuti referensi kotak putih) */
.site-title a {
    display: inline-block;
    background-color: #fff;
    color: #000;
    text-decoration: none;
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    padding: 5px 15px;
    border-radius: 4px;
    letter-spacing: 1px;
}

/* Desain Ruang Iklan */
.top-banner-ad {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 468px; /* Ukuran standar banner iklan panjang */
    height: 60px;
    background-color: #1a1a1a;
    border: 1px dashed #444; /* Garis putus-putus sebagai penanda ruang kosong */
    color: #666;
    font-size: 12px;
    overflow: hidden;
}

.top-banner-ad img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Penyesuaian untuk layar HP agar tidak bertumpuk */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 10px;
    }
    .top-banner-ad {
        width: 100%; /* Iklan menyesuaikan lebar layar di HP */
    }
}/* =========================================
   RUANG SPONSOR / IKLAN (KOLOM KANAN)
   ========================================= */
.promo-sidebar {
    margin-top: 25px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Jarak antar kotak iklan */
}

.promo-box {
    background-color: #ffffff; /* Warna dasar kotak (putih) */
    width: 100%;
    height: 150px; /* Tinggi kotak iklan, bisa Anda ubah nanti */
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #888;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.promo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Memastikan gambar iklan tidak terpotong */
}