body {
    background-color: #0B0F14;
    color: #E8EEF7;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

.container {
    background-color: #121821;
    padding: 20px;
    border-radius: 16px;
    max-width: 1400px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: normal;
    color: #E8EEF7;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #5F7188;
}

.empty-state p {
    margin: 10px 0;
}

/* Статистика принтеров */
.printers-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.printer-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background-color: #172030;
    border-radius: 20px;
    border-left: 3px solid;
    font-size: 13px;
}

.printer-stat-name {
    color: #E8EEF7;
}

.printer-stat-count {
    color: #8FA0B8;
    font-size: 12px;
}

/* Панель фильтрации */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #172030;
}

.filter-btn {
    background-color: #172030;
    color: #8FA0B8;
    border: none;
    padding: 5px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.filter-btn:hover {
    background-color: #1D2838;
    color: #E8EEF7;
}

.filter-btn.active {
    background-color: #3DDC97;
    color: white;
}

/* Сетка видео */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .video-grid {
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* Карточка видео */
.video-card {
    background-color: #172030;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s;
}

.video-card:hover {
    transform: translateY(-2px);
}

/* Превью */
.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: #121821;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s;
}

.video-thumbnail:hover .play-overlay {
    opacity: 1;
}

/* Информация */
.video-info {
    padding: 12px;
}

.video-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.printer-badge {
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.model-name {
    font-size: 13px;
    color: #E8EEF7;
    word-break: break-word;
}

/* Метаданные */
.video-meta {
    margin-bottom: 12px;
}

.meta-item {
    font-size: 12px;
    color: #8FA0B8;
    line-height: 1.6;
}

.meta-label {
    margin-right: 6px;
}

.meta-value {
    color: #C7D3E3;
    font-family: monospace;
}

/* Кнопки */
.video-actions {
    display: flex;
    gap: 8px;
}

.btn {
    flex: 1;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
    transition: background-color 0.2s;
}

.btn-play {
    background-color: #3DDC97;
    color: white;
}

.btn-play:hover {
    background-color: #45a049;
}

.btn-download {
    background-color: #555;
    color: white;
}

.btn-download:hover {
    background-color: #5F7188;


/* Стандарт дизайна itmarkov: тонкая рамка вместо теней,
   зелёный акцент с тёмным текстом, системные радиусы. */
.container,
.video-card {
    border: 1px solid #223046;
}
.filter-btn.active,
.btn-play {
    color: #06120C;
    background-color: #3DDC97;
}
.video-card {
    background-color: #121821;
}
a { color: #2AA5FF; }
