@import url('https://fonts.googleapis.com/css2?family=Courgette&amp;display=swap');

.card-holder {
    width: 100%;
    max-width: 1400px;
    height: 400px;
    margin: auto;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.main-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    padding: 10px;
    background-color: #1c1c1c;
    border: 2px solid white;
    border-radius: 10px;
    box-shadow: 0px 0px 15px 2px black;
}

.small-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* Rectangular Channel Posters */
.small-card {
    width: 140px;
    height: 90px; /* Keeps it rectangular */
    padding: 5px;
    background-color: white;
    border: 2px solid red;
    border-radius: 10px; /* Keeps the shape consistent */
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Hides overflowing parts */
}

.small-card img {
    max-width: 100%;  /* Ensures the image does not exceed card size */
    max-height: 100%; /* Keeps aspect ratio */
    object-fit: contain; /* Prevents distortion */
}

/* Slide Buttons */
button {
    background-color: red;
    border: none;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
}

.slide-left {
    left: 10px;
}

.slide-right {
    right: 10px;
}

.hidden {
    display: none;
}

.player {
    width: 70%;
    height: 60%;
}

/* Rectangular Channel Logos */
.clogo {
    width: 140px; /* Same width as small-card */
    height: 90px; /* Ensures rectangular shape */
    border-radius: 10px;
    border: 2px solid red;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.clogo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Channel Name */
.channel_name {
    font-size: 2rem;
    margin: 26px 0px 10px 16px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .card-holder {
        height: 300px;
    }

    .main-card {
        padding: 5px;
    }

    .small-card {
        width: 100px;
        height: 70px; /* Adjusted for mobile */
    }

    .player {
        width: 100%;
        height: 50%;
    }

    .clogo {
        width: 100px;
        height: 70px; /* Adjusted height for mobile */
    }

    .channel_name {
        font-size: 1.5rem;
        margin: 16px 0px 10px 10px;
    }
}

/* Logo Styling */
.logo {
    max-width: 200px;
    max-height: 80px;
    width: 100%;
    height: auto;
}

@media screen and (max-width: 768px) {
    .logo {
        max-width: 100px;
        max-height: 50px;
    }
}

@media screen and (max-width: 480px) {
    .logo {
        max-width: 200px;
        max-height: 90px;
    }
}

/* Section Heading */
.heading h2 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    margin: auto;
    white-space: nowrap;
}

.heading h2:before {
    background-color: #c50000;
    content: '';
    display: block;
    height: 3px;
    width: 75px;
    margin-bottom: 5px;
}

.heading h2:after {
    background-color: #c50000;
    content: '';
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    height: 3px;
    width: 75px;
    margin-bottom: 0.25em;
}

/* Advertisement */
.ad-fisher h3 {
    display: inline;
    font-size: 1rem;
    padding: 1px 3px;
    font-family: "Courgette", cursive;
    margin-right: 4px;
}

@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.blinking-text {
    animation: blink 1s infinite;
}

.ad-fisher img {
    width: 40px;
    height: 40px;
}
