:root {
    --primary-color: #161b1f;
    --accent-color: #d4af37;
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-color: #333;
}

body {
    background-color: var(--bg-color);
    font-family: 'Cairo', sans-serif;
}

/* Hero Section */
.live-hero {
    background: linear-gradient(rgba(22, 27, 31, 0.9), rgba(22, 27, 31, 0.8)), url('../photo/kaaba.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 40px;
    border-radius: 0 0 30px 30px;
}

.live-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--accent-color);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.live-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Grid Layout */
.live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Channel Card */
.channel-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.channel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.channel-thumb-box {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.channel-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.channel-card:hover .channel-thumb {
    transform: scale(1.1);
}

.live-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

.channel-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.channel-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.channel-desc {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.watch-btn {
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.3s ease;
    gap: 8px;
}

.watch-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

/* Single Page Player */
.player-container {
    max-width: 1000px;
    margin: -60px auto 40px;
    /* Overlap header */
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    background: black;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 4px solid var(--accent-color);
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.channel-info-single {
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 0 20px;
    text-align: center;
}

.single-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.related-section {
    background: white;
    padding: 60px 0;
}

.related-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-size: 2rem;
}