/* --- Cinepress 3.0: Tactical Share HUD --- */

.cs-legacy-share-bridge {
    margin: 40px 0;
}

.cs-share-label {
    font-size: 1.2rem;
}

/* Style the Individual Share Chips */
.cs-legacy-share-bridge .rbbsl a {
    /* background: #111 !important; */
    border: 1px solid var(--flex-snarkive-50) !important;
    color: #fff !important;
    border-radius: 2px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cs-legacy-share-bridge .native-share-trigger i {
    color: var(--flex-text-primary)!important;
}

a.native-share-trigger {
    background-color: var(--flex-bg-color-2) !important;
}

.cs-legacy-share-bridge .rbbsl a:hover {
    background: var(--flex-snarkive) !important;
    color: #fff !important;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--flex-snarkive-50);
}

/* Hide the brand colors if they clash with our HUD */
.cs-legacy-share-bridge .is-bg a {
    /* filter: grayscale(1) brightness(0.8); */
    filter: unset;
}

.cs-legacy-share-bridge .is-bg a:hover {
    /* filter: grayscale(0) brightness(1); */
    filter: unset;
}

/* --- Cinepress 3.0: Integrated Bottom HUD --- */

.cs-share-interaction-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed rgba(255,255,255,0.1);
}

.cs-interaction-hub {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 4px;
    border: 1px solid #222;
}

/* 1. Style the Like/Dislike/Bookmark Elements */
.cs-interaction-hub .meta-el {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    color: #888;
}

.cs-interaction-hub .meta-el i {
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

/* 2. Interaction Glow Protocol */
.cs-interaction-hub .like-trigger:hover i,
.cs-interaction-hub .like-trigger.triggered i {
    color: var(--review-accent, #00ff41) !important; /* Green for Like */
    filter: drop-shadow(0 0 5px var(--review-accent));
}

.cs-interaction-hub .dislike-trigger:hover i,
.cs-interaction-hub .dislike-trigger.triggered i {
    color: #ff3e3e !important; /* Hard Red for Dislike */
    filter: drop-shadow(0 0 5px #ff3e3e);
}

.cs-interaction-hub .bookmark-trigger:hover i,
.cs-interaction-hub .bookmark-trigger.loaded.bookmarked i {
    color: var(--flex-snarkive) !important; /* Purple for Bookmark */
    filter: drop-shadow(0 0 5px var(--flex-snarkive));
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
    .cs-share-interaction-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    .cs-interaction-hub {
        width: 100%;
        justify-content: space-around;
    }
}

/* --- Cinepress 3.0: Command Strip HUD --- */

.cs-command-strip {
    display: flex;
    align-items: center;
    justify-content: space-around;
    /* background: #0a0a0a; */
    /* border: 1px solid #222; */
    /* padding: 10px; */
    /* margin: 40px 0; */
    border-radius: 4px;
    /* box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.02); */
    margin-block-start: 2rem !important;
}

.cs-strip-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    flex: 1;
    justify-content: center;
}

.cs-strip-item:last-child { border-right: none; }

/* The small tactical labels above icons */
.cs-strip-label {
    font-size: 0.75rem;
    color: var(--flex-text-primary);
    letter-spacing: 1px;
    font-weight: 900;
    transition: color 0.3s ease;
}

/* Hover effects to light up the whole group */
.cs-strip-item:hover .cs-strip-label {
    color: var(--flex-snarkive-90);
}

/* Follow Button Neutralization */
.cs-strip-item .follow-trigger {
    background: transparent !important;
    border: 1px solid #333 !important;
    padding: 2px 10px !important;
    font-size: 10px !important;
    color: #888 !important;
    border-radius: 2px !important;
}

.cs-strip-item .follow-trigger:hover,
.cs-strip-item .follow-trigger.followed {
    border-color: var(--review-accent) !important;
    color: var(--review-accent) !important;
}

/* Feedback/Like Styling */
.cs-feedback .meta-like {
    display: flex;
    gap: 8px;
    padding-right: 0 !important;
    margin-right: 2px;
}

.cs-feedback i, .cs-save i, .cs-transmit-trigger i {
    font-size: 1.5rem !important;
}

.cs-feedback i {
    font-size: 1.5rem !important;
    color: var(--flex-text-primary);
    transition: 0.3s;
}

.cs-feedback .like-trigger:hover i, 
.cs-feedback .like-trigger.triggered i { color: var(--review-accent) !important; }

.cs-feedback .dislike-trigger:hover i, 
.cs-feedback .dislike-trigger.triggered i { color: #ff3e3e !important; }

/* Share Trigger Styling */
.cs-share-trigger-wrap {
    cursor: pointer;
    position: relative;
}

.cs-share-trigger-wrap i { color: #888; font-size: 1.2rem; }
.cs-share-trigger-wrap:hover i { color: var(--flex-snarkive-90); }

/* Active States */
.bookmarked i, .triggered i {
    color: var(--flex-snarkive-90) !important;
}

/* Mobile: Ensure it doesn't get too cramped */
@media (max-width: 600px) {
    .cs-strip-label {
        display: none; /* Hide labels on small mobile to keep icons large */
    }
    .cs-strip-item {
        padding: 0 10px;
    }
}

/* --- Cinepress 3.0: Stealth Popover HUD --- */

.cs-transmit-wrap {
    position: relative; /* Anchor for the popover */
    overflow: visible !important; /* Allow popover to bleed out */
}

.cs-transmit-trigger {
    cursor: pointer;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-transmit-trigger i {
    font-size: 1.3rem;
    color: #888;
    transition: color 0.3s ease;
}

/* 1. The Popover Container (Hidden by default) */
.cs-transmit-popover {
    position: absolute;
    bottom: 110%;
    right: 50%;
    transform: translateX(50%) translateY(10px);
    background: var(--flex-bg-color-2);
    border: 1px solid var(--flex-snarkive-50);
    padding: 5px 0;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px var(--flex-snarkive-50);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease-out;
    z-index: 1000;
    /* min-width: 220px; uncomment to set a width of the panel */
}

/* Header for the menu */
.cs-popover-header {
    font-size: 9px;
    color: #444;
    padding: 8px 15px;
    border-bottom: 1px solid #1a1a1a;
    letter-spacing: 2px;
}

/* Transform Foxiz Row into Column */
.cs-popover-inner.rbbsl {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

.rbbsl a > span {
    display: block !important;
}

.cs-popover-inner.rbbsl a {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    /* padding: 10px 15px !important; Remove the Padding */
    text-decoration: none !important;
    border: none !important;
    background: transparent !important;
    border-bottom: 1px solid #111 !important;
    transition: background 0.2s ease;
}

.cs-popover-inner.rbbsl a:last-child {
    border-bottom: none !important;
}

/* Icon Styling */
.cs-popover-inner.rbbsl a i {
    /* margin-right: 12px !important; */
    font-size: 1.1rem !important;
    /* width: 20px; */
    text-align: center;
    color: var(--flex-snarkive) !important;
}

/* Label Styling */
.cs-popover-inner.rbbsl a .share-name {
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #ccc !important;
}

/* Hover State */
.cs-popover-inner.rbbsl a:hover {
    background: rgba(255, 86, 18, 0.1) !important; /* Subtle glow */
}

.cs-popover-inner.rbbsl a:hover .share-name {
    color: #fff !important;
}

/* 2. Deployment Trigger */
.cs-transmit-trigger:hover .cs-transmit-popover {
    opacity: 1;
    visibility: visible;
    transform: translateX(50%) translateY(0);
}

.cs-transmit-trigger:hover i {
    color: var(--flex-snarkive-90);
}

/* 3. Styling the internal Foxiz list */
.cs-popover-inner {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px !important;
}

.cs-popover-inner a {
    height: 35px !important;
}

/* The Little Triangle Arrow at the bottom of the popover */
.cs-transmit-popover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: var(--review-accent) transparent transparent transparent;
}

/* --- Cinepress: Social Name Enforcement --- */

/* 1. Force all share labels to display */
.cs-popover-inner.rbbsl .share-name {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-family: var(--font-mono, monospace) !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px;
    margin-left: 5px; /* Spacing from the icon */
    color: #888;
}

/* 2. Highlight label on hover */
.cs-popover-inner.rbbsl a:hover .share-name {
    color: #fff !important;
}

/* 3. Ensure Foxiz "tooltips" don't interfere with our list */
.cs-popover-inner.rbbsl .share-action::after, 
.cs-popover-inner.rbbsl .share-action::before {
    display: none !important; /* We don't need tooltips if we have names */
}

/* 4. Surgical alignment for the list items */
.cs-popover-inner.rbbsl a {
    justify-content: flex-start !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

/* 1. RESET: Remove the Foxiz Button Appearance */
.cs-command-strip .meta-like > span {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 5px !important;
    height: auto !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}

/* 2. HOVER: Only change the Icon color, no background shift */
.cs-command-strip .meta-like > span:hover {
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    transform: translateY(-2px); /* Subtle tactical lift */
}

/* 3. ICON GLOW: Specific colors for the icons themselves */
.cs-command-strip .like-trigger:hover i,
.cs-command-strip .like-trigger.triggered i {
    color: var(--cinebar-green) !important;
    filter: drop-shadow(0 0 5px var(--cinebar-green));
}

.cs-command-strip .like-trigger:hover i::before {
    fill: var(--cinebar-green) !important;
}

.cs-command-strip .dislike-trigger:hover i,
.cs-command-strip .dislike-trigger.triggered i {
    color: var(--cinebar-red) !important;
    filter: drop-shadow(0 0 5px var(--cinebar-red));
}

.cs-command-strip .dislike-trigger:hover i::before {
    fill: var(--cinebar-red) !important;
}

/* 4. COUNT STYLING: Make the numbers subtle */
.cs-command-strip .like-count {
    font-size: 10px !important;
    color: #555 !important;
    margin-left: 4px;
}

.cs-command-strip span:hover .like-count {
    color: #fff !important;
}

.meta-el:not(.meta-avatar):not(.no-label):not(:last-child):after {
    display: none !important;
}

/* --- Cinepress: Follow/Followed HUD Logic --- */

/* 1. Base Label Style */
.cs-follow-text {
    display: inline-block;
    min-width: 60px; /* Prevents layout jumping when text changes */
    transition: all 0.2s ease;
}

/* 2. Target the label when the Foxiz trigger has the 'bookmarked' class */
/* Foxiz usually toggles the 'bookmarked' class on the anchor <a> */
.cs-save:has(.bookmarked) .cs-follow-text {
    color: var(--flex-snarkive) !important;
    font-size: 0 !important; /* Hide original 'FOLLOW' */
    letter-spacing: 0 !important;
}

.cs-save:has(.bookmarked) .cs-follow-text::after {
    content: 'FOLLOWED';
    font-size: 0.75rem; /* Restore size for the new text */
    letter-spacing: 2px;
    visibility: visible;
}

/* 3. Ensure the Bookmark Icon itself glows */
.cs-save .bookmark-trigger.bookmarked i {
    color: var(--flex-snarkive) !important;
    filter: drop-shadow(0 0 5px var(--flex-snarkive-50));
}