/* Glowing Gradient Text for Section Headings (matches hero button style) */
.glowing-gradient-text {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 8.85%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* Global Styles */
:root {
    --primary-color: #e50914;
    --primary-hover: #f40d17;
    --dark-bg: #141414;
    --light-text: #ffffff;
    --gray-bg: #2f2f2f;
    --gray-light: #b3b3b3;
    --success-color: #46d369;
    --main-font: 'Roboto', sans-serif;
    /* Changed from Arial to Roboto */
}

body {
    font-family: var(--main-font);
    color: var(--light-text);
    background-color: var(--dark-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeIn 0.3s ease-in forwards;
    overflow-x: hidden;
    /* Prevent horizontal scrollbars */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    /* Remove fixed height calculation that may be causing issues */
}

/* Navbar */
.navbar {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 15px 0;
}

.navbar-brand img {
    max-height: 50px;
}

.nav-link {
    color: var(--light-text) !important;
    margin-left: 15px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Footer */
footer {
    background-color: #111217;
    padding: 15px 0;
    margin-top: auto;
    /* Changed from fixed 3rem to auto - ensures footer sticks to bottom */
    position: relative;
    /* Ensure proper stacking context */
}

/* Ensure consistent footer spacing across all pages */
footer .container {
    margin-top: 0 !important;
    padding: 0 15px !important;
    /* Override any parent container padding */
}

footer .row {
    margin-top: 0 !important;
}

.footer-text {
    margin-bottom: 0;
    color: var(--gray-light);
    font-size: 0.9rem;
}

.footer-email {
    color: var(--light-text);
    margin-left: 5px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-email:hover {
    color: var(--primary-color);
}

.footer-attribution {
    font-size: 0.8em;
    color: #666;
    margin-top: 2px;
    margin-bottom: 0;
}

footer .footer-attribution a {
    color: inherit;
    text-decoration: none;
}

footer .footer-attribution a:hover {
    color: #333;
    text-decoration: underline;
}

footer a:not(.footer-email) {
    /* Add general footer link styles if needed */
}

.social-links {
    display: flex;
    justify-content: flex-end;
}

.social-link {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    margin-right: 15px;
    transition: color 0.2s;
}

.social-link:hover {
    color: #e1306c;
    /* Instagram color */
}

.social-link i {
    margin-right: 5px;
    font-size: 18px;
}

/* Buttons */
.btn-flix {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-flix:hover {
    background-color: var(--primary-hover);
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(229, 9, 20, 0.3);
}

/* Glowing Box Styles for Hero Buttons */
.glowing-box {
    --animation-speed: 6s;
    isolation: isolate;
    overflow: hidden;
    border-radius: 999px;
    display: inline-block;
    position: relative;
    transition: 0.4s cubic-bezier(0.77, -0.68, 0.62, 1.23);
}

.glowing-box:hover {
    transition: 0.4s cubic-bezier(0.77, -0.68, 0.62, 1.23);
    transform: scale(1.2);
    box-shadow: 1px 1px 20px 1px rgba(194, 156, 255, 0.05);
}

.glowing-box-active .glowing-box-animations,
.glowing-box-active .glowing-box-borders-masker {
    opacity: 1;
}

.glowing-box-animations {
    opacity: 0;
    pointer-events: none;
    transition: 1s ease opacity;
}

.glowing-box-animations,
.glowing-box-borders {
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.glowing-box-animations:before,
.glowing-box-borders:before {
    content: "";
    float: left;
    padding-top: 100%;
}

.glowing-box-animations {
    opacity: 0;
    pointer-events: none;
    transition: 1s ease opacity;
}

.glowing-box-glow {
    filter: blur(10px);
    opacity: 0.1;
}

.glowing-box-animations * {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.glowing-box-stars-masker {
    /* I used BASE 64 to add the background pattern to the URL mask, but you can download the background here: i.imgur.com/oOtlWvp.png */
    -webkit-mask: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjgnIGhlaWdodD0nMjQnIHZpZXdCb3g9JzAgMCAyOCAyNCcgZmlsbD0nbm9uZScgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz48cGF0aCBkPSdNMTQuMDUzNCAxNS43MzJDMTMuODQ0NCAxNS4yODMgMTQuMjg0OCAxNC44NDg5IDE0LjczMjYgMTUuMDUxQzE0LjgyOTYgMTUuMDk1OSAxNC45MDQzIDE1LjE3MDcgMTQuOTQ5IDE1LjI2OEMxNS4xNTA2IDE1LjcxNyAxNC43MTc3IDE2LjE1MTEgMTQuMjY5OCAxNS45NDlDMTQuMTcyOCAxNS45MDQxIDE0LjA5ODIgMTUuODI5MyAxNC4wNTM0IDE1LjczMlonIGZpbGw9J2JsYWNrJy8+PHBhdGggZD0nTTE4LjgwMDEgMTMuNTA5M0MxOS4wMDE2IDEzLjA2MDMgMTguNTY4NyAxMi42MjYzIDE4LjEyMDkgMTIuODI4M0MxOC4wMjM5IDEyLjg3MzIgMTcuOTQ5MiAxMi45NDgxIDE3LjkwNDUgMTMuMDQ1M0MxNy42OTU1IDEzLjQ5NDQgMTguMTM1OCAxMy45Mjg0IDE4LjU4MzcgMTMuNzI2NEMxOC42ODA3IDEzLjY4MTUgMTguNzU1MyAxMy42MDY2IDE4LjgwMDEgMTMuNTA5M1onIGZpbGw9J2JsYWNrJy8+PHBhdGggZD0nTTAuOTQ5MDQzIDIuNzMyQzEuMTUwNTcgMi4yODI5NyAwLjcxNzY2MyAxLjg0ODkxIDAuMjY5ODM2IDIuMDUwOTdDMC4xNzI4MDYgMi4wOTU4NyAwLjA5ODE2MiAyLjE3MDcxIDAuMDUzMzc5MyAyLjI2OEMtMC4xNTU2MDcgMi43MTcwMyAwLjI4NDc1OSAzLjE1MTA5IDAuNzMyNTg3IDIuOTQ5MDNDMC44Mjk2MTYgMi45MDQxMyAwLjkwNDI2IDIuODI5MjkgMC45NDkwNDMgMi43MzJaJyBmaWxsPSdibGFjaycvPjxwYXRoIGQ9J00yNi45NDg5IDcuNzMyQzI3LjE1MSA3LjI4Mjk3IDI2LjcxNjkgNi44NDg5MSAyNi4yNjc5IDcuMDUwOTdDMjYuMTcwNiA3LjA5NTg3IDI2LjA5NTggNy4xNzA3MSAyNi4wNTA4IDcuMjY4QzI1Ljg0ODggNy43MTcwMyAyNi4yODI4IDguMTUxMDkgMjYuNzMxOSA3Ljk0OTAzQzI2LjgyOTIgNy45MDQxMyAyNi45MDQgNy44MjkyOSAyNi45NDg5IDcuNzMyWicgZmlsbD0nYmxhY2snLz48cGF0aCBkPSdNMTMuMDUzNCA1LjczMkMxMi44NDQ0IDUuMjgyOTcgMTMuMjg0OCA0Ljg0ODkxIDEzLjczMjYgNS4wNTA5N0MxMy44Mjk2IDUuMDk1ODcgMTMuOTA0MyA1LjE3MDcxIDEzLjk0OSA1LjI2OEMxNC4xNTA2IDUuNzE3MDMgMTMuNzE3NyA2LjE1MTA5IDEzLjI2OTggNS45NDkwM0MxMy4xNzI4IDUuOTA0MTMgMTMuMDk4MiA1LjgyOTI5IDEzLjA1MzQgNS43MzJaJyBmaWxsPSdibGFjaycvPjxwYXRoIGQ9J00xMC4wNTM0IDE3LjczMkM5Ljg0NDM5IDE3LjI4MyAxMC4yODQ4IDE2Ljg0ODkgMTAuNzMyNiAxNy4wNTFDMTAuODI5NiAxNy4wOTU5IDEwLjkwNDMgMTcuMTcwNyAxMC45NDkgMTcuMjY4QzExLjE1MDYgMTcuNzE3IDEwLjcxNzcgMTguMTUxMSAxMC4yNjk4IDE3Ljk0OUMxMC4xNzI4IDE3LjkwNDEgMTAuMDk4MiAxNy44MjkzIDEwLjA1MzQgMTcuNzMyWicgZmlsbD0nYmxhY2snLz48cGF0aCBkPSdNMTUuMDUzNCAyMS43MzJDMTQuODQ0NCAyMS4yODMgMTUuMjg0OCAyMC44NDg5IDE1LjczMjYgMjEuMDUxQzE1LjgyOTYgMjEuMDk1OSAxNS45MDQzIDIxLjE3MDcgMTUuOTQ5IDIxLjI2OEMxNi4xNTA2IDIxLjcxNyAxNS43MTc3IDIyLjE1MTEgMTUuMjY5OCAyMS45NDlDMTUuMTcyOCAyMS45MDQxIDE1LjA5ODIgMjEuODI5MyAxNS4wNTM0IDIxLjczMlonIGZpbGw9J2JsYWNrJy8+PC9zdmc+Cg==);
    mask: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjgnIGhlaWdodD0nMjQnIHZpZXdCb3g9JzAgMCAyOCAyNCcgZmlsbD0nbm9uZScgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz48cGF0aCBkPSdNMTQuMDUzNCAxNS43MzJDMTMuODQ0NCAxNS4yODMgMTQuMjg0OCAxNC44NDg5IDE0LjczMjYgMTUuMDUxQzE0LjgyOTYgMTUuMDk1OSAxNC45MDQzIDE1LjE3MDcgMTQuOTQ5IDE1LjI2OEMxNS4xNTA2IDE1LjcxNyAxNC43MTc3IDE2LjE1MTEgMTQuMjY5OCAxNS45NDlDMTQuMTcyOCAxNS45MDQxIDE0LjA5ODIgMTUuODI5MyAxNC4wNTM0IDE1LjczMlonIGZpbGw9J2JsYWNrJy8+PHBhdGggZD0nTTE4LjgwMDEgMTMuNTA5M0MxOS4wMDE2IDEzLjA2MDMgMTguNTY4NyAxMi42MjYzIDE4LjEyMDkgMTIuODI4M0MxOC4wMjM5IDEyLjg3MzIgMTcuOTQ5MiAxMi45NDgxIDE3LjkwNDUgMTMuMDQ1M0MxNy42OTU1IDEzLjQ5NDQgMTguMTM1OCAxMy45Mjg0IDE4LjU4MzdgMTMuNzI2NEMxOC42ODA3IDEzLjY4MTUgMTguNzU1MyAxMy42MDY2IDE4LjgwMDEgMTMuNTA5M1onIGZpbGw9J2JsYWNrJy8+PHBhdGggZD0nTTAuOTQ5MDQzIDIuNzMyQzEuMTUwNTcgMi4yODI5NyAwLjcxNzY2MyAxLjg0ODkxIDAuMjY5ODM2IDIuMDUwOTdDMC4xNzI4MDYgMi4wOTU4NyAwLjA5ODE2MiAyLjE3MDcxIDAuMDUzMzc5MyAyLjI2OEMtMC4xNTU2MDcgMi43MTcwMyAwLjI4NDc1OSAzLjE1MTA5IDAuNzMyNTg3IDIuOTQ5MDNDMC44Mjk2MTYgMi45MDQxMyAwLjkwNDI2IDIuODI5MjkgMC45NDkwNDMgMi43MzJaJyBmaWxsPSdibGFjaycvPjxwYXRoIGQ9J00yNi45NDg5IDcuNzMyQzI3LjE1MSA3LjI4Mjk3IDI2LjcxNjkgNi44NDg5MSAyNi4yNjc5IDcuMDUwOTdDMjYuMTcwNiA3LjA5NTg3IDI2LjA5NTggNy4xNzA3MSAyNi4wNTA4IDcuMjY4QzI1Ljg0ODggNy43MTcwMyAyNi4yODI4IDguMTUxMDkgMjYuNzMxOSA3Ljk0OTAzQzI2LjgyOTIgNy45MDQxMyAyNi45MDQgNy44MjkyOSAyNi45NDg5IDcuNzMyWicgZmlsbD0nYmxhY2snLz48cGF0aCBkPSdNMTMuMDUzNCA1LjczMkMxMi44NDQ0IDUuMjgyOTcgMTMuMjg0OCA0Ljg0ODkxIDEzLjczMjYgNS4wNTA5N0MxMy44Mjk2IDUuMDk1ODcgMTMuOTA0MyA1LjE3MDcxIDEzLjk0OSA1LjI2OEMxNC4xNTA2IDUuNzE3MDMgMTMuNzE3NyA2LjE1MTA5IDEzLjI2OTggNS45NDkwM0MxMy4xNzI4IDUuOTA0MTMgMTMuMDk4MiA1LjgyOTI5IDEzLjA1MzQgNS43MzJaJyBmaWxsPSdibGFjaycvPjxwYXRoIGQ9J00xMC4wNTM0IDE3LjczMkM5Ljg0NDM5IDE3LjI4MyAxMC4yODQ4IDE2Ljg0ODkgMTAuNzMyNiAxNy4wNTFDMTAuODI5NiAxNy4wOTU5IDEwLjkwNDMgMTcuMTcwNyAxMC45NDkgMTcuMjY4QzExLjE1MDYgMTcuNzE3IDEwLjcxNzcgMTguMTUxMSAxMC4yNjk4IDE3Ljk0OUMxMC4xNzI4IDE3LjkwNDEgMTAuMDk4MiAxNy44MjkzIDEwLjA1MzQgMTcuNzMyWicgZmlsbD0nYmxhY2snLz48cGF0aCBkPSdNMTUuMDUzNCAyMS43MzJDMTQuODQ0NCAyMS4yODMgMTUuMjg0OCAyMC44NDg5IDE1LjczMjYgMjEuMDUxQzE1LjgyOTYgMjEuMDk1OSAxNS45MDQzIDIxLjE3MDcgMTUuOTQ5IDIxLjI2OEMxNi4xNTA2IDIxLjcxNyAxNS43MTc3IDIyLjE1MTEgMTUuMjY5OCAyMS45NDlDMTUuMTcyOCAyMS45MDQxIDE1LjA5ODIgMjEuODI5MyAxNS4wNTM0IDIxLjczMlonIGZpbGw9J2JsYWNrJy8+PC9zdmc+Cg==);
    -webkit-mask-repeat: repeat;
    mask-repeat: repeat;
    -webkit-mask-size: 13%;
    mask-size: 13%;
}

.glowing-box-animations * {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.glowing-box-borders,
.glowing-box-glow,
.glowing-box-stars {
    animation: borderTurn var(--animation-speed) infinite linear;
    background-image: conic-gradient(from 0 at 50% 50%,
            rgba(255, 255, 255, 0.8) 0deg,
            rgba(255, 255, 255, 0.1) 60deg,
            rgba(255, 255, 255, 0.1) 310deg,
            rgba(255, 255, 255, 0.8) 360deg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.glowing-box-animations * {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.glowing-box-animations:after,
.glowing-box-borders:after {
    clear: both;
    content: "";
    display: block;
}

.glowing-box-active .glowing-box-animations,
.glowing-box-active .glowing-box-borders-masker {
    opacity: 1;
}

.glowing-box-borders-masker {
    border-radius: 999px;
    content: "";

    inset: 0;
    left: 0;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.6;
    padding: 1px;
    pointer-events: none;
    position: absolute;
    top: 0;
    transition: 1s ease opacity;
}

.glowing-box-borders {
    animation-name: borderTurnWithTranslate;
}

.glowing-box-animations,
.glowing-box-borders {
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.glowing-box-animations:before,
.glowing-box-borders:before {
    content: "";
    float: left;
    padding-top: 100%;
}

.glowing-box-animations:after,
.glowing-box-borders:after {
    clear: both;
    content: "";
    display: block;
}

.glowing-box-button {
    background: radial-gradient(107.5% 107.5% at 50% 215%,
            rgba(255, 255, 255, 0.24) 0%,
            rgba(255, 255, 255, 0) 100%),
        rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    cursor: pointer;
    padding: 7px 24px;
    position: relative;
    z-index: 1;
}

.glowing-box-button {
    font-feature-settings:
        "cv06" on,
        "calt" off,
        "liga" off;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 24px;
}

.glowing-box .glowing-box-button {
    overflow: visible;
}

.glowing-box-button {
    background-color: transparent;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

.glowing-box .glowing-box .glowing-box-button {
    -webkit-appearance: button;
    -moz-appearance: button;
    appearance: button;
    cursor: pointer;
}

.glowing-box-button:after {
    background: radial-gradient(73% 117% at 50% 126%,
            rgb(38 3 95 / 82%) 0%,
            rgb(255 255 255 / 0%) 100%);
    border-radius: 999px;
    content: "";
    height: calc(100% + 4px);
    left: -2px;
    opacity: 0;
    position: absolute;
    top: -2px;
    transition: 1s all;
    width: calc(100% + 4px);
}

.glowing-box-button .glowing-span {
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.3) 8.85%,
            #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: block;
}

.glowing-box-button .glowing-span.red-gradient {
    background: linear-gradient(180deg,
            rgba(229, 9, 20, 0.8) 8.85%,
            #e50914 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: block;
}

.glowing-box-button:hover:after {
    opacity: 0.7;
}

@keyframes borderTurnWithTranslate {
    0% {
        transform: translate(-50%, -50%) rotate(0);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes borderTurn {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.btn-flix-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--light-text);
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-flix-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--light-text);
}

/* Primary variant used on content pages (e.g., Add to Playlist) */
.btn-flix-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-flix-primary:hover,
.btn-flix-primary:focus {
    background-color: var(--primary-hover);
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(229, 9, 20, 0.3);
}

/* Home Page */
.index-page {
    background-color: #111216;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 28' width='56' height='28'%3E%3Cpath fill='%230b0c0f' fill-opacity='1' d='M56 26v2h-7.75c2.3-1.27 4.94-2 7.75-2zm-26 2a2 2 0 1 0-4 0h-4.09A25.98 25.98 0 0 0 0 16v-2c.67 0 1.34.02 2 .07V14a2 2 0 0 0-2-2v-2a4 4 0 0 1 3.98 3.6 28.09 28.09 0 0 1 2.8-3.86A8 8 0 0 0 0 6V4a9.99 9.99 0 0 1 8.17 4.23c.94-.95 1.96-1.83 3.03-2.63A13.98 13.98 0 0 0 0 0h7.75c2 1.1 3.73 2.63 5.1 4.45 1.12-.72 2.3-1.37 3.53-1.93A20.1 20.1 0 0 0 14.28 0h2.7c.45.56.88 1.14 1.29 1.74 1.3-.48 2.63-.87 4-1.15-.11-.2-.23-.4-.36-.59H26v.07a28.4 28.4 0 0 1 4 0V0h4.09l-.37.59c1.38.28 2.72.67 4.01 1.15.4-.6.84-1.18 1.3-1.74h2.69a20.1 20.1 0 0 0-2.1 2.52c1.23.56 2.41 1.2 3.54 1.93A16.08 16.08 0 0 1 48.25 0H56c-4.58 0-8.65 2.2-11.2 5.6 1.07.8 2.09 1.68 3.03 2.63A9.99 9.99 0 0 1 56 4v2a8 8 0 0 0-6.77 3.74c1.03 1.2 1.97 2.5 2.79 3.86A4 4 0 0 1 56 10v2a2 2 0 0 0-2 2.07 28.4 28.4 0 0 1 2-.07v2c-9.2 0-17.3 4.78-21.91 12H30zM7.75 28H0v-2c2.81 0 5.46.73 7.75 2zM56 20v2c-5.6 0-10.65 2.3-14.28 6h-2.7c4.04-4.89 10.15-8 16.98-8zm-39.03 8h-2.69C10.65 24.3 5.6 22 0 22v-2c6.83 0 12.94 3.11 16.97 8zm15.01-.4a28.09 28.09 0 0 1 2.8-3.86 8 8 0 0 0-13.55 0c1.03 1.2 1.97 2.5 2.79 3.86a4 4 0 0 1 7.96 0zm14.29-11.86c1.3-.48 2.63-.87 4-1.15a25.99 25.99 0 0 0-44.55 0c1.38.28 2.72.67 4.01 1.15a21.98 21.98 0 0 1 36.54 0zm-5.43 2.71c1.13-.72 2.3-1.37 3.54-1.93a19.98 19.98 0 0 0-32.76 0c1.23.56 2.41 1.2 3.54 1.93a15.98 15.98 0 0 1 25.68 0zm-4.67 3.78c.94-.95 1.96-1.83 3.03-2.63a13.98 13.98 0 0 0-22.4 0c1.07.8 2.09 1.68 3.03 2.63a9.99 9.99 0 0 1 16.34 0z%27%3E%3C/path%3E%3C/svg%3E");
    background-size: auto;
    background-attachment: fixed;
}

.home-container {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 20px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.logo-large {
    max-width: 400px;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    height: auto;
    width: 100%;
}

.home-tagline {
    font-style: italic;
    max-width: 90%;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--gray-light);
    width: 100%;
}

.home-buttons {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px !important;
    width: 100%;
    align-items: center;
}

.home-buttons .glowing-box {
    width: auto;
    min-width: 200px;
}

.home-buttons .glowing-box-button {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
}

.home-buttons .glowing-box-button:hover {
    text-decoration: none;
}

.home-btn {
    min-width: fit-content;
    width: auto;
    padding: 15px 25px;
    font-size: 1.2rem;
    white-space: nowrap;
}

/* Suggestion Page */
.suggestion-page,
.movie-page,
.tvshow-page,
.curated-list-page {
    position: relative;
    background-color: #111216;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 28' width='56' height='28'%3E%3Cpath fill='%230b0c0f' fill-opacity='1' d='M56 26v2h-7.75c2.3-1.27 4.94-2 7.75-2zm-26 2a2 2 0 1 0-4 0h-4.09A25.98 25.98 0 0 0 0 16v-2c.67 0 1.34.02 2 .07V14a2 2 0 0 0-2-2v-2a4 4 0 0 1 3.98 3.6 28.09 28.09 0 0 1 2.8-3.86A8 8 0 0 0 0 6V4a9.99 9.99 0 0 1 8.17 4.23c.94-.95 1.96-1.83 3.03-2.63A13.98 13.98 0 0 0 0 0h7.75c2 1.1 3.73 2.63 5.1 4.45 1.12-.72 2.3-1.37 3.53-1.93A20.1 20.1 0 0 0 14.28 0h2.7c.45.56.88 1.14 1.29 1.74 1.3-.48 2.63-.87 4-1.15-.11-.2-.23-.4-.36-.59H26v.07a28.4 28.4 0 0 1 4 0V0h4.09l-.37.59c1.38.28 2.72.67 4.01 1.15.4-.6.84-1.18 1.3-1.74h2.69a20.1 20.1 0 0 0-2.1 2.52c1.23.56 2.41 1.2 3.54 1.93A16.08 16.08 0 0 1 48.25 0H56c-4.58 0-8.65 2.2-11.2 5.6 1.07.8 2.09 1.68 3.03 2.63A9.99 9.99 0 0 1 56 4v2a8 8 0 0 0-6.77 3.74c1.03 1.2 1.97 2.5 2.79 3.86A4 4 0 0 1 56 10v2a2 2 0 0 0-2 2.07 28.4 28.4 0 0 1 2-.07v2c-9.2 0-17.3 4.78-21.91 12H30zM7.75 28H0v-2c2.81 0 5.46.73 7.75 2zM56 20v2c-5.6 0-10.65 2.3-14.28 6h-2.7c4.04-4.89 10.15-8 16.98-8zm-39.03 8h-2.69C10.65 24.3 5.6 22 0 22v-2c6.83 0 12.94 3.11 16.97 8zm15.01-.4a28.09 28.09 0 0 1 2.8-3.86 8 8 0 0 0-13.55 0c1.03 1.2 1.97 2.5 2.79 3.86a4 4 0 0 1 7.96 0zm14.29-11.86c1.3-.48 2.63-.87 4-1.15a25.99 25.99 0 0 0-44.55 0c1.38.28 2.72.67 4.01 1.15a21.98 21.98 0 0 1 36.54 0zm-5.43 2.71c1.13-.72 2.3-1.37 3.54-1.93a19.98 19.98 0 0 0-32.76 0c1.23.56 2.41 1.2 3.54 1.93a15.98 15.98 0 0 1 25.68 0zm-4.67 3.78c.94-.95 1.96-1.83 3.03-2.63a13.98 13.98 0 0 0-22.4 0c1.07.8 2.09 1.68 3.03 2.63a9.99 9.99 0 0 1 16.34 0z%27%3E%3C/path%3E%3C/svg%3E");
    background-size: auto;
    background-attachment: fixed;
}

.suggestion-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-size: cover;
    background-repeat: repeat;
    opacity: 0.1;
    z-index: -1;
}

.suggestion-content {
    padding: 30px 0;
}

.suggestion-content.container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
}

.suggestion-poster {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease-in;
    object-fit: contain;
    height: auto;
    max-height: 750px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.suggestion-poster.loaded {
    opacity: 1;
}

.suggestion-details h1 {
    font-size: 2.5rem;
    margin-bottom: 0;
}

.release-year {
    color: var(--gray-light);
    font-weight: 400;
}

.genre-duration {
    color: var(--gray-light);
    font-size: 0.9rem;
    margin-top: 5px;
    margin-bottom: 20px;
}

.ratings-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 0;
}

.rating-item {
    text-align: center;
}

.circle-progress-container {
    position: relative;
    margin-bottom: 10px;
    min-height: 90px;
}

.circle-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    z-index: 2;
}

.rating-label-inner {
    font-size: 0.7rem;
    margin-top: 0;
    font-weight: 500;
    color: var(--gray-light);
    line-height: 0.7;
}

.rating-label {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.overview {
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Ratings Pills (shared across suggestion, movie, tv pages) */
.ratings-pills {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    align-items: stretch;
    margin: 12px 0;
    width: 100%;
    min-width: 0;
}

.rating-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    width: 100%;
    min-width: 0;
    border: 1px solid #333;
    border-radius: 12px;
    padding: clamp(6px, 2vw, 10px);
    font-weight: 600;
    background: #101010;
}

.rating-pill .num {
    font-size: clamp(14px, 5vw, 22px);
    font-weight: 700;
    line-height: 1;
    color: #fff
}

.rating-pill .num .percent-symbol {
    font-size: 0.7em;
    font-weight: 500;
}

.rating-pill .lbl {
    font-size: clamp(9px, 2.4vw, 11px);
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Responsive rating labels - show short names by default, full names on large screens */
.rating-pill .lbl-short {
    display: inline;
}

.rating-pill .lbl-full {
    display: none;
}

/* On large screens (above 1200px), show full names */
@media (min-width: 1201px) {
    .rating-pill .lbl-short {
        display: none;
    }

    .rating-pill .lbl-full {
        display: inline;
    }
}

/* Override for curated lists and playlists - always show short names in content cards */
.ratings-pills-curated .rating-pill .lbl-short {
    display: inline !important;
}

.ratings-pills-curated .rating-pill .lbl-full {
    display: none !important;
}

.pill-gray {
    background: #101010;
    color: #e0e0e0;
    border-color: #2a2a2a;
}

.pill-fp.fp-good {
    background: #0c1a12;
    color: #46d369;
    border-color: #1c3c2e;
}

.pill-fp.fp-avg {
    background: #1a150b;
    color: #ffc107;
    border-color: #3b2d0a;
}

.pill-fp.fp-bad {
    background: #1a0b0b;
    color: #dc3545;
    border-color: #4a1212;
}

/* Crew Info Styling */
.crew-info {
    margin: 20px 0;
}

.crew-members {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 100px;
    margin-top: 10px;
}

.crew-member {
    text-align: center;
}

.crew-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: white;
}

.crew-role {
    font-size: 1rem;
    color: #e50914;
    /* Netflix red */
    text-transform: none;
    font-weight: bold;
}

.cast-container {
    margin-bottom: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cast-container.loaded {
    opacity: 1;
}

.cast-title {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.cast-carousel {
    margin: 0 -10px;
    visibility: hidden;
}

.cast-carousel.slick-initialized {
    visibility: visible;
}

.cast-carousel .slick-list {
    margin: 0;
}

.cast-carousel .slick-track {
    margin-left: 0;
    /* Add this to align items to the left */
}

.cast-item {
    padding: 0 10px;
    max-width: 200px;
    height: 100%;
    /* Ensure full height */
}

.slick-track {
    display: flex !important;
    align-items: stretch !important;
}

.slick-slide {
    height: auto !important;
    display: flex !important;
}

.slick-slide>div {
    width: 100%;
    height: 100%;
    display: flex !important;
}

.cast-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 315px !important;
    /* Set a fixed minimum height for all cards */
}

.cast-card:hover {
    transform: translateY(-5px);
}

.cast-image {
    width: 100%;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    max-height: 250px;
    flex-shrink: 0;
    /* Prevent image from shrinking */
}

.cast-info {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 65px;
    /* Minimum height for the info section */
    justify-content: flex-start;
}

.cast-name {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cast-character {
    font-size: 0.8rem;
    color: var(--gray-light);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.providers-container {
    margin-bottom: 25px;
}

.providers-title {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.providers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.provider-logo {
    height: 50px;
    /* Fixed height */
    object-fit: contain;
    /* Prevent image distortion */
    max-width: 100%;
    /* Ensure it fits container */
    margin-right: 8px;
    border-radius: 5px;
}

.trailer-container {
    margin-bottom: 25px;
}

.trailer-title {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.trailer-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.suggestion-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

@media (min-width: 768px) {
    .desktop-poster .suggestion-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .desktop-poster .suggestion-actions .btn {
        width: 100%;
        margin-bottom: 5px;
    }

    .desktop-poster .suggestion-actions .btn:last-child {
        margin-bottom: 0;
    }

    .desktop-poster .suggestion-actions .ms-2 {
        margin-left: 0 !important;
    }
}

/* Advanced Suggestion Page */
.advanced-page {
    position: relative;
    /* background: url('../../assets/images/dark.png') repeat center center; */
    /* background-size: auto; */
    /* background-attachment: fixed; */
    background-color: #111216;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 28' width='56' height='28'%3E%3Cpath fill='%230b0c0f' fill-opacity='1' d='M56 26v2h-7.75c2.3-1.27 4.94-2 7.75-2zm-26 2a2 2 0 1 0-4 0h-4.09A25.98 25.98 0 0 0 0 16v-2c.67 0 1.34.02 2 .07V14a2 2 0 0 0-2-2v-2a4 4 0 0 1 3.98 3.6 28.09 28.09 0 0 1 2.8-3.86A8 8 0 0 0 0 6V4a9.99 9.99 0 0 1 8.17 4.23c.94-.95 1.96-1.83 3.03-2.63A13.98 13.98 0 0 0 0 0h7.75c2 1.1 3.73 2.63 5.1 4.45 1.12-.72 2.3-1.37 3.53-1.93A20.1 20.1 0 0 0 14.28 0h2.7c.45.56.88 1.14 1.29 1.74 1.3-.48 2.63-.87 4-1.15-.11-.2-.23-.4-.36-.59H26v.07a28.4 28.4 0 0 1 4 0V0h4.09l-.37.59c1.38.28 2.72.67 4.01 1.15.4-.6.84-1.18 1.3-1.74h2.69a20.1 20.1 0 0 0-2.1 2.52c1.23.56 2.41 1.2 3.54 1.93A16.08 16.08 0 0 1 48.25 0H56c-4.58 0-8.65 2.2-11.2 5.6 1.07.8 2.09 1.68 3.03 2.63A9.99 9.99 0 0 1 56 4v2a8 8 0 0 0-6.77 3.74c1.03 1.2 1.97 2.5 2.79 3.86A4 4 0 0 1 56 10v2a2 2 0 0 0-2 2.07 28.4 28.4 0 0 1 2-.07v2c-9.2 0-17.3 4.78-21.91 12H30zM7.75 28H0v-2c2.81 0 5.46.73 7.75 2zM56 20v2c-5.6 0-10.65 2.3-14.28 6h-2.7c4.04-4.89 10.15-8 16.98-8zm-39.03 8h-2.69C10.65 24.3 5.6 22 0 22v-2c6.83 0 12.94 3.11 16.97 8zm15.01-.4a28.09 28.09 0 0 1 2.8-3.86 8 8 0 0 0-13.55 0c1.03 1.2 1.97 2.5 2.79 3.86a4 4 0 0 1 7.96 0zm14.29-11.86c1.3-.48 2.63-.87 4-1.15a25.99 25.99 0 0 0-44.55 0c1.38.28 2.72.67 4.01 1.15a21.98 21.98 0 0 1 36.54 0zm-5.43 2.71c1.13-.72 2.3-1.37 3.54-1.93a19.98 19.98 0 0 0-32.76 0c1.23.56 2.41 1.2 3.54 1.93a15.98 15.98 0 0 1 25.68 0zm-4.67 3.78c.94-.95 1.96-1.83 3.03-2.63a13.98 13.98 0 0 0-22.4 0c1.07.8 2.09 1.68 3.03 2.63a9.99 9.99 0 0 1 16.34 0z%27%3E%3C/path%3E%3C/svg%3E");
    background-size: auto;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.advanced-page .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px 15px;
}

.advanced-page .centered-logo {
    margin: 15px auto 15px;
    text-align: center;
    padding: 0 20px;
}

.advanced-page footer {
    padding: 10px 0;
}

.form-container {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 30px;
}

.form-label {
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.form-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    /* Center align options */
}

.form-option {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 5px;
    padding: 10px 15px;
    color: var(--light-text);
    cursor: pointer;
    transition: all 0.3s;
}

.form-option:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.form-option.selected {
    background-color: rgba(229, 9, 20, 0.2);
    border-color: var(--primary-color);
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

/* Success Animation */
.success-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    /* background-color removed to eliminate light tint */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.success-animation.show {
    opacity: 1;
    visibility: visible;
}

.success-message {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.share-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.share-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.share-whatsapp {
    background-color: #25D366;
}

.share-instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

.share-message {
    background-color: #0078FF;
}

.share-x {
    background-color: #000000;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Share buttons */
.share-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--dark-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    text-align: center;
    max-width: 90%;
    width: 400px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.share-container.show {
    opacity: 1;
    visibility: visible;
}

.share-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: none;
    color: white;
    font-size: 1.5rem;
}

.share-button:hover {
    transform: scale(1.1);
}

.share-whatsapp {
    background-color: #25D366;
}

.share-instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

.share-message {
    background-color: #0078FF;
}

.share-x {
    background-color: #000000;
}

.share-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--light-text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

/* Responsive Styles */
@media (max-width: 767px) {
    .suggestion-poster {
        display: none;
        /* Hide poster on mobile */
    }

    .suggestion-details h1 {
        font-size: 2rem;
    }

    .ratings-container {
        justify-content: space-around;
        gap: 5px;
    }

    .circle-progress-container {
        min-height: 80px;
    }

    .circle-progress-text {
        font-size: 1.2rem;
    }

    .rating-label-inner {
        font-size: 0.6rem;
    }

    /* Reduce space between director and cinematographer on mobile */
    .crew-members {
        gap: 25px;
    }

    /* Make homepage logo responsive on mobile */
    .logo-large {
        width: 90%;
        /* Slightly less than full width for small padding */
        height: auto;
    }

    /* Actions styling for mobile */
    .suggestion-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
        padding: 15px;
        background-color: rgba(20, 20, 20, 0.9);
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.5);
        z-index: 100;
        transition: position 0.3s ease;
    }

    .suggestion-actions.fixed {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .suggestion-actions.inline {
        position: static;
        margin-top: 20px;
        margin-left: auto;
        margin-right: auto;
        max-width: min(520px, 94vw);
        background: transparent;
        box-shadow: none;
        padding: 0;
        align-items: center;
    }

    .suggestion-actions .btn {
        width: 100%;
        margin-bottom: 5px;
    }

    .suggestion-actions .btn:last-child {
        margin-bottom: 0;
    }

    /* When buttons are fixed at bottom, only show the first two */
    .suggestion-actions.fixed>.btn:nth-child(n+3) {
        display: none !important;
    }

    /* Adjust trailer container for mobile */
    .trailer-container {
        margin-bottom: 30px;
    }

    /* Add padding when buttons are fixed */
    body.has-fixed-buttons .suggestion-content {
        padding-bottom: 140px;
    }

    .home-buttons {
        max-width: 100%;
    }

    .form-container {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
        gap: 15px;
    }

    .rating-label {
        font-size: 0.8rem;
        white-space: normal;
        line-height: 1.2;
        padding: 0 5px;
    }

    .rating-label-inner {
        display: block;
        width: 100%;
    }

    .content-overview {
        -webkit-line-clamp: 2;
        font-size: 0.9rem;
        margin-bottom: 0.5rem !important;
    }

    .list-item-card h5 {
        font-size: 1.1rem;
        margin-bottom: 0.25rem !important;
    }

    .list-item-card .text-muted.small {
        font-size: 0.75rem;
        margin-bottom: 0.25rem !important;
    }

    /* Ensure full width layout on mobile */
    .suggestion-content.container {
        padding-left: 5px !important;
        padding-right: 5px !important;
        max-width: 100%;
    }

    /* Optimize row/column structure */
    .list-item-card .item-card-content {
        margin-left: 0;
        margin-right: 0;
    }

    /* Reduce padding */
    .list-item-card .col-md-2,
    .list-item-card .col-md-10,
    .list-item-card .col-md-9,
    .list-item-card .col-md-3 {
        padding: 0 3px;
        flex: 0 0 auto;
        width: auto;
    }

    .list-item-card .col-md-2 {
        width: 25%;
        /* Slightly smaller poster width */
        max-width: 80px;
    }

    .list-item-card .col-md-10 {
        width: 75%;
        /* Increase content width */
    }

    .list-item-card .col-md-9 {
        width: 75%;
        /* Details width */
    }

    .list-item-card .col-md-3 {
        width: 25%;
        /* Rating width */
        min-width: 60px;
    }

    /* Restore rating circle styles with smaller dimensions */
    .list-item-card .circle-progress-container {
        min-height: 55px;
        width: 55px;
        height: 55px;
    }

    .list-item-card .order-number-box {
        width: 55px;
        height: 55px;
        line-height: 55px;
        font-size: 1.4em;
    }

    .list-item-card .circle-progress-text>div {
        font-size: 22px !important;
    }

    /* Ensure full width on both portrait and landscape */
    .row {
        margin-left: -5px;
        margin-right: -5px;
    }

    /* Make sure content doesn't overflow */
    .list-item-card {
        padding-left: 5px;
        padding-right: 5px;
    }

    /* Keep cover photo on curated-list page for mobile */
    .curated-list-page .suggestion-poster {
        display: block !important;
        /* Override any rule that might hide it */
        max-width: 100%;
        height: auto;
        margin: 0 auto 20px;
    }

    .list-item-card .col-md-2 img {
        border-radius: 4px 0 0 4px;
        max-height: none;
        /* Remove max-height constraint */
    }

    .list-item-card .row.border {
        margin: 0;
        /* Remove any margin that might create gaps */
    }
}

@media (min-width: 768px) {
    .home-buttons {
        flex-direction: row;
        justify-content: center;
        max-width: none;
        gap: 40px;
    }
}

/* Centered Logo Styles */
.centered-logo {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 5px;
    padding: 0 20px;
}

.centered-logo img {
    max-width: 250px;
    height: auto;
    width: auto;
    transition: transform 0.3s;
    object-fit: contain;
    aspect-ratio: auto;
}

.centered-logo img:hover {
    transform: scale(1.05);
}

/* Page Loading Improvements */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Ensure images don't cause layout shift */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img.loaded,
img:not([loading="lazy"]) {
    opacity: 1;
}

/* Ratings animation smoothing */
.circle-progress {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.circle-progress.initialized {
    opacity: 1;
}

/* Circle Progress Colors */
.rating-item:first-child .circle-progress {
    stroke: #46d369 !important;
    /* Green for FP Rating */
}

.rating-item:not(:first-child) .circle-progress {
    stroke: #6c757d !important;
    /* Gray for IMDb, Rotten, Meta */
}

/* Lazy Loading Styles */
.lazy-iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
}

.lazy-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.lazy-iframe-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.lazy-iframe-placeholder:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.lazy-iframe-placeholder:hover .lazy-iframe-overlay i {
    transform: scale(1.1);
}

.lazy-iframe-overlay {
    text-align: center;
    color: white;
    z-index: 1;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 8px;
}

.lazy-iframe-overlay i {
    font-size: 4rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.lazy-iframe-overlay span {
    display: block;
    margin-top: 10px;
    font-size: 1rem;
}

/* Full-width background for carousel */
.carousel-bg {
    position: absolute;
    top: 0;
    /* Align to the top of .carousel-bg-wrapper */
    height: 100%;
    /* Match height of .carousel-bg-wrapper */
    width: 100vw;
    /* Full viewport width */
    left: 50%;
    transform: translateX(-50%);
    /* Center the 100vw element */
    background: none;
    /* Actual image is on .bg-image child */
    z-index: -1;
    /* Behind .upcoming-movies-section */
    overflow: hidden;
    /* Clips the .bg-image if it's larger than .carousel-bg */
    /* right: 0; REMOVED */
    border-top: 3px solid #22242d;
    border-bottom: 3px solid #22242d;
    background-color: #111217;
}

/* Full width wrapper for carousel background */
.carousel-bg-wrapper {
    position: relative;
    width: 100%;
    /* Takes width of its parent in the layout */
    margin-top: 30px;
    /* display: flex, justify-content, align-items REMOVED */
    /* overflow: hidden REMOVED to allow child to be 100vw */
}

/* Individual background image */
.carousel-bg .bg-image {
    position: absolute;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.1;
    /* Moved opacity here */
}

/* Upcoming Movies in Theaters */
.upcoming-movies-section {
    margin-top: 0px;
    width: 100%;
    padding: 15px 20px 20px 20px;
    /* Top padding changed to 15px, others remain 20px */
    border-radius: 10px;
    max-width: 1320px;
    z-index: 1;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.upcoming-title {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--light-text);
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.upcoming-carousel {
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    max-width: 100%;
}

.upcoming-carousel .slick-list {
    overflow: hidden;
    /* Add CSS mask for fade-out effect on both left and right edges */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 75px, black calc(100% - 75px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 75px, black calc(100% - 75px), transparent 100%);
}

.upcoming-item {
    padding: 0 10px;
    position: relative;
    overflow: hidden;
}

.upcoming-card {
    background: transparent;
    border-radius: 20px;
    overflow: hidden;
    transition: none;
    margin-bottom: 0;
    display: inline-block;
    position: relative;
    width: auto !important;
    height: auto;
    box-sizing: border-box;
}

.upcoming-card:hover {
    transform: none;
    box-shadow: none;
}

.upcoming-image {
    height: 300px;
    /* Fixed height */
    width: auto;
    /* Preserve aspect ratio */
    border-radius: 20px;
    /* 20px rounded corners */
    object-fit: contain;
    /* Do not crop; maintain ratio */
    display: block;
}

.upcoming-info {
    display: none !important;
}

.upcoming-name {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 0.9rem;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: var(--light-text);
    padding: 0 2px;
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.upcoming-date {
    font-size: 0.8rem;
    color: var(--gray-light);
}

/* Slick carousel custom styles for upcoming movies */
.upcoming-carousel .slick-prev,
.upcoming-carousel .slick-next {
    z-index: 5;
    width: 30px;
    height: 30px;
}

.upcoming-carousel .slick-prev {
    left: -5px;
}

.upcoming-carousel .slick-next {
    right: -5px;
}

.upcoming-carousel .slick-prev:before,
.upcoming-carousel .slick-next:before {
    font-size: 30px;
    opacity: 0.8;
}

/* Make sure the home container has appropriate styling for the carousel */
.home-container {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 20px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Make movie cards clickable with IMDb links */
.movie-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: block;
}

.movie-link:hover .upcoming-card {
    transform: none !important;
    box-shadow: none !important;
}

/* Subtle inner glow on hover without resizing */
.movie-link .upcoming-image {
    transition: box-shadow 0.2s ease-in-out;
    position: relative;
    z-index: 0;
}

/* Use overlay on the card to ensure the glow draws above the image */
.upcoming-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 3px rgba(255, 248, 200, 0.95),
        inset 0 0 18px rgba(255, 248, 200, 0.35);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    z-index: 3;
}

.movie-link:hover .upcoming-card::after {
    opacity: 1;
}

/* Also show glow for keyboard users when the link is focused */
.movie-link:focus .upcoming-card::after,
.movie-link:focus-visible .upcoming-card::after {
    opacity: 1;
}

.movie-link:hover .upcoming-name {
    color: var(--primary-color);
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(20, 20, 20, 0.95);
    color: #fff;
    padding: 15px;
    z-index: 10000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

/* Curated list cards (shared with curated.php) */
.list-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 12px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.list-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4) !important;
}

/* 5-Poster Cover Layout */
.five-poster-cover {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.five-poster-cover .poster-slot {
    position: relative;
    transition: transform 0.3s ease;
}

.five-poster-cover .poster-slot:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.five-poster-cover:hover .poster-slot:hover {
    transform: scale(1.05);
    z-index: 2;
}

.five-poster-cover img {
    transition: all 0.3s ease;
}

/* Right column playlists carousel (homepage) */
.approved-playlists-right {
    position: relative;
    overflow: hidden;
    /* hide overflow, no scrollbars */
    padding: 0;
    /* no internal padding to keep alignment */
}

.approved-playlists-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    will-change: transform;
    transition: transform 0.5s ease;
}

.approved-playlists-slide {
    width: 100%;
    height: 100%;
    /* match viewport height via JS */
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* space between cards */
}

/* Remove unintended top margin on curated lists grid row */
.curated-lists-section .row.gx-4.gy-0 {
    margin-top: 0 !important;
}

/* Homepage curated/playlists row spacing */
.curated-lists-section .curated-playlists-row {
    margin-top: 10px !important;
}

/* Remove left padding only for the curated left column on homepage */
.curated-lists-section .curated-left {
    padding-left: 0 !important;
}

/* Approved Playlist Cards (match curated.php) */
.approved-playlist-card {
    height: 100px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 12px !important;
    position: relative;
    /* enable z-index layering on hover */
}

.approved-playlist-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
    z-index: 2;
    /* sit above neighboring cards when raised */
}

.playlist-image-container {
    width: 80px;
    height: 100px;
    flex-shrink: 0;
    overflow: hidden;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.playlist-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-content {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.playlist-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Force left alignment on curated cards */
.approved-playlist-card .playlist-title,
.approved-playlist-card .playlist-content {
    text-align: left !important;
}

/* Muted link colors inside cards, like curated.php */
.approved-playlist-card a .playlist-author,
.approved-playlist-card a small {
    color: rgba(255, 255, 255, 0.5) !important;
}

.approved-playlist-card a .playlist-author:hover,
.approved-playlist-card a small:hover {
    color: rgba(255, 255, 255, 0.5) !important;
}

.playlist-author {
    font-size: 0.85rem;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .approved-playlist-card {
        height: 90px;
    }

    .playlist-image-container {
        width: 70px;
        height: 90px;
    }

    .playlist-content {
        padding: 12px;
    }

    .playlist-title {
        font-size: 0.9rem;
    }

    .playlist-author {
        font-size: 0.8rem;
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    padding: 10px 0;
    flex: 1;
    min-width: 300px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cookie-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.cookie-btn.accept {
    background-color: var(--primary-color);
    color: white;
}

.cookie-btn.decline {
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.cookie-more {
    color: #bbb;
    margin-left: 10px;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        margin-top: 10px;
        justify-content: center;
    }
}

/* Privacy Policy Page Styles */
.privacy-page,
.advanced-page,
.curated-list-page,
.suggestion-page,
.movie-page,
.tvshow-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.privacy-page main,
.advanced-page main,
.curated-list-page main,
.suggestion-page main,
.movie-page main,
.tvshow-page main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

/* Apply advanced page background styling to privacy page */
.privacy-page {
    position: relative;
    background-color: #111216;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 28' width='56' height='28'%3E%3Cpath fill='%230b0c0f' fill-opacity='1' d='M56 26v2h-7.75c2.3-1.27 4.94-2 7.75-2zm-26 2a2 2 0 1 0-4 0h-4.09A25.98 25.98 0 0 0 0 16v-2c.67 0 1.34.02 2 .07V14a2 2 0 0 0-2-2v-2a4 4 0 0 1 3.98 3.6 28.09 28.09 0 0 1 2.8-3.86A8 8 0 0 0 0 6V4a9.99 9.99 0 0 1 8.17 4.23c.94-.95 1.96-1.83 3.03-2.63A13.98 13.98 0 0 0 0 0h7.75c2 1.1 3.73 2.63 5.1 4.45 1.12-.72 2.3-1.37 3.53-1.93A20.1 20.1 0 0 0 14.28 0h2.7c.45.56.88 1.14 1.29 1.74 1.3-.48 2.63-.87 4-1.15-.11-.2-.23-.4-.36-.59H26v.07a28.4 28.4 0 0 1 4 0V0h4.09l-.37.59c1.38.28 2.72.67 4.01 1.15.4-.6.84-1.18 1.3-1.74h2.69a20.1 20.1 0 0 0-2.1 2.52c1.23.56 2.41 1.2 3.54 1.93A16.08 16.08 0 0 1 48.25 0H56c-4.58 0-8.65 2.2-11.2 5.6 1.07.8 2.09 1.68 3.03 2.63A9.99 9.99 0 0 1 56 4v2a8 8 0 0 0-6.77 3.74c1.03 1.2 1.97 2.5 2.79 3.86A4 4 0 0 1 56 10v2a2 2 0 0 0-2 2.07 28.4 28.4 0 0 1 2-.07v2c-9.2 0-17.3 4.78-21.91 12H30zM7.75 28H0v-2c2.81 0 5.46.73 7.75 2zM56 20v2c-5.6 0-10.65 2.3-14.28 6h-2.7c4.04-4.89 10.15-8 16.98-8zm-39.03 8h-2.69C10.65 24.3 5.6 22 0 22v-2c6.83 0 12.94 3.11 16.97 8zm15.01-.4a28.09 28.09 0 0 1 2.8-3.86 8 8 0 0 0-13.55 0c1.03 1.2 1.97 2.5 2.79 3.86a4 4 0 0 1 7.96 0zm14.29-11.86c1.3-.48 2.63-.87 4-1.15a25.99 25.99 0 0 0-44.55 0c1.38.28 2.72.67 4.01 1.15a21.98 21.98 0 0 1 36.54 0zm-5.43 2.71c1.13-.72 2.3-1.37 3.54-1.93a19.98 19.98 0 0 0-32.76 0c1.23.56 2.41 1.2 3.54 1.93a15.98 15.98 0 0 1 25.68 0zm-4.67 3.78c.94-.95 1.96-1.83 3.03-2.63a13.98 13.98 0 0 0-22.4 0c1.07.8 2.09 1.68 3.03 2.63a9.99 9.99 0 0 1 16.34 0z%27%3E%3C/path%3E%3C/svg%3E");
    background-size: auto;
    background-attachment: fixed;
}

.privacy-page .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px 15px;
}

.privacy-page-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.privacy-page-logo:hover {
    transform: scale(1.05);
}

.bg-dark-light {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.privacy-content {
    line-height: 1.6;
    font-size: 16px;
}

.privacy-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.privacy-content h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.privacy-content h3 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--light-text);
}

.privacy-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-content ul li {
    margin-bottom: 0.5rem;
}

.privacy-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.privacy-content a:hover {
    text-decoration: underline;
}

.last-updated {
    color: var(--gray-light);
    font-size: 0.9rem;
}

/* Make sure the privacy content is readable on small screens */
@media (max-width: 768px) {
    .privacy-content {
        padding: 15px !important;
    }

    .privacy-content h1 {
        font-size: 2rem;
    }

    .privacy-content h2 {
        font-size: 1.5rem;
    }
}

/* Add CSS for Curated List Items */
.list-item-card {
    /* Add any specific card styling if needed */
}

.list-item-card .bg-white {
    background-color: #ffffff !important;
    /* Ensure white background */
}

.list-item-card .content-overview {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.5em;
    /* Adjust based on line-height */
    line-height: 1.5em;
    margin-bottom: 10px;
    color: #000000 !important;
    /* Black color */
}

.list-item-card .list-notes {
    font-size: 0.9em;
    color: #555;
    background-color: #f8f9fa;
    padding: 5px 10px;
    border-radius: 4px;
    margin-top: 5px;
    margin-bottom: 10px;
}

/* Container for Rating & Order */
.list-item-card .rating-order-container {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 15px;
    margin-top: 0;
}

.list-item-card .rating-order-container>div {
    text-align: center;
}

.list-item-card .fp-point-block {
    margin-bottom: 10px;
}

/* Inherit general circle progress styles */
.list-item-card .circle-progress-container {
    position: relative;
    margin-bottom: 5px;
    /* Space between circle and text */
    width: 75px;
    /* Change from 100px to 75px */
    height: 76px;
    /* Slightly taller as specified */
}

.list-item-card .circle-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    /* Changed to dark color */
    font-weight: bold;
    font-size: 1.8em;
    /* Reduced from 2em for smaller container */
    z-index: 2;
}

/* Order Number Box */
.list-item-card .order-number-box {
    display: inline-block;
    width: 75px;
    /* Change from 100px to 75px */
    height: 75px;
    /* Change from 100px to 75px */
    line-height: 75px;
    /* Match height for vertical centering */
    border-radius: 10px;
    /* Slightly reduced border radius */
    background-color: #2f2f2f;
    /* Dark gray background */
    color: white;
    text-align: center;
    font-weight: bold;
    font-size: 1.8em;
    /* Reduced from 2.2em for smaller container */
    vertical-align: middle;
}

.list-item-card .rating-order-container small {
    font-size: 0.8em;
    color: #6c757d;
}

/* Ensure overall alignment in the column */
.list-item-card .col-md-3.text-end {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    padding-top: 15px;
}

/* Specific text colors for list items */
.list-item-card h5,
.list-item-card h5 a {
    color: #000000 !important;
    /* Black color */
    text-decoration: none;
}

.list-item-card h5 a:hover {
    color: #e50914 !important;
    text-decoration: underline;
}

/* End Curated List Item CSS */

/* Vertical Divider for Sidebar */
.vertical-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.5);
    /* Half opacity white line */
    height: 100%;
}

/* Sidebar Styling */
.sidebar-content {
    padding-left: 20px;
    margin-top: 30px;
}

.sidebar-box {
    margin-bottom: 20px;
}

/* Author Card Styling */
.author-card {
    background-color: rgba(40, 40, 40, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    margin-bottom: 30px;
}

.author-avatar img {
    border: 3px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
}

.author-name {
    margin-top: 5px;
    margin-bottom: 5px;
    color: #ffffff;
}

.author-bio {
    color: #e6e6e6;
    line-height: 1.6;
}

/* Date styling */
.date-light {
    color: #b0b0b0;
    /* Lighter grey color */
}

/* Custom text justify class */
.text-justify {
    text-align: justify;
}

/* Sidebar List Styling */
.sidebar-list-item {
    transition: transform 0.2s;
    margin-bottom: 20px;
}

.sidebar-list-item:hover {
    transform: translateY(-5px);
}

.sidebar-list-link {
    text-decoration: none;
    color: #ffffff;
    display: block;
}

.sidebar-list-link:hover {
    color: #46d369;
}

.sidebar-list-image {
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sidebar-list-image img {
    transition: transform 0.3s ease;
    width: 100%;
    display: block;
}

.sidebar-list-link:hover .sidebar-list-image img {
    transform: scale(1.05);
}

.sidebar-list-title {
    font-size: 0.95rem;
    line-height: 1.3;
    margin-top: 6px;
    font-weight: 500;
}

@media (min-width: 768px) {
    .sidebar-content {
        margin-top: 0;
        border-left: 1px solid rgba(200, 200, 200, 0.3);
        height: 100%;
        padding-left: 30px;
    }
}

/* On mobile, align the sidebar with main content (no extra left indent) */
@media (max-width: 767.98px) {
    .sidebar-content {
        padding-left: 0;
    }
}

/* List item cards */
.list-item-card a {
    color: inherit;
    display: block;
}

.list-item-card .item-card-content {
    transition: all 0.2s ease;
}

.list-item-card:hover .item-card-content {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Adjust poster alignment to be flush with card edges */
.list-item-card .col-md-2 {
    padding: 0;
    display: flex;
    align-items: stretch;
}

.list-item-card .col-md-2 img {
    object-fit: cover;
    border-radius: 4px 0 0 4px;
    height: 100%;
    width: 100%;
    margin: 0;
}

/* Remove padding from the card content to align properly */
.list-item-card .row.border {
    padding: 0;
    overflow: hidden;
    border-radius: 4px;
}

.list-item-card .col-md-10 {
    padding: 15px;
}

.content-overview {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

@media (max-width: 767px) {

    /* Mobile-specific adjustments */
    .list-item-card .col-md-2 {
        padding: 0;
    }

    .list-item-card .col-md-10 {
        padding: 10px;
    }

    .content-overview {
        -webkit-line-clamp: 2;
        font-size: 0.9rem;
        margin-bottom: 0.5rem !important;
    }

    .list-item-card h5 {
        font-size: 1.1rem;
        margin-bottom: 0.25rem !important;
    }

    .list-item-card .text-muted.small {
        font-size: 0.75rem;
        margin-bottom: 0.25rem !important;
    }

    .rating-order-container {
        margin-top: 0.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* Ensure vertical alignment between columns */
.list-item-card .col-md-10>.row {
    align-items: flex-start;
}

.list-item-card .col-md-9 {
    padding-top: 0;
}

.list-item-card .col-md-3 {
    padding-top: 0;
}

@media (max-width: 767px) {

    .list-item-card .col-md-9,
    .list-item-card .col-md-3 {
        padding-top: 0;
    }
}

/* Zero out margins and padding for rating column */
.list-item-card .col-md-3.text-end {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Make sure it applies to mobile as well */
@media (max-width: 767px) {
    .list-item-card .col-md-3.text-end {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* Curated Lists Page */
.curated-container {
    padding: 0;
    margin: 0 auto;
}

.curated-container .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    background-color: #111217;
}

.curated-container .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.curated-container .card-img-top-container {
    overflow: hidden;
    position: relative;
}

.curated-container .card-img-top {
    transition: transform 0.5s ease;
}

.curated-container .card:hover .card-img-top {
    transform: scale(1.05);
}

.curated-container .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0;
}

.curated-container .card-text {
    margin-top: 5px;
}

.curated-container .text-light-50 {
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
    text-align: justify;
}

/* Specific background for curated list cards on the homepage */
.index-page .curated-container .card {
    background-color: #111217;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .curated-container .col-md-4 {
        width: 50%;
        padding: 0 5px;
    }

    .curated-container .card-body {
        padding: 10px;
    }

    .curated-container .card-text {
        font-size: 0.9rem;
    }

    .curated-container .card-title {
        font-size: 1.1rem;
    }
}

/* Custom width class */
.w-60 {
    width: 60% !important;
}

/* Social Sharing Buttons */
.social-share-section {
    margin-bottom: 20px;
}

.social-share-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: #555;
    font-weight: 500;
}

/* Match the original da-share plugin style */
.social-btn {
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.social-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.social-btn i {
    font-size: 18px;
}

/* Make SVG icons white */
.svg-white {
    filter: brightness(0) invert(1);
    display: block;
    margin: 0 auto;
}

@media (max-width: 576px) {
    .btn-group {
        flex-wrap: wrap;
        justify-content: center;
    }

    .social-btn {
        margin-bottom: 5px;
    }
}

/* Global mobile header layout for suggestion, movie, tv pages */
@media (max-width: 767px) {
    .desktop-poster {
        display: none !important;
    }

    .header-line {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 16px;
        text-align: left !important;
        /* prevent inherited centering */
    }

    .mobile-suggestion-poster {
        width: 120px;
        flex-shrink: 0;
        border-radius: 5px;
    }

    .ratings-container {
        margin-bottom: 0 !important;
    }

    /* When ratings are moved into the header on mobile */
    .header-line .header-right {
        display: flex;
        flex-direction: column;
        gap: 8px;
        flex: 1 1 auto;
        min-width: 0;
        text-align: left !important;
        /* make header-right text left-aligned */
        align-items: flex-start !important;
        /* ensure children align to start, not center */
    }

    .header-line .header-right>.ratings-container {
        order: 2;
        justify-content: flex-start;
        gap: 8px;
        flex-wrap: wrap;
    }

    .header-line .header-right>div:first-child {
        /* text block (title + meta) */
        order: 1;
        text-align: left !important;
        /* ensure title/meta stay left */
    }

    .header-line .ratings-container .circle-progress-container {
        min-height: 80px;
    }

    .header-line .ratings-container .rating-item {
        text-align: center;
    }
}

@media (min-width: 768px) {
    .mobile-suggestion-poster {
        display: none !important;
    }
}

/* Flat share button variants */
/* Ensure icon colors remain white */
.share-flat__btn--instagram {
    background-color: #E1306C;
}

.share-flat__btn--x {
    background-color: #1DA1F2;
}

.share-flat__btn--bluesky {
    background-color: #0085FF;
}

.share-flat__btn--copy {
    background-color: #6c757d;
}

.share-flat__btn i {
    color: #fff;
    font-size: 16px;
}

.share-flat {
    display: flex;
    gap: 8px;
}

.share-flat__btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    background-size: 20px 20px;
    background-repeat: no-repeat;
}

.share-flat__btn--whatsapp {
    background-color: #25D366;
}

.share-flat__btn:hover {
    opacity: .8;
}

.success-animation #copy-link-button {
    min-width: 200px;
    padding: 15px 30px;
}

/* Style for curated list page to ensure footer consistency */
/* Footer spacing handled globally; no page-specific overrides needed here. */

/* Advanced Page Container */
.advanced-page .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px 15px;
    /* Standard padding without special bottom value */
}

/* Suggestion Content Container */
.suggestion-content {
    padding: 30px 0;
    /* Standard padding for suggestion pages */
}

/* Mobile-specific adjustments */
@media (max-width: 767px) {

    /* Remove left margin for buttons on mobile to prevent layout issues */
    .ms-2 {
        margin-left: 0 !important;
    }

    /* Fix button alignment on mobile */
    .suggestion-actions .btn {
        margin: 5px 0;
        width: 100%;
    }

    /* Ensure consistent padding for mobile suggestion actions */
    .suggestion-actions {
        padding: 15px 15px;
        /* Equal padding left and right */
        width: calc(100% - 15px);
        /* Adjusted width calculation */
    }
}


/* Page Title Bar Styles */
.page-title-bar .list-card {
    min-height: 60px !important;
    height: 60px !important;
    display: flex !important;
    flex-direction: row !important;
    /* Fix for Bootstrap .card conflict */
    align-items: center !important;
    /* Vertical centering */
    justify-content: flex-start !important;
    /* Left alignment */
    padding: 0 20px;
    margin-bottom: 1.5rem;
    gap: 20px;
    /* Space between title and breadcrumb */
    /* Disable hover effects */
    transform: none !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5) !important;
}

.page-title-bar .list-card:hover {
    transform: none !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5) !important;
    background: rgba(0, 0, 0, 0.5) !important;
    /* Prevent background change on hover */
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.page-title-bar h3 {
    margin: 0 !important;
    /* Remove default margins to ensure centering */
    line-height: 1;
    /* Help with vertical centering */
    display: flex;
    align-items: center;
}

.page-title-bar h1,
.page-title-bar h2,
.page-title-bar h3,
.page-title-bar h4 {
    color: var(--light-text);
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
    font-size: 0.9rem;
    list-style: none;
    display: flex;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: var(--gray-light);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--light-text);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--gray-light);
    content: ">";
    padding: 0 8px;
}