/* CSS Document */
    /* Ensure body takes up full height */
    html,
    body {
        height: 100%;
        margin: 0;
        overflow: hidden;
        /* Prevent bouncing on mobile */
        background-color: #000;
        /* Set a black background */
    }

    /* New Page Wrapper using Flexbox */
    .page-wrapper {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        height: 100%;
    }

    /* The fanfeed container now flexes to fill available space */
    .fanfeed-container {
        -webkit-box-flex: 1;
            -ms-flex: 1;
                flex: 1;
        /* This is the key property */
        position: relative;
        width: 100%;
        overflow: hidden;
    }


    /* --- Bottom Bar Element Styling --- */

    /* Use Flexbox for the main bar layout */
    .bottom-bar {
		height: 70px;
        width: 100%;
        background-color: #000;
		border-top: 1px solid #333;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
		-ms-flex-negative: 0;
            flex-shrink: 0;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        /* Vertically center items */
        -ms-flex-pack: distribute;
            justify-content: space-around;
        /* This creates equal space around each item */
        padding: 0 10px;
        /* Adjust horizontal padding if needed */
    }

    /* Individual clickable items */
    .bottom-bar-item {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        /* Stack icon and text vertically */
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        color: #fff;
        /* White text/icons */
        text-decoration: none;
        /* Remove underline from links */
        font-size: 12px;
    }

    /* Style for items that are buttons, not links */
    .icon-button {
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
    }

    /* Dim the disabled "Events" item */
    .bottom-bar-item.disabled {
        color: #555;
        /* A darker grey to indicate it's disabled */
        pointer-events: none;
        /* Make it unclickable */
    }

    /* Icon-specific styling for Material Symbols */
    .bottom-bar-item>.material-symbols-outlined {
        font-size: 32px;
        margin-bottom: 2px;
    }

    
    /* End Bottom Bar Element Styling */

    /* Video Container and Video element styles remain mostly the same */
    .video-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #000;
    }

    video {
        width: 100%;
        height: 100%;
        -o-object-fit: contain;
           object-fit: contain;
    }

    /* New Video Overlay style */
    .video-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 5;
        /* Sits on top of the video */
        pointer-events: none;
        /* Allows clicks to pass through to the video player */
    }

    /* --- Logo Overlay Styling --- */
    .artist-logo {
        position: absolute;
        top: 20px;
        left: 50%;
        -webkit-transform: translateX(-50%);
                transform: translateX(-50%);
        max-height: 50px;
        max-width: 200px;
        opacity: 0.8;
        /* HIDE the logo by default */
        display: none;
    }

    /* SHOW the logo ONLY when the wrapper has the 'logo-visible' class */
    .logo-visible .artist-logo {
        display: block;
    }

    /* --- Video Info Overlay Styling --- */
    .video-info {
        position: absolute;
        /* This is the new, lower DEFAULT position */
        bottom: 20px;
        left: 20px;
        right: 20px;
        color: #fff;
        font-size: 14px;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
            -ms-flex-pack: justify;
                justify-content: space-between;
        -webkit-box-align: end;
            -ms-flex-align: end;
                align-items: flex-end;
        -webkit-transition: bottom 0.3s ease-in-out;
        transition: bottom 0.3s ease-in-out;
    }

    .video-container.controls-active .video-info {
        bottom: 80px;
        /* Text goes to this position when we predict the video controls are visible */
    }

    .video-info-text {
        max-width: 75%;
    }

    /* --- Top-Right Counter Styling --- */
    .video-counter-top-right {
        position: absolute;
        top: 20px;
        right: 20px;
        /* Position on the right */
        color: #fff;
        font-size: 14px;
        font-weight: 500;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
        /* Add shadow for readability */
        z-index: 15;
        /* Ensure it's on top */
    }

    .video-info .customer-company {
        font-size: 16px;
        font-weight: bold;
        display: block;
        line-height: 1.2;
        margin-bottom: 4px;
    }

    .video-info .fan-handle,
    .video-info .event-name {
        display: block;
        line-height: 1.3;
        margin-bottom: 2px;
        opacity: 0.9;
    }

    .video-info .event-name {
        font-style: italic;
    }

    .video-info .comment-text {
        display: inline;
    }

    .video-info .more-less-link {
        display: inline;
        color: #a0c4ff;
        cursor: pointer;
        margin-left: 5px;
        font-weight: bold;
        pointer-events: all;
    }

    .like-count-container {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        /* Align heart and number horizontally */
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        margin-top: 8px;
    }

    .like-count-container .material-symbols-outlined {
        font-size: 18px;
        /* Size the inline heart icon */
        color: #ff4d4d;
        /* Make the heart solid red */
        font-variation-settings: 'FILL'1;
        /* This makes Material Symbols solid */
        margin-right: 5px;
        /* Space between heart and number */
    }

    .fanfuser-logo-overlay {
        /* The clamp() function makes the height responsive and fluid */
        height: clamp(22px, 4vw, 35px);
        width: auto;
        /* Maintain aspect ratio */
        -ms-flex-negative: 0;
            flex-shrink: 0;
        /* Prevent the logo from shrinking */
    }

    .fanfuser-logo-link {
        text-decoration: none;
        pointer-events: all;
    }

    /* END --- Video Info Overlay Styling --- */

/* Position the containers for the initial view */
    #previous-video-container {
        -webkit-transform: translateY(-100%);
                transform: translateY(-100%);
    }

    #current-video-container {
        -webkit-transform: translateY(0);
                transform: translateY(0);
    }

    #next-video-container {
        -webkit-transform: translateY(100%);
                transform: translateY(100%);
    }

    /* Provide animation when transitioning videos (Unchanged) */
    .fanfeed-container.is-transitioning .video-container {
        -webkit-transition: -webkit-transform 0.5s ease-in-out;
        transition: -webkit-transform 0.5s ease-in-out;
        transition: transform 0.5s ease-in-out;
        transition: transform 0.5s ease-in-out, -webkit-transform 0.5s ease-in-out;
    }


/*
=================================
Right Side Action Buttons (Icon-Only Style)
=================================
*/

/* This is the main container for our vertical stack of actions */
.right-side-actions {
    position: absolute;
    bottom: 20%;
    right: 15px;
    z-index: 15;
    
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 25px;
}

/* This wrapper holds one button and its label */
.action-item-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 1px;
}

/* This is the BUTTON element, now made INVISIBLE */
.right-side-actions .icon-button {
    width: 38px;  /* Keep a generous invisible clickable area */
    height: 38px;
    border-radius: 50%;
    
    /* --- CORE CHANGES TO REMOVE BACKGROUND --- */
    background: transparent; /* REMOVED: Glass effect */
    -webkit-backdrop-filter: none;
            backdrop-filter: none;   /* REMOVED: Glass effect */
    border: none;            /* REMOVED: Glass effect */
    
    /* Center the icon inside */
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;

    /* Smooth transition for the new hover effect */
    -webkit-transition: -webkit-transform 0.2s ease;
    transition: -webkit-transform 0.2s ease;
    transition: transform 0.2s ease;
    transition: transform 0.2s ease, -webkit-transform 0.2s ease;
}

/* --- Interactivity (REVISED) --- */

/* On hover, the icon now scales up slightly */
.right-side-actions .icon-button:hover {
    -webkit-transform: scale(1.1);
            transform: scale(1.1);
}

/* On click, the button still presses in */
.right-side-actions .icon-button:active {
    -webkit-transform: scale(0.95);
            transform: scale(0.95);
    -webkit-transition-duration: 0.05s;
            transition-duration: 0.05s;
}

/* Styling for the ENLARGED SVG icons */
.right-side-actions .icon-button svg { /* NEW: Targeting the SVG directly */
    width: 36px;   /* NEW: Enlarged icon size */
    height: 36px;  /* NEW: Enlarged icon size */
    color: #ffffff;
    -webkit-filter: drop-shadow(0px 2px 3px rgba(0, 0, 0, 0.4)); /* Stronger shadow for more depth */
    filter: drop-shadow(0px 2px 3px rgba(0, 0, 0, 0.4));
}

/* --- Heart Icon Specific Styling (Unchanged) --- */
.heart-icon.is-liked .heart-filled {
    display: block !important;
}
.heart-icon.is-liked .heart-outline {
    display: none;
}

/* The "liking" animation still targets the SVG via its parent button */
#thumbs-up-button.liking .heart-icon {
    -webkit-transform: scale(1.3);
            transform: scale(1.3);
    -webkit-transition: -webkit-transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: -webkit-transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), -webkit-transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Styling for the text labels (Unchanged) */
.action-label {
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}
    




/*
=================================
Modals & Full-Screen Overlays
=================================
*/

/* --- "No Videos" Message Styling --- */
.no-videos-message {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    z-index: 20;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}


/* --- General Modal Styling --- */
.event-modal-container,
.search-modal-container,
.share-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    opacity: 1;
    -webkit-transition: opacity 0.3s ease-in-out;
    transition: opacity 0.3s ease-in-out;
}

.event-modal-container.hidden,
.search-modal-container.hidden,
.share-modal-container.hidden {
    opacity: 0;
    pointer-events: none;
}

.event-modal-container {
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 100;
}

.search-modal-container {
    background-color: rgba(0, 0, 0, 0.75);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    z-index: 200;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column; /* Search modal is full-screen */
}

.share-modal-container {
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 300;
}


/* --- Event Filter Modal Specifics --- */
.event-modal-content {
    background-color: #1c1c1e;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    border-radius: 12px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}

.event-modal-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
}

.event-modal-header h4 {
    margin: 0;
    color: #fff;
}

.close-button {
    background: none;
    border: none;
    color: #aaa;
    font-size: 28px;
    cursor: pointer;
    padding: 0; /* Reduced padding for consistency */
}

/* Consolidated .close-button for search modal */
.search-modal-header .close-button {
    padding: 0 10px;
}

.event-modal-list {
    overflow-y: auto;
    padding: 10px 0;
}

/* CONSOLIDATED .event-item class */
.event-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #2a2a2c;
}

.event-item:hover {
    background-color: #2c2c2e;
}

.event-item:last-child {
    border-bottom: none;
}

.event-date {
    color: #aaa;
    font-size: 12px;
    -ms-flex-negative: 0;
        flex-shrink: 0;
    margin-left: 10px;
}

/* --- Active Event Filter Indicator --- */
#events-button {
    position: relative;
}

#events-button.filter-active::after {
    content: '';
    position: absolute;
    top: 24px;
    right: 0px;
    width: 8px;
    height: 8px;
    background-color: #ff4d4d;
    border-radius: 50%;
    border: 1px solid #000;
}


/* --- Search Modal Specifics --- */
.search-modal-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    width: 100%;
    height: 100%;
}

.search-modal-logo {
    height: 30px;
    width: auto;
    -o-object-fit: contain;
       object-fit: contain;
    margin: 40px auto 20px auto;
    -ms-flex-negative: 0;
        flex-shrink: 0;
}

.search-modal-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    margin: 0 15px;
    border: 1px solid #555;
    border-radius: 25px;
    padding: 0 10px;
    -ms-flex-negative: 0;
        flex-shrink: 0;
}

.search-input {
    -webkit-box-flex: 1;
        -ms-flex-positive: 1;
            flex-grow: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1em;
    outline: none;
    padding: 10px;
    height: 48px;
}

.search-results-list {
    -webkit-box-flex: 1;
        -ms-flex-positive: 1;
            flex-grow: 1;
    overflow-y: auto;
    margin-top: 10px;
}

.search-result-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #2a2a2c;
}

.search-result-item:hover {
    background-color: #1c1c1e;
}

.prospect-item {
    cursor: pointer;
}

.result-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    -o-object-fit: cover;
       object-fit: cover;
    margin-right: 15px;
}

.result-info {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-flex: 1;
        -ms-flex-positive: 1;
            flex-grow: 1;
}

.result-name {
    font-weight: bold;
}

.result-tag {
    font-size: 0.8em;
    opacity: 0.7;
}

.result-tag.customer {
    color: #a0c4ff;
}

/* --- Static Search Sections Styling --- */
.static-search-section {
    padding: 10px 15px;
    border-bottom: 1px solid #2a2a2c;
}

.static-search-section.hidden {
    display: none;
}

.static-section-header {
    color: #888;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.static-result-item {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 10px 0;
    font-weight: 500;
}

.static-result-item:hover {
    color: #a0c4ff;
}

/* --- Share Modal Styling --- */
.share-modal-content {
    background-color: #1c1c1e;
    width: 90%;
    max-width: 450px;
    border-radius: 12px;
    color: #fff;
}

.share-modal-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
}

.share-modal-title {
    margin: 0;
    font-size: 1.1em;
}

.share-modal-body {
    padding: 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 25px;
}

.share-section label {
    font-weight: bold;
    font-size: 0.9em;
    color: #aaa;
    display: block;
    margin-bottom: 8px;
}

.copy-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    background-color: #2c2c2e;
    border-radius: 8px;
    padding: 10px;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

.copy-container p {
    margin: 0;
    -webkit-box-flex: 1;
        -ms-flex-positive: 1;
            flex-grow: 1;
    font-size: 0.9em;
    line-height: 1.4;
    padding-right: 10px;
}

.copy-button {
    background: #444;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px 10px;
    cursor: pointer;
    -ms-flex-negative: 0;
        flex-shrink: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 5px;
}

.copy-button:hover {
    background: #555;
}

.share-modal-body small {
    display: block;
    margin-top: 8px;
    font-size: 0.8em;
    color: #888;
}

.share-buttons-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 15px;
}

.share-button {
    -webkit-box-flex: 1;
        -ms-flex-positive: 1;
            flex-grow: 1;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: 8px;
}

.share-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.share-button.twitter {
    background-color: #1DA1F2;
}

.share-button.facebook {
    background-color: #1877F2;
}

/* --- END Share Modal Styling --- */

.toast-container {
    position: fixed;
    top: 50%; /* Move it to the vertical center */
    left: 50%;
    /* Adjust the transform to account for both X and Y centering */
    -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%); 
    
    /* --- Glassmorphism Effect --- */
    background-color: rgba(30, 30, 30, 0.8); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    
    color: white;
    /* --- SIZE ADJUSTMENTS --- */
    padding: 16px 28px; /* Increased padding for a larger background */
    border-radius: 30px;  /* Slightly increased for proportion */
    font-size: 1.3em;     /* Larger text */
    
    display: -webkit-box;
    
    display: -ms-flexbox;
    
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    z-index: 9999;
    -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    
    visibility: hidden;
    opacity: 0;
    -webkit-transition: opacity 0.4s ease, visibility 0.4s ease, -webkit-backdrop-filter 0.4s ease;
    transition: opacity 0.4s ease, visibility 0.4s ease, -webkit-backdrop-filter 0.4s ease;
    transition: opacity 0.4s ease, visibility 0.4s ease, backdrop-filter 0.4s ease;
    transition: opacity 0.4s ease, visibility 0.4s ease, backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease;
}

    .toast-container.show {
        /* Vible state */
        visibility: visible;
        opacity: 1;
    }

    .toast-container .material-symbols-outlined {
        margin-right: 10px;
        font-size: 22px;
        color: #4CAF50; /* A friendly green color for success */
    }



/* --- Share Button Animation --- */
/* 1. Add a smooth transition to the button's default state */
.right-side-actions #share-video-button {
    /* This makes the growth and shrink smooth. 150ms is a nice, quick duration. */
    -webkit-transition: -webkit-transform 150ms ease-in-out;
    transition: -webkit-transform 150ms ease-in-out;
    transition: transform 150ms ease-in-out;
    transition: transform 150ms ease-in-out, -webkit-transform 150ms ease-in-out;
}

/* 2. When the .is-sharing class is added, scale the button up */
.right-side-actions #share-video-button.is-sharing {
    /* 1.15 means 115% of its original size */
    -webkit-transform: scale(1.15);
            transform: scale(1.15);
}