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

header {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
}

nav {
    display: flex;
    gap: 10px;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: #575757;
}

#search {
    padding: 5px;
    border-radius: 5px;
    border: none;
}

main {
    padding: 20px;
}

section h2 {
    color: #333;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

article {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    width: calc(33% - 20px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

article:hover {
    transform: scale(1.05);
}

article h3 {
    margin-top: 0;
}

article img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

article button {
    padding: 10px 15px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

article button:hover {
    background-color: #575757;
}

.square {
    aspect-ratio: 1 / 1;
}

#player {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 10px;
    z-index: 1000;
}

#player video {
    width: 100%;
    height: calc(100% - 60px);
}

#player-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

#player-controls button {
    padding: 5px 10px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#player-controls button:hover {
    background-color: #575757;
}

#player-title,
#player-quality {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
    transition: opacity 0.5s ease;
}

#player-title {
    font-size: 1.2em;
    font-weight: bold;
}

#player-quality {
    margin-top: 5px;
    font-size: 0.9em;
}

#server-list {
    display: none;
    position: fixed;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;
}

#server-list button {
    display: block;
    width: 100%;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#server-list button:hover {
    background-color: #575757;
}

#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    font-size: 18px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
}

#scrollToTopBtn:hover {
    background-color: #555;
}
