body {
    background-color: #121212;
    color: #ffffff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background-color: #1f1f1f;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #333;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

/* Логотип Tubezilla CSS */
.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(225deg, #7CFF7C 0%, #008000 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: black;
    font-size: 26px;
    font-family: 'Impact', sans-serif;
}

.logo-text {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    letter-spacing: -1px;
}

.search-form {
    display: flex;
    flex-grow: 1;
    max-width: 600px;
    margin: 0 20px;
}

.search-input {
    width: 100%;
    padding: 10px;
    background: #121212;
    border: 1px solid #333;
    color: white;
    border-radius: 20px 0 0 20px;
    outline: none;
}

.search-btn {
    padding: 10px 20px;
    background: #222;
    border: 1px solid #333;
    border-left: none;
    color: #aaa;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
}

.search-btn:hover {
    background: #333;
}

.container {
    padding: 20px;
}

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

.video-card {
    background: #1f1f1f;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s;
}

.video-card:hover {
    transform: scale(1.02);
}

.thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.thumbnail-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 12px;
}

.video-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
}

.channel-name {
    font-size: 12px;
    color: #aaa;
}

/* Страница просмотра */
.player-container {
    max-width: 1000px;
    margin: 20px auto;
}

.iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}