/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    flex-grow: 1;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    color: #333;
    margin-bottom: 0.5rem;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

label {
    font-weight: bold;
    margin-bottom: 0.25rem;
    display: block;
}

input[type="text"],
input[type="url"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.radio-group label, .checkbox-group label {
    font-weight: normal;
    display: inline-flex; /* Changed from block */
    align-items: center;
    margin-right: 1rem;
}
.radio-group input[type="radio"], .checkbox-group input[type="checkbox"] {
    margin-right: 0.5rem;
    width: auto; /* Override general input width */
}


button, .button {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease-in-out;
}

button:hover, .button:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.big-button {
    font-size: 1.5rem;
    padding: 1rem 2rem;
    display: block;
    width: 100%;
    margin-bottom: 1.5rem;
}

.settings-group {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 4px;
}

.settings-group h3 {
    margin-bottom: 0.75rem;
}

/* Links Section */
.links-section {
    margin-top: 2rem;
    text-align: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.links-section a {
    margin: 0 0.5rem;
}

/* Video Display Area */
#video-display {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #e9ecef;
    border-radius: 4px;
    text-align: center;
}

#video-display a {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Error Messages */
.error-message {
    color: red;
    background-color: #ffebee;
    border: 1px solid red;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}
.success-message {
    color: green;
    background-color: #e8f5e9;
    border: 1px solid green;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}


/* Admin Specific */
.admin-player-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    margin-bottom: 1rem;
}

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

.admin-actions {
    display: flex;
    gap: 0.5rem; /* Reduced gap for closer buttons */
    justify-content: center; /* Center buttons */
    flex-wrap: wrap; /* Allow wrapping on small screens */
    margin-top: 1rem;
}

.admin-actions button {
    flex-grow: 1; /* Make buttons take available space */
    min-width: 100px; /* Minimum width for buttons */
}
#report-reason-display, #progress-info {
    margin-top: 1rem;
    text-align: center;
    font-style: italic;
    color: #555;
}


/* Responsive */
@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 1rem;
    }

    .big-button {
        font-size: 1.2rem;
    }

    .links-section {
        flex-direction: column;
        gap: 0.5rem;
    }
    .admin-actions button {
       width: 100%; /* Stack buttons on small screens */
       margin-bottom: 0.5rem;
    }
}

/* CAPTCHA Widget Placeholder */
#capjs-widget-container { /* Default container ID for cap.js widget */
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}
