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

body {
    background-color: #04054f;
    font-family: 'Nunito', sans-serif;
    color: #ffffff;
    min-height: 100vh;
}

/* Шапка */
.video-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.video-search-form {
    display: flex;
    gap: 8px;
    flex: 1 1 320px;
    max-width: 480px;
}

.video-search-input {
    flex: 1;
    padding: 10px 16px;
    border-radius: 20px;
    border: 2px solid rgba(0, 240, 255, 0.35);
    background: rgba(255, 255, 255, 0.95);
    color: #111111;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    outline: none;
}

.video-search-input:focus {
    border-color: #00f0ff;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
}

.video-search-btn {
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    background: #00f0ff;
    color: #04054f;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.video-search-btn:hover {
    background: #ffffff;
}

.search-status {
    padding: 12px 28px 0;
    max-width: 1400px;
    margin: 0 auto;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.brand-name-small {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.video-tag {
    color: #00f0ff;
    font-weight: 500;
}

/* Панель вкладок-категорий */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 28px 0;
    max-width: 1400px;
    margin: 0 auto;
}

.category-tab {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.25);
    color: rgba(255, 255, 255, 0.75);
    padding: 8px 18px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-tab:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.category-tab.active {
    background: #00f0ff;
    border-color: #00f0ff;
    color: #04054f;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.feed-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
}

/* --- ЛЕНТА (index.html) --- */
.feed-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    padding: 28px;
    max-width: 1400px;
    margin: 0 auto;
}

.video-card {
    display: block;
    text-decoration: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: #00f0ff;
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.25);
}

.video-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: #000;
}

.video-title {
    padding: 12px 14px 2px;
    font-size: 0.95rem;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    padding: 4px 14px 14px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.video-channel {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    margin-bottom: 2px;
}

/* --- СТРАНИЦА ПРОСМОТРА (watch.html) --- */
.watch-layout {
    display: flex;
    gap: 24px;
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start;
}

.player-column {
    flex: 1 1 auto;
    min-width: 0;
}

.player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.25);
}

.player-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.watch-title {
    margin-top: 16px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.3rem;
}

.watch-meta {
    margin-top: 6px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.watch-channel {
    color: #00f0ff;
    font-weight: 700;
}

.related-column {
    flex: 0 0 320px;
}

.related-heading {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-item {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    border-radius: 10px;
    padding: 6px;
    transition: background 0.2s ease;
}

.related-item:hover {
    background: rgba(0, 240, 255, 0.1);
}

.related-thumb {
    width: 120px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    background: #000;
    flex-shrink: 0;
}

.related-title {
    font-size: 0.85rem;
    font-weight: 600;
}

.related-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.related-meta {
    margin-top: 4px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
}

/* Адаптив */
@media (max-width: 820px) {
    .watch-layout {
        flex-direction: column;
    }
    .related-column {
        flex: 1 1 auto;
        width: 100%;
    }
}
