/* Container của Video */
.yoummo-video-container {
    position: relative;
    padding-bottom: 56.25%; /* Tỷ lệ 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.yoummo-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Disclaimer Box (Cảnh báo nội dung) */
.yoummo-disclaimer {
    background: #f8f9fa;
    border-left: 4px solid #ff0000; /* Màu đỏ YouTube */
    padding: 15px;
    margin: 20px 0;
    font-size: 0.9em;
    color: #555;
}

.yoummo-meta-info {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #666;
}

/* Placeholder cho Ads sau này */
.yoummo-ad-slot {
    background: #eee;
    text-align: center;
    padding: 20px;
    margin: 20px 0;
    border: 1px dashed #ccc;
    color: #999;
}
/* --- Dashboard Styles --- */
.yoummo-dashboard-wrapper {
    font-family: sans-serif;
    max-width: 800px;
    margin: 0 auto;
}

.yoummo-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.stat-card h3 { margin-top: 0; font-size: 16px; color: #666; }
.stat-card .number { font-size: 28px; font-weight: bold; color: #2ecc71; }

.stat-card.withdraw input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-withdraw {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.btn-withdraw:hover { background: #2980b9; }

.yoummo-history table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.yoummo-history th, .yoummo-history td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.yoummo-history th { background: #f8f9fa; font-weight: 600; }

.plus { color: #2ecc71; font-weight: bold; }
.minus { color: #e74c3c; font-weight: bold; }

.badge {
    font-size: 0.8em;
    padding: 3px 8px;
    border-radius: 12px;
    color: white;
}
.badge.earn { background: #27ae60; }
.badge.pending { background: #f39c12; }

.yoummo-alert {
    padding: 10px; margin-bottom: 20px; border-radius: 4px;
}
.yoummo-alert.success { background: #d4edda; color: #155724; }
.yoummo-alert.error { background: #f8d7da; color: #721c24; }

/* Mobile Responsive */
@media (max-width: 600px) {
    .yoummo-stats-grid { grid-template-columns: 1fr; }
}
/* --- Related Videos --- */
.yoummo-related-section {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.yoummo-related-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #e74c3c;
    padding-left: 10px;
}

.yoummo-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* Tự động chia cột */
    gap: 20px;
}

.related-item a {
    text-decoration: none;
    color: inherit;
}

.related-thumb {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    margin-bottom: 10px;
}

.related-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-item:hover .related-thumb img {
    transform: scale(1.05); /* Hiệu ứng zoom nhẹ */
}

.related-item h4 {
    font-size: 15px;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Cắt dòng nếu tiêu đề dài quá 2 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #333;
}