/* css/style.css - Jangan Ambil Bos  */

/* ------------------------------------- */
/* Global & Reset */
/* ------------------------------------- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ------------------------------------- */
/* Header */
/* ------------------------------------- */
header {
    width: 100%;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
    background-color: #fcfcfc;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: #000;
}

header nav a {
    text-decoration: none;
    color: #555;
    margin-left: 20px;
    font-size: 15px;
    font-weight: 500;
    padding: 5px 0;
    display: inline-block;
}

header nav .nav-button {
    background-color: #f0f0f0;
    padding: 8px 15px;
    border-radius: 5px;
    color: #000;
    transition: background-color 0.2s ease;
}

header nav .nav-button:hover {
    background-color: #e0e0e0;
}

/* ------------------------------------- */
/* Main Content - Hero Section (Landing Page) */
/* ------------------------------------- */
.main-content {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.hero-section {
    max-width: 600px;
    padding-bottom: 100px;
}

.hero-section h1 {
    font-size: 3em;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 40px;
}

.upload-big-button {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.upload-big-button:hover {
    background-color: #333;
}


/* ------------------------------------- */
/* Footer */
/* ------------------------------------- */
footer {
    width: 100%;
    padding: 20px 0;
    border-top: 1px solid #eee;
    box-sizing: border-box;
    font-size: 0.9em;
    color: #777;
    background-color: #fcfcfc;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
}

.footer-content p {
    margin: 0;
}

.footer-links a {
    text-decoration: none;
    color: #777;
    margin-left: 20px;
    white-space: nowrap;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ------------------------------------- */
/* Style untuk HALAMAN PEMUTAR VIDEO (Hanya Iframe) */
/* ------------------------------------- */
.video-page-wrapper {
    max-width: 1200px;
    margin: 20px auto 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.video-player-container-only {
    background-color: #000;
    padding: 5px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    max-width: 100%;
    width: 900px; /* Lebar umum untuk video player di desktop */
    box-sizing: border-box;
}


.embed-responsive {
    position: relative;
    padding-bottom: 56.25%; /* DEFAULT: Rasio 16:9 untuk desktop */
    height: 0;
    overflow: hidden;
    background-color: #000;
}

.embed-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.error-message {
    text-align: center;
    color: #cc0000;
    padding: 20px;
    background-color: #ffe0e0;
    border: 1px solid #ff9999;
    border-radius: 5px;
}


/* ------------------------------------- */
/* Media Queries untuk Responsivitas */
/* ------------------------------------- */
@media (max-width: 768px) {
    /* Header Container - Logo, Upload, Advertise sejajar */
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
    }

    header nav {
        margin-top: 0;
        display: flex;
        align-items: center;
        gap: 15px;
    }

    header nav a {
        margin-left: 0;
        padding: 0;
    }

    header nav .nav-button {
        padding: 6px 12px;
        font-size: 0.9em;
    }

    .nav-advertise {
        font-size: 0.9em;
    }

    /* Hero Section - untuk layar kecil */
    .hero-section h1 {
        font-size: 2.2em;
    }
    .hero-section p {
        font-size: 1em;
    }
    .upload-big-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    /* Footer - untuk layar kecil */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        margin-top: 15px;
    }
    .footer-links a {
        margin: 0 10px;
        display: inline-block;
    }

    /* Video Page Specifics for Mobile - DISINI PERUBAHAN UTAMANYA */
    .video-page-wrapper {
        padding: 20px; /* Padding di sekeliling video player */
        width: 100%;
        height: auto;
        margin: auto;
        min-height: auto;
        box-sizing: border-box;
        justify-content: flex-start;
        align-items: stretch;
    }
    .video-player-container-only {
        width: 100%;
        max-width: 100%;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
        background-color: transparent;
    }
    .embed-responsive {
        /* *** PERUBAHAN UNTUK MEMBUAT IFRAME MENJADI VERTIKAL *** */
        padding-bottom: 177.77%; /* Rasio 9:16 (16/9 * 100%) untuk tampilan vertikal */
        width: 100%;
        height: auto;
        border-radius: 0;
    }
    .embed-responsive iframe {
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 10px;
    }
    .logo a {
        font-size: 20px;
    }
    header nav {
        gap: 10px;
    }
    header nav .nav-button {
        padding: 5px 10px;
        font-size: 0.85em;
    }
    .nav-advertise {
        font-size: 0.85em;
    }

    .hero-section h1 {
        font-size: 1.8em;
    }
    .hero-section p {
        font-size: 0.9em;
    }
    .upload-big-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    /* Video Page Specifics for Mobile (layar sangat kecil) */
    .video-page-wrapper {
        padding: 15px; /* Sedikit lebih kecil untuk layar sangat kecil */
    }
}