/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    animation: fadeIn 1s ease-in-out;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header Styles for Home Page */
.header {
    background-color: #007bff;
    color: #fff;
    padding: 20px;
    text-align: center;
    position: relative;
}

.logo-container {
    position: absolute;
    left: 10px; /* Adjusted to move the logo slightly left */
    top: 10px; /* Adjusted to move the logo slightly up */
    text-align: center;
}

.logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
}

.site-title {
    display: block;
    font-size: 16px;
    color: #ffffff;
    font-weight: bold;
    margin-top: 5px;
}

.select-channel {
    margin-top: 40px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

/* Channel List Styles for Home Page */
.channel-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.channel-item {
    display: block;
    text-align: center;
    width: 200px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.channel-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.channel-item img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-top: 10px;
}

.channel-item span {
    display: block;
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
}

/* Header Styles for Channel Pages */
.header.channel-header {
    background-color: #007bff;
    color: #fff;
    padding: 60px;
    text-align: center;
    position: relative;
}

/* Channel Page Specific Styles */
.channel-header .logo-container {
    position: absolute;
    left: 10px; /* Adjusted to move the logo slightly left */
    top: 10px; /* Adjusted to move the logo slightly up */
    text-align: center;
}

.channel-header .logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
}

.channel-header .site-title {
    display: block;
    font-size: 16px;
    color: #ffffff;
    font-weight: bold;
    margin-top: 5px;
}

/* Back to Home Button Styles for Channel Pages */
.back-home-button {
    position: absolute;
    top: 50%; /* Centered vertically in the header */
    right: 10px; /* Kept in the top-right corner */
    transform: translateY(-50%); /* Ensure proper vertical centering */
    font-size: 24px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
    background-color: #007bff;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, box-shadow 0.3s;
    border: none;
}

/* Channel Logo and Header Styles for Channel Pages */
.channel-header .channel-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
    margin-top: 20px;
}

.channel-header span {
    display: block;
    font-size: 24px;
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
}
