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

html, body {
    width: 100vw;
    height: 100vh;
    overflow: hidden !important;
    background: #000;
    font-family: Arial, sans-serif;
}

#table-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    z-index: 1;
    padding: 1.5vh 2vw;
    overflow: hidden !important;
}

#table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1vh;
    border-bottom: 3px solid #1a237e;
    flex-shrink: 0;
    min-height: 6vh;
}

#table-header h1 {
    font-size: 3vh;
    color: #1a237e;
    margin: 0;
    font-weight: 700;
}

#table-header-right {
    display: flex;
    gap: 2vw;
    font-size: 1.8vh;
    color: #666;
    font-weight: 500;
}

#update-time {
    color: #1a237e;
    font-weight: 700;
}

#countdown-time {
    color: #c62828;
    font-weight: 700;
}

#table-content {
    flex: 1;
    overflow: hidden !important;
    padding-top: 1vh;
    display: flex;
    align-items: flex-start;
}

#custom-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

#custom-table thead th {
    background: #1a237e;
    color: #ffffff;
    padding: 0.5vh 0.8vw;
    text-align: left;
    font-weight: 700;
    border: 1px solid #1a237e;
    position: sticky;
    top: 0;
    z-index: 10;
}

#custom-table tbody td {
    padding: 0.4vh 0.8vw;
    border: 1px solid #e0e0e0;
    text-align: left;
    vertical-align: middle;
    overflow: hidden;
    font-weight: 700;
}

/* Разрешаем перенос текста */
#custom-table tbody td:nth-child(2) {
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
}

/* Остальные ячейки - без переноса */
#custom-table tbody td:not(:nth-child(2)) {
    white-space: nowrap;
}

#custom-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

#custom-table tbody tr:hover {
    background: #e3f2fd;
}

/* Бюджет - зеленая полоска */
#custom-table tbody tr.budget {
    border-left: 4px solid #2e7d32;
}

#custom-table tbody tr.paid {
    border-left: 4px solid #c62828;
}

#custom-table tbody tr.budget td:first-child {
    padding-left: 0.8vw;
}

#custom-table tbody tr.paid td:first-child {
    padding-left: 0.8vw;
}
/* Конкурс */
/* Конкурс - ПРАВИЛЬНЫЕ ЦВЕТА */
.competition-high {
    color: #c62828 !important;  /* КРАСНЫЙ - высокий конкурс (>3) */
    font-weight: 700;
}

.competition-medium {
    color: #f9a825 !important;  /* ЖЕЛТЫЙ - средний конкурс (1.5-3) */
    font-weight: 700;
}

.competition-low {
    color: #2e7d32 !important;  /* ЗЕЛЕНЫЙ - низкий конкурс (<1.5) */
    font-weight: 700;
}

.competition-none {
    color: #999 !important;
    font-weight: 400;
}

/* Колонки - название специальности шире, остальные уже */
#custom-table col:nth-child(1) { width: 7%; }   /* Код */
#custom-table col:nth-child(2) { width: 58%; }  /* Направление */
#custom-table col:nth-child(3) { width: 9%; }   /* КЦП */
#custom-table col:nth-child(4) { width: 13%; }  /* Заявлений */
#custom-table col:nth-child(5) { width: 9%; }   /* Конкурс */

#video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 2;
}

/* 🔥 ГЛАВНОЕ ИЗМЕНЕНИЕ: Видео заполняет весь экран без рамок 🔥 */
#player {
    width: 100vw;
    height: 100vh;
    object-fit: cover; /* Вместо contain — обрезает края, но без черных полос */
    background: #000;
}