/* host_style.css - Basic styles for the host page */
:root {
    --bg-dark: #1a1d21;
    --bg-card: #2a2d31;
    --bg-input: #3a3d41;
    --text-light: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-blue: #39C3FF;
    --accent-green: #4CAF50;
    --border-color: #444;
    --font-family: 'Segoe UI', sans-serif;
    --border-radius: 5px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-light);
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 20px auto;
    background-color: var(--bg-card);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

h1, h2 {
    color: var(--accent-blue);
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9em;
    color: var(--text-secondary);
}

input[type="url"],
input[type="text"] {
    width: 100%;
    padding: 10px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-size: 1em;
}
input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(57, 195, 255, 0.3);
}

small {
    font-size: 0.8em;
    color: var(--text-secondary);
    margin-top: 3px;
    display: block;
}

button {
    background-color: var(--accent-blue);
    color: #111;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
button:hover {
    background-color: #6acfff;
}
button:disabled {
    background-color: #555;
    cursor: not-allowed;
    opacity: 0.7;
}

#start-theatre-button {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

#host-status {
    margin-top: 15px;
    padding: 10px;
    background-color: rgba(0,0,0,0.2);
    border-radius: var(--border-radius);
    text-align: center;
    font-style: italic;
    color: var(--text-secondary);
    border: 1px dashed var(--border-color);
}
#host-status.success {
    color: var(--accent-green);
    border-color: var(--accent-green);
}
#host-status.error {
    color: #ff4d4d;
    border-color: #ff4d4d;
}


#host-controls {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
#host-controls h2 span {
    color: var(--text-light);
    font-weight: normal;
}
#host-controls p {
     text-align: center;
     margin-bottom: 15px;
     font-size: 0.9em;
     color: var(--text-secondary);
}

#host-player-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    margin-bottom: 15px;
    position: relative; /* For player iframe */
    border-radius: var(--border-radius);
    overflow: hidden;
}
#youtube-player-host {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: none;
}

.player-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}
.player-actions .time-display {
    font-size: 0.9em;
    color: var(--text-secondary);
    min-width: 80px;
    text-align: right;
}

.viewer-info {
    text-align: center;
    font-size: 0.9em;
    color: var(--text-secondary);
    padding: 10px;
    background-color: rgba(0,0,0,0.1);
    border-radius: var(--border-radius);
}
.viewer-info i { margin-right: 5px; }
#host-viewer-count {
    font-weight: bold;
    color: var(--text-light);
}