/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Base Styles */
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
    background: linear-gradient(135deg, #8c52ff 0%, #ff914d 100%);
    background-attachment: fixed;
    line-height: 1.6;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Banner */
header.header-banner {
    width: 100%;
    height: 320px;
    background-image: url('Asset Foto/channels4_banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 50px;
    border: none;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1000;
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    gap: 15px;
}

.nav-history-controls {
    display: flex;
    gap: 8px;
}

.btn-nav-history {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-nav-history:hover {
    background: rgba(255, 255, 255, 0.45);
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    align-items: center;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 20px;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

/* Search Bar Navigation */
.nav-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 2px 10px;
}

.nav-search input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.85rem;
    padding: 5px;
    width: 130px;
}

.nav-search input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.nav-search button {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Profile Image */
.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

/* Sections */
.section {
    padding: 60px 20px;
}

.section h2 {
    margin-bottom: 24px;
    color: #ffffff;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.gray {
    background-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Horizontal Video Slider */
.video-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 15px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
}

.video-slider::-webkit-scrollbar {
    height: 8px;
}

.video-slider::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
}

.slider-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: linear-gradient(135deg, rgba(140, 82, 255, 0.45), rgba(255, 145, 77, 0.45));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
}

.thumb-box {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badges Status Live & Offline */
.badge-live {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff0000;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.5);
    z-index: 3;
    animation: pulse 1.8s infinite;
}

.badge-offline {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #666666;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 3;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.slider-details {
    padding: 15px;
}

.slider-details h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    line-height: 1.3;
}

.slider-details p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
}

/* Highlight Kartu Live */
.featured-live {
    border: 2px solid #ff914d;
    box-shadow: 0 0 15px rgba(255, 145, 77, 0.4);
}

.featured-live-card {
    border: 2px solid #ff914d;
}

/* Program TV Cards */
.projects {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background: linear-gradient(135deg, rgba(140, 82, 255, 0.45), rgba(255, 145, 77, 0.45));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 25px;
    flex: 1 1 45%;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-decoration: none;
    color: #ffffff;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(140, 82, 255, 0.65), rgba(255, 145, 77, 0.65));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
}

.card h3 {
    color: #ffffff;
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Program Detail Page Styling */
.program-detail-card {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
}

.program-banner {
    height: 240px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.program-description h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.program-description p {
    font-size: 1.05rem;
    margin-bottom: 15px;
}

/* Live Streaming Section */
.livestream-section {
    scroll-margin-top: 80px;
    margin-top: 30px;
}

.livestream-card-container {
    background: linear-gradient(135deg, rgba(140, 82, 255, 0.45), rgba(255, 145, 77, 0.45));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.livestream-card-container p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.btn-watch {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(45deg, #8c52ff, #ff914d);
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-watch:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 145, 77, 0.5);
}

/* Plyr.io Player Styling & Pemutar Video */
.page-stream-container {
    margin-top: 90px;
}

.stream-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: #000000;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.plyr-wrapper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: #000000;
}

.plyr--full-ui input[type=range] {
    color: #ff914d;
}

.plyr__control--overlaid {
    background: rgba(140, 82, 255, 0.85);
}

.plyr--video .plyr__control:hover {
    background: #ff914d;
}

.video-info {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
    border-radius: 16px;
    margin-top: 15px;
    margin-bottom: 40px;
}

.video-info h2 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.other-videos-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.other-videos-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.video-card {
    background: linear-gradient(135deg, rgba(140, 82, 255, 0.45), rgba(255, 145, 77, 0.45));
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.video-details {
    padding: 12px 15px;
}

.video-details h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    line-height: 1.3;
}

.video-details p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Contact Links */
.contact-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-contact {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(45deg, #8c52ff, #ff914d);
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-contact:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 145, 77, 0.4);
}

/* Download CV Section */
.section-cv {
    padding: 40px 20px;
    text-align: center;
}

.btn-cv {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(45deg, #8c52ff, #ff914d);
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-cv:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 145, 77, 0.4);
}

/* Footer */
footer {
    background: linear-gradient(135deg, rgba(140, 82, 255, 0.45), rgba(255, 145, 77, 0.45));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    padding: 25px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    header.header-banner {
        height: 200px;
    }

    .profile-img {
        margin-top: -40px;
    }

    .projects {
        flex-direction: column;
    }

    .nav-container {
        flex-direction: column;
        gap: 10px;
    }

    .nav-search input {
        width: 100px;
    }

    nav a {
        margin: 2px;
        padding: 4px 6px;
        font-size: 0.8rem;
    }

    .contact-links {
        flex-direction: column;
        width: 100%;
    }

    .btn-contact {
        display: block;
        text-align: center;
        width: 100%;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* Custom Offline Stream Container */
.offline-thumb-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.offline-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55);
}

.offline-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    width: 85%;
    z-index: 2;
}

.offline-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

.offline-overlay p {
    font-size: 1rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}
