:root {
    --bg-color: #060913;
    --card-bg: #111625;
    --accent-glow: linear-gradient(135deg, #ff0055, #7000ff);
    --text-main: #a0a5b5;
    --text-bright: #ffffff;
}

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 0;
}

header {
    background: rgba(11, 15, 28, 0.75);
    backdrop-filter: blur(15px);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1e2640;
    position: sticky;
    top: 0;
    z-index: 100;
}

h1 a {
    text-decoration: none;
    font-size: 26px;
    font-weight: 800;
    background: var(--accent-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    background: var(--accent-glow);
    color: white;
    padding: 10px 22px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(112, 0, 255, 0.4);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Большой промо-баннер на главной */
.hero-banner {
    background: linear-gradient(to right, rgba(6,9,19,1) 30%, rgba(6,9,19,0.2)), url('https://images.unsplash.com/photo-1536440136628-849c177e76a1?q=80&w=1200') center/cover;
    height: 350px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 50px;
    margin-bottom: 40px;
    border: 1px solid #1e2640;
}

.hero-banner h2 {
    color: white;
    font-size: 38px;
    margin: 0 0 10px 0;
}

/* Секции категорий */
.section-title {
    color: var(--text-bright);
    font-size: 22px;
    margin: 40px 0 20px 0;
    border-left: 4px solid #ff0055;
    padding-left: 10px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.video-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #1e2640;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: #7000ff;
}

.video-card-img {
    width: 100%;
    height: 160px;
    background: #000 url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=400') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Иконка плей на карточке */
.video-card-img::after {
    content: '▶';
    font-size: 30px;
    color: white;
    background: rgba(0,0,0,0.6);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-card:hover .video-card-img::after {
    opacity: 1;
}

.video-info {
    padding: 15px;
}

.video-info h3 {
    margin: 0 0 8px 0;
    color: var(--text-bright);
    font-size: 16px;
}

/* Страница просмотра (watch.html) */
.watch-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 900px) {
    .watch-layout { grid-template-columns: 1fr; }
}

.main-player {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #1e2640;
    background: #000;
}

/* Комментарии */
.comments-section {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #1e2640;
}

.comment-item {
    border-bottom: 1px solid #1e2640;
    padding: 12px 0;
}

.comment-item:last-child { border: none; }

.comment-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 5px;
}

select, input, textarea {
    width: 100%;
    padding: 12px;
    background: #0b0f19;
    border: 1px solid #1e2640;
    color: white;
    border-radius: 8px;
    box-sizing: border-box;
    margin-bottom: 15px;
}
select:focus, input:focus, textarea:focus {
    border-color: #7000ff;
    outline: none;
}