/* ==========================================================================
   VARIABLES & GLOBAL RESET
   ========================================================================== */
:root {
    --bg-color: #f9f9f9;       /* Latar belakang cerah (YouTube Style) */
    --card-bg: #ffffff;        /* Kartu putih bersih */
    --text-color: #0f0f0f;     /* Hitam pekat untuk judul (High contrast) */
    --text-muted: #606060;     /* Abu-abu untuk meta text (YouTube Style) */
    --primary-color: #cc0000;  /* Merah khas YouTube/Detik */
    --primary-hover: #a30000;
    --border-color: #e5e5e5;
    --detik-blue: #00529b;     /* Biru khas portal berita */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Mencegah scrollbar horizontal di level body */
    width: 100%;
}

/* Helper spacing */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   HEADER NEWS-TUBE STYLE (Sticky & Neat)
   ========================================================================== */
.header-news-tube {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #ffffff;
    z-index: 999;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    width: 100%;
}

.header-news-tube.scrolled {
    box-shadow: var(--shadow-md);
}

.header-spacer {
    height: 70px; /* Sesuai tinggi header desktop */
    transition: height 0.3s ease;
}

.header-container {
    max-width: 1250px;
    width: 100%;
    margin: 0 auto;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.logo img {
    height: 35px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link .menu-icon {
    font-size: 1.3rem;
}

/* Animasi Live */
.live-container {
    position: relative;
    display: flex;
    align-items: center;
}

.live-dot {
    position: absolute;
    top: 0; right: -4px;
    width: 6px; height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(204, 0, 0, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(204, 0, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(204, 0, 0, 0); }
}

.nav-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.action-btn:hover {
    background: #f0f0f0;
}

/* Search Overlay Top-Bar */
.search-overlay-card {
    position: absolute;
    top: 70px; right: 20px;
    width: 350px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.search-overlay-card.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.search-card-body {
    display: flex;
    align-items: center;
    padding: 5px 15px;
}

.search-card-body input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px;
    font-size: 0.95rem;
}

.search-card-icon { color: var(--text-muted); }
.search-close-btn { background: none; border: none; cursor: pointer; color: var(--text-color); }


/* ==========================================================================
   HEADLINE SECTION (Portal Style - Desktop Grid)
   ========================================================================== */
.portal-headline {
    background-color: #0c0c0c;
    padding: 30px 20px;
    margin-bottom: 30px;
    width: 100%;
    overflow: hidden; /* Menghindari luapan konten di mobile */
}

.headline-container {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 25px;
    width: 100%;
}

.headline-main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 100%;
}

.headline-main:hover {
    transform: translateY(-2px);
}

.headline-main::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.headline-content {
    position: relative;
    z-index: 2;
    color: #fff;
    width: 100%;
}

.headline-content h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin: 12px 0;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.headline-content p {
    font-size: 1rem;
    color: #ccc;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.95;
}

.badge-live {
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.play-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 65px; height: 65px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    opacity: 0;
    z-index: 2;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(204, 0, 0, 0.4);
}

.headline-main:hover .play-overlay {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1.1);
}

.headline-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0; /* Penting! Mencegah peregangan grid anak */
}

.side-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
    letter-spacing: 0.5px;
}

.side-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.side-card {
    display: flex;
    gap: 15px;
    text-decoration: none;
    background: rgba(255,255,255,0.04);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition-smooth);
}

.side-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(4px);
}

.side-thumb {
    position: relative;
    width: 120px;
    height: 75px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

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

.side-info {
    min-width: 0; /* Mencegah overflow teks panjang */
    flex: 1;
}

.side-info h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.side-info .meta {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 6px;
    display: block;
}


/* ==========================================================================
   MAIN LAYOUT (Desktop 2-Columns)
   ========================================================================== */
.layout-container {
    max-width: 1250px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px 40px;
    display: flex;
    gap: 30px;
    box-sizing: border-box;
}

.main-content-left {
    flex: 1;
    min-width: 0;
}

.sidebar-right {
    width: 350px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Sticky sidebar melayang indah saat di-scroll */
@media (min-width: 993px) {
    .sidebar-right {
        position: sticky;
        top: 90px;
        height: fit-content;
    }
}

.content-section {
    margin-bottom: 30px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    position: relative;
    padding-left: 12px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0; top: 15%; height: 70%; width: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.view-all {
    color: var(--detik-blue);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.view-all:hover {
    color: var(--primary-color);
    text-decoration: underline;
}


/* ==========================================================================
   DETIK-STYLE NEWS LIST
   ========================================================================== */
.detik-news-list {
    display: flex;
    flex-direction: column;
}

.news-list-item {
    display: flex;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px dashed var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

.news-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-list-item:first-child {
    padding-top: 0;
}

.news-list-item:hover {
    background: rgba(0,0,0,0.01);
}

.news-list-item:hover h3 {
    color: var(--detik-blue);
}

.news-thumb {
    width: 190px;
    height: 110px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: var(--transition-smooth);
}

.news-list-item:hover .news-thumb img {
    transform: scale(1.05);
}

.play-btn-small {
    position: absolute;
    bottom: 8px; right: 8px;
    background: rgba(204, 0, 0, 0.9);
    color: white;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.news-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
}

.news-meta-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.8rem;
}

.news-category {
    color: var(--primary-color);
    font-weight: 700;
    margin-right: 10px;
}

.news-time {
    color: var(--text-muted);
}

.news-text h3 {
    font-size: 1.15rem;
    line-height: 1.45;
    font-weight: 600;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ==========================================================================
   YOUTUBE-STYLE VIDEO GRID (Desktop)
   ========================================================================== */
.yt-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px 20px;
}

.yt-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    background: none;
}

.yt-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    background: #e5e5e5;
    box-shadow: var(--shadow-sm);
}

.yt-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: var(--transition-smooth);
}

.yt-card:hover .yt-thumb img {
    transform: scale(1.04);
}

.duration-badge {
    position: absolute;
    bottom: 8px; right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.yt-info {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.yt-avatar {
    flex-shrink: 0;
}

.yt-avatar img {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.yt-text {
    min-width: 0;
    flex: 1;
}

.yt-text h3 {
    color: var(--text-color);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.yt-text p {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}


/* ==========================================================================
   SIDEBAR & WIDGET STYLING
   ========================================================================== */
.sidebar-widget {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.mt-30 { margin-top: 30px; }

.widget-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.yt-embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

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

/* Terpopuler Sidebar */
.popular-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.popular-item {
    display: flex;
    gap: 16px;
    text-decoration: none;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
}

.popular-item:last-child {
    border-bottom: none;
}

.rank-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--border-color);
    min-width: 45px;
    text-align: center;
    line-height: 1;
    transition: var(--transition-smooth);
}

.popular-item:hover .rank-number {
    color: var(--primary-color);
    transform: scale(1.1);
}

.popular-text {
    min-width: 0;
    flex: 1;
}

.popular-text h4 {
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-item:hover h4 {
    color: var(--primary-color);
}

.popular-text p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Action Buttons */
.action-center {
    text-align: center;
    margin: 30px 0 10px;
}

.btn-primary-outline {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-primary-outline:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.2);
}


/* ==========================================================================
   FOOTER NEWS-TUBE STYLE
   ========================================================================== */
.footer-news-tube {
    background-color: #0c0c0c;
    color: #fff;
    margin-top: 60px;
    width: 100%;
}

/* Breaking News Ticker */
.footer-ticker-wrapper {
    display: flex;
    background-color: var(--primary-color);
    border-top: 2px solid var(--primary-hover);
    border-bottom: 2px solid var(--primary-hover);
    height: 45px;
    align-items: center;
    overflow: hidden;
}

.ticker-label {
    background: var(--primary-hover);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
    white-space: nowrap;
    box-shadow: 4px 0 10px rgba(0,0,0,0.2);
}

.ticker-content-track {
    display: flex;
    white-space: nowrap;
    animation: scrollTicker 45s linear infinite;
}

.ticker-text {
    padding-left: 100%;
    font-size: 0.9rem;
    font-weight: 500;
}

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

.footer-container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.footer-social-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.social-title {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #fff;
}

.social-links-grid {
    display: flex;
    gap: 12px;
}

.social-icon-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    color: #fff;
    transition: var(--transition-smooth);
}

.social-icon-card:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.social-icon-card svg { width: 22px; height: 22px; }

.footer-brand-logo {
    height: 45px;
    opacity: 0.9;
}

.footer-copyright-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
}

.footer-copyright-bottom strong {
    color: #fff;
}


/* ==========================================================================
   FLOATING THEME BUTTON
   ========================================================================== */
.floating-theme-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: #ffffff !important;
    padding: 14px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    z-index: 99999;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.floating-theme-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(204, 0, 0, 0.4);
    background-color: var(--primary-hover);
}

.floating-theme-btn .material-symbols-rounded {
    font-size: 1.4rem;
}


/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Sangat Mobile Friendly!)
   ========================================================================== */

/* 1. Tablet & Large Mobile Screen (max-width: 992px) */
@media (max-width: 992px) {
    .portal-headline {
        padding: 20px 15px; /* Mengurangi padding agar hemat ruang */
    }

    .headline-container {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        overflow: hidden; /* Mencegah pelebaran grid utama */
    }
    
    .headline-main {
        min-height: 340px;
        padding: 20px;
        box-sizing: border-box;
    }

    .headline-content h1 {
        font-size: 1.8rem;
    }

    .headline-side {
        width: 100%;
        min-width: 0; /* Mencegah flexbox memaksakan lebar default kontainer */
        overflow: hidden;
    }

    .side-grid {
        flex-direction: row;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 12px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Menyembunyikan scrollbar Firefox */
        width: 100%;
    }

    .side-grid::-webkit-scrollbar {
        display: none; /* Menyembunyikan scrollbar Chrome/Safari */
    }

    .side-card {
        min-width: 280px;
        max-width: 300px;
        flex-shrink: 0;
        scroll-snap-align: start;
        flex-direction: row;
        background: rgba(255,255,255,0.06);
    }

    .side-thumb {
        width: 100px;
        height: 65px;
    }

    .layout-container {
        flex-direction: column;
        gap: 25px;
        padding: 0 15px 40px;
    }

    .sidebar-right {
        width: 100%;
    }
    
    .yt-video-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    }
}

/* 2. Standard Mobile Screen (max-width: 768px) */
@media (max-width: 768px) {
    .nav-menu .menu-text { 
        display: none; /* Menyembunyikan teks menu, menyisakan icon */
    }
    
    .nav-menu { 
        gap: 15px; 
    }

    .header-container {
        padding: 0 15px;
    }
    
    .footer-social-section {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
    
    .search-overlay-card {
        top: 70px; right: 15px; left: 15px; width: auto;
    }

    .content-section {
        padding: 16px;
    }

    .news-thumb {
        width: 140px;
        height: 85px;
    }

    .news-text h3 {
        font-size: 1rem;
    }
}

/* 3. Small Mobile Screen (max-width: 576px) */
@media (max-width: 576px) {
    /* Perbaikan Header Mobile agar tidak tumpah */
    .header-news-tube {
        height: 60px;
    }

    .header-spacer {
        height: 60px; /* Sesuai tinggi baru header mobile */
    }

    .header-container {
        height: 60px;
        padding: 0 10px;
    }

    .logo img {
        height: 25px; /* Memperkecil logo di HP kecil */
    }

    .nav-menu {
        gap: 10px; /* Merapatkan menu navigasi di HP */
    }

    .nav-link {
        font-size: 0.85rem;
        gap: 4px;
    }

    .nav-link .menu-icon {
        font-size: 1.1rem;
    }

    .nav-actions {
        gap: 4px;
    }

    .action-btn {
        padding: 6px; /* Mengecilkan tombol aksi */
    }

    /* Perbaikan Hero Section (Headline) agar fit di layar HP */
    .portal-headline { 
        padding: 10px; 
    }
    
    .headline-main {
        min-height: 240px; /* Lebih pendek di HP agar user langsung melihat daftar berita bawah */
        padding: 15px;
        border-radius: 8px;
    }

    .headline-content h1 { 
        font-size: 1.3rem; 
        line-height: 1.25;
        margin: 8px 0;
    }

    .headline-content p {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }

    .play-overlay {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .side-card {
        min-width: 240px;
        gap: 10px;
        padding: 8px;
    }

    .side-thumb {
        width: 90px;
        height: 60px;
    }

    .side-info h4 {
        font-size: 0.85rem;
    }

    /* Versi Detik Mobile yang Paling Rapi */
    .news-list-item {
        flex-direction: column;
        gap: 10px;
        padding: 15px 0;
    }
    
    .news-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }

    .news-text h3 {
        font-size: 1.05rem;
        -webkit-line-clamp: 3;
    }

    /* Versi YouTube Mobile: Tampilan 1 Kolom Penuh */
    .yt-video-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
    }

    .yt-card {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        overflow: hidden;
        padding-bottom: 12px;
    }

    .yt-thumb {
        border-radius: 0; /* Menempel ke pinggir khas YouTube Mobile */
    }

    .yt-info {
        padding: 0 12px;
    }

    .floating-theme-btn {
        bottom: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 0.8rem;
    }
}