/* Global Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: calc(16px + 0.390625vw);
    color: rgb(220, 220, 220);
}

html {
    background: rgb(10, 54, 107);
    scroll-snap-type: y mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgb(74, 144, 226) rgb(10, 54, 107);
}

html::-webkit-scrollbar {
    width: 10px;
}

html::-webkit-scrollbar-track {
    background: rgb(10, 54, 107);
    box-shadow: inset 1px 1px 5px black;
}

html::-webkit-scrollbar-thumb {
    background: linear-gradient(0deg, rgb(74, 144, 226), rgb(10, 54, 107));
    border-radius: 10px;
}

html::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(0deg, rgb(100, 160, 240), rgb(30, 95, 139));
}

html::-webkit-scrollbar-thumb:active {
    background: linear-gradient(0deg, rgb(10, 54, 107), rgb(0, 30, 80));
}

/* Font Definitions https://www.dafont.com/rosehot.font */

@font-face {
    font-family: 'Rosehot';
    src: url('fonts/Rosehot.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Layout Styles */
section {
    height: 100vh;
    min-height: 100vh;
    background: radial-gradient(circle, rgb(74, 144, 226) 0%, rgb(10, 54, 107) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    scroll-snap-align: start;
}

.page {
    width: 80%;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px;
}

/* Typography */
h1 {
    font-size: 3.5rem;
    font-family: 'Rosehot', cursive, sans-serif;
    line-height: 1.3;
    color: rgb(100, 160, 240);
    padding-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

h2 {
    font-family: 'Rosehot', cursive, sans-serif;
    font-size: calc(84px + 0.390625vw);
    line-height: 1.2;
    color: rgb(100, 160, 240);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 12px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

h2 span.flag {
    font-size: calc(28px + 0.390625vw);
    margin-top: 12px;
}

/* Component Styles */
.series-details {
    margin: 8px 0;
    flex-shrink: 1;
}

.series-details p {
    font-size: calc(13px + 0.390625vw);
    line-height: 1.4;
    margin-bottom: 6px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.series-details p:last-child {
    margin-bottom: 0;
    padding-bottom: 8px;
}

.link-container {
    display: flex;
    justify-content: center;
    gap: 0.6em;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.link-container img {
    width: 40px;
    height: 40px;
}

.series-image {
    padding-top: 20px;
    display: flex;
    justify-content: center;
    aspect-ratio: 2 / 3;
    max-height: 35vh;
    width: auto;
}

.series-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid rgb(74, 144, 226);
    background: rgb(10, 54, 107);
    border-radius: 15px;
    box-shadow: 
        0 4px 8px rgba(74, 144, 226, 0.5),
        0 0 15px rgba(74, 144, 226, 0.3);
    transition: transform 0.3s ease;
}

.series-image img:hover {
    transform: scale(1.05);
}

a {
    color: rgb(100, 160, 240);
    text-decoration: none;
}

a:hover {
    color: rgb(74, 144, 226);
}

/* Dropdown and Movie List */
.dropdown-container {
    margin-bottom: 15px; /* Padding under the dropdown before description */
}

#genreDropdown {
    background: rgb(10, 54, 107);
    border: 2px solid rgb(74, 144, 226);
    border-radius: 8px;
    padding: 8px;
    font-size: calc(14px + 0.390625vw);
    color: rgb(220, 220, 220);
    width: 200px;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

#genreDropdown:hover {
    background: rgb(30, 95, 139);
}

#genreDropdown:focus {
    outline: none;
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.5);
}

#genreDropdown option {
    background: rgb(10, 54, 107);
    color: rgb(220, 220, 220);
}

.description {
    margin: 10px 0;
    text-align: left;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.description p {
    font-size: calc(13px + 0.390625vw);
    line-height: 1.4;
    margin: 0;
}

/* NEW: INLINE ICON STYLING - SCALES WITH TEXT */
.description p a {
    margin: 0 2px;
    display: inline-block;
    transition: all 0.2s ease;
}

.description p a img,
.description p a 🔗 {
    width: 1.2em;
    height: 1.2em;
    vertical-align: middle;
}

/* ICON HOVER EFFECTS */
.description p a:hover img,
.description p a:hover 🔗 {
    filter: brightness(1.2);
    transform: scale(1.1);
}

.movie-list {
    margin-top: 20px;
    width: 100%;
    max-height: 50vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgb(74, 144, 226) rgb(10, 54, 107);
}

.movie-list::-webkit-scrollbar {
    width: 8px;
}

.movie-list::-webkit-scrollbar-track {
    background: rgb(10, 54, 107);
    box-shadow: inset 1px 1px 5px black;
}

.movie-list::-webkit-scrollbar-thumb {
    background: linear-gradient(0deg, rgb(74, 144, 226), rgb(10, 54, 107));
    border-radius: 10px;
}

.movie-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(0deg, rgb(100, 160, 240), rgb(30, 95, 139));
}

.movie-list p {
    font-size: calc(13px + 0.390625vw);
    line-height: 1.4;
    padding: 8px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 5px;
    margin: 5px 0;
    text-align: left;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.footer {
    margin-top: 12px;
}

.footer p {
    font-size: calc(13px + 0.390625vw);
    line-height: 1.4;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page {
        width: 95%;
    }
    
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: calc(50px + 0.390625vw);
        margin-bottom: 12px;
    }

    .h2small {
        font-size: calc(40px + 0.390625vw);
    }

    h2 span.flag {
        font-size: calc(24px + 0.390625vw);
        margin-top: 20px;
    }

    .series-details p,
    .footer p,
    .movie-list p,
    .description p {
        font-size: calc(11px + 0.390625vw);
    }

    .series-details p:last-child {
        padding-bottom: 8px;
    }

    .series-image {
        max-height: 28vh;
    }

    .link-container {
        margin: 8px 0 10px;
    }

    .link-container img {
        width: 34px;
        height: 34px;
    }

    #genreDropdown {
        width: 100%;
        max-width: 180px;
        font-size: calc(12px + 0.390625vw);
    }

    .description {
        margin: 8px 0;
    }
}
