
.radio-canada-f {
  font-family: "Radio Canada", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Radio Canada", sans-serif;
    background-image: linear-gradient(to bottom, rgba(30, 30, 30, 255), rgba(25, 25, 25, 255));
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    height: calc(100vh - 20.8rem);
    padding: 1rem;
    box-sizing: border-box;
    overflow: hidden;
}

.player-wrapper {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
}

.player-iframe {
    border: none;
    border-radius: 8px;
    display: block;
    width: 100%;
    height: 100%;
}

.no-embed-msg {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    text-align: center;
}

.header {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    height: 17rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 1);      
    padding: 1rem;
    flex-wrap: nowrap;
    transition: height 0.3s ease, padding 0.3s ease;

    background-image: linear-gradient(to bottom, rgba(30, 30, 30, 255), rgba(25, 25, 25, 255));
}

.header.collapsed {
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}

.header-toggle {
    display: block;
    width: 100%;
    background: rgba(20, 20, 20, 1);
    color: white;
    border: none;
    padding: 0.3rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.toggle-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.header-toggle.collapsed .toggle-arrow {
    transform: rotate(180deg);
}

.header-section {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: fit-content;
    height: 100%;
}

.header-section + .header-section {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 1rem;
}

.live-circle {
    display: inline-block;
    width: 0.6rem;
    height: 0.6rem;
    background-color: red;
    border-radius: 50%;
    vertical-align: middle;
}

.section-title {
    color: white;
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    white-space: nowrap;
}

.section-items {
    display: flex;
    gap: 1rem;
    height: 15rem;
    min-height: 15rem;
}

.showcase {
    position: relative;
    background-color: transparent;
    height: 15rem;
    aspect-ratio: 21 / 16;
    flex-shrink: 0;
    font-size: 14px;
    overflow: hidden;
}

.showcase-live {
    position: relative;
    background-color: transparent;
    height: 15rem;
    aspect-ratio: 21 / 16;
    flex-shrink: 0;
    font-size: 14px;
    overflow: hidden;
}


.thumbnail {
    position: relative;
    background-color: white;
    width: 100%;
    aspect-ratio: 21 / 12;
    font-size: 14px;
    overflow: hidden;
    background-size: cover;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.showcase-name {
    display: block;
    text-align: left;
    color: white;
    font-weight: bold;
    padding: 0.3rem 0.2rem 0.3rem;
    font-size: 0.85rem;
}

.showcase-date-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.2rem 0.3rem;
}

.showcase-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

.showcase-countdown {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    white-space: nowrap;
}

.showcase-links {
    display: flex;
    gap: 0.5rem;
    padding: 0 0.2rem 0.3rem;
}

.showcase-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    text-decoration: none;
}

.showcase-link:hover {
    color: white;
}

.showcaseName {
    color: rgb(255, 255, 255, 1);
    text-shadow: 2px 0 black, -2px 0 black, 0 2px black, 0 -2px black, 1px 1px black, -1px -1px black, -1px 1px black, 1px -1px black;
    bottom: 5px;
    right: 5px;
    font-weight: bold;
    text-align: right;
    font-size: x-large;
    min-width: 100px;
    max-width: 250px;
}

.links {
    display: flex;
    margin-top: 10px;
    height: 40px;
    color: rgb(255, 255, 255, 1);
    text-shadow: 2px 0 black, -2px 0 black, 0 2px black, 0 -2px black, 1px 1px black, -1px -1px black, -1px 1px black, 1px -1px black;
    top: 5px;
    right: 5px;
    font-weight: bold;
    text-align: right;
    font-size: x-large;
}

.twitch {
    padding-left: 10px;
    display: flex;
    background-image: url('https://neiloru.github.io/gameshowcases/resources/icons/twitch.svg');
    background-repeat: no-repeat;
    background-position: right;
    filter: invert(100%) drop-shadow(0 0 2px rgba(0, 0, 0, 1));
    height: 40px;
    width: 40px;
    cursor: pointer;
}

.youtube {
    padding-left: 10px;
    display: flex;
    background-image: url('https://neiloru.github.io/gameshowcases/resources/icons/youtube.svg');
    background-repeat: no-repeat;
    background-position: right;
    filter: invert(100%) drop-shadow(0 0 2px rgba(0, 0, 0, 1));
    height: 40px;
    width: 40px;
    cursor: pointer;
}



/* Responsive: 2 per row on small screens */
@media (max-width: 768px) {
    .box {
        width: calc(50% - 20px);
    }

    .boxold {
        width: calc(50% - 20px);
    }
}
