/* --- Global Styles --- */
:root {
    --primary-red: #e50914; /* Streaming red */
    --bg-dark: #141414;
    --card-bg: #1f1f1f;
    --text-white: #ffffff;
    --text-gray: #b3b3b3;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 { color: var(--primary-red); font-size: 2.5rem; }
h2 { border-left: 4px solid var(--primary-red); padding-left: 15px; margin-top: 30px; }

/* --- Sections & Cards --- */
section {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* --- Buttons --- */
.btn {
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
    margin-right: 5px;
}

.btn:hover { background-color: #ff0a16; }
.btn-danger { background-color: #444; }
.btn-danger:hover { background-color: #666; }

/* --- Video Table --- */
#videoTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#videoTable th, #videoTable td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #333;
}

#videoTable tr:hover { background-color: #2a2a2a; }

/* --- Video.js Customization --- */
.player-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#mainPlayer {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
}

.player-controls {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: #2a2a2a;
    padding: 15px;
    border-radius: 4px;
    width: 100%;
    max-width: 770px;
}

#badge {
    background: var(--primary-red);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* --- Form Elements --- */
input[type="file"] {
    background: #333;
    padding: 10px;
    border-radius: 4px;
    color: white;
}

select {
    background: #333;
    color: white;
    border: 1px solid #444;
    padding: 5px;
    border-radius: 4px;
}

.btn-disabled {
    opacity: 0.5;        /* makes it look faded */
    cursor: not-allowed; /* shows blocked cursor */
}