/* Fullscreen Search Overlay Styles */
.fullscreen-search-bar-wrapper {
    display: flex;
    justify-content: center;
    margin: 30px 0 10px 0;
    width: 100%;
    padding: 0 15px;
}
.fullscreen-search-bar {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 18px 24px;
    font-size: 1.4rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: background 0.2s;
    outline: none;
    width: 100%;
    max-width: none;
    cursor: pointer;
}
.fullscreen-search-bar:focus {
    background: rgba(255,255,255,0.13);
}
@media (max-width: 768px) {
    .fullscreen-search-bar-wrapper {
        justify-content: center;
        padding: 0;
    }
    .fullscreen-search-bar {
        max-width: 320px;
        width: 100%;
        font-size: 1.1rem;
        padding: 14px 16px;
    }
}
.fullscreen-search-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    background: #121212;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    padding-top: 10vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.fullscreen-search-overlay.searching {
    align-items: flex-start;
    padding-top: 5vh;
    transition: all 0.3s ease;
}
.fullscreen-search-overlay.active {
    opacity: 1;
    visibility: visible;
}
.fullscreen-search-box {
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    transition: all 0.3s ease;
    height: 85vh;
}
.fullscreen-search-overlay.searching .fullscreen-search-box {
    height: 90vh;
}
.fullscreen-search-overlay.active .fullscreen-search-box {
    opacity: 1;
}
.fullscreen-search-input {
    width: 100%;
    padding: 22px 60px 22px 24px;
    font-size: 2rem;
    border: none;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    outline: none;
    margin-bottom: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.fullscreen-search-bar {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 18px 24px;
    font-size: 1.4rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
    max-width: none;
    cursor: pointer;
}
.fullscreen-search-bar:focus {
    background: rgba(255,255,255,0.13);
}
.fullscreen-search-bar.animating {
    transform: scale(1.02);
    background: rgba(255,255,255,0.12);
}
.fullscreen-search-input::placeholder {
    color: #ccc;
    opacity: 1;
}
.close-search-btn {
    position: absolute;
    right: 18px;
    top: 18px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 2;
    line-height: 1;
    padding: 0 8px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.close-search-btn:hover {
    opacity: 1;
}
.fullscreen-search-loading {
    text-align: center;
    color: #ccc;
    padding: 18px 0 10px 0;
    font-size: 1.1rem;
}
.fullscreen-search-results {
    max-height: 70vh;
    overflow-y: auto;
    border-radius: 10px;
    background: none;
    flex: 1;
}
.fullscreen-search-overlay.searching .fullscreen-search-results {
    max-height: 80vh;
}
.fullscreen-search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    transition: background 0.15s;
}
.fullscreen-search-result-item:last-child {
    border-bottom: none;
}
.fullscreen-search-result-item:hover {
    background: rgba(255,255,255,0.04);
}
.fullscreen-search-result-poster {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    background: #222;
}
.fullscreen-search-result-info {
    flex: 1;
    min-width: 0;
}
.fullscreen-search-result-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fullscreen-search-result-meta {
    color: #e50914;
    font-size: 1rem;
    margin-bottom: 6px;
}
.fullscreen-search-result-overview {
    color: #ccc;
    font-size: 0.98rem;
    line-height: 1.4;
    max-height: 3.2em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.fullscreen-search-no-results {
    color: #ccc;
    text-align: center;
    padding: 30px 0 10px 0;
    font-size: 1.1rem;
}
.provider-logo {
    height: 50px;
    border-radius: 4px;
    margin: 5px;
    transition: transform 0.2s;
    vertical-align: middle;
    object-fit: contain;
}

/* Group provider logos shouldn't have fixed width */
.group-provider-logo {
    width: auto !important;
    max-height: 50px;
}

.provider-link {
    display: inline-block;
    text-decoration: none;
}

.provider-link:hover .provider-logo {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* Fix vertical alignment for all provider logos */
.providers-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

/* Enhanced Mini Reviews Styling */
.mini-reviews-container {
    margin-top: 1rem; /* Halved top margin */
    margin-bottom: 2rem; /* Restored bottom margin */
    margin-left: 0;
    margin-right: 0;
    /* border-top: 1px solid rgba(255, 255, 255, 0.1); Removed top border */
    padding-top: 1.5rem;
}

.mini-reviews-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.mini-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mini-review-card {
    background: rgba(18, 18, 18, 0.8); /* #121212 with 80% opacity for better readability, 20% would be too transparent */
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.mini-review-author-info {
    display: flex;
    align-items: center;
}

.mini-review-name-date {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mini-review-avatar {
    width: 48px !important; /* Force width */
    height: 48px !important; /* Force height */
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-color: #333;
    flex-shrink: 0; /* Prevent shrinking in flex layout */
}

.mini-review-avatar img {
    width: 100% !important; /* Force width within container */
    height: 100% !important; /* Force height within container */
    object-fit: cover;
}

.mini-review-author-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.2; /* Adjust line height for tighter spacing */
}

.mini-review-added-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    line-height: 1.2; /* Adjust line height */
    margin-top: 2px; /* Small margin for spacing */
}

.mini-review-rating {
    display: flex;
}

.mini-review-rating .fa-star {
    color: #ffc107;
    margin-left: 3px;
    font-size: 16px;
}

.mini-review-content {
    position: relative;
    margin-bottom: 0.75rem;
}

.mini-review-text { /* Container for text segments and button */
    font-size: 1.05rem;
    line-height: 1.7;
    word-wrap: break-word;
    /* white-space: pre-line; will be on inner spans */
}

.mini-review-text .short-text,
.mini-review-text .full-text {
    white-space: pre-line; 
    /* display will be controlled by JS: inline for short-text and full-text (when collapsed), block for full-text (when expanded) */
}

.mini-review-text.expanded .full-text {
    display: block; /* Ensures block display when expanded, even if JS fails, though JS is primary */
}

/* Removed .mini-review-text.collapsed as truncation is now handled by PHP/JS visibility */

.mini-review-toggle.inline {
    display: inline;
    background: none;
    border: none;
    color: #e50914; /* FlixPicker red */
    font-size: 1.05rem; /* Match review text font-size for seamless look */
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-left: 1px; /* Minimal gap after short text */
    vertical-align: baseline; /* Align with the text */
}

.mini-review-toggle.block-button { /* For "Show Less" state */
    display: block;
    background: none;
    border: none;
    color: #e50914;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 8px; /* Space above when on its own line */
}

/* Ensure the old .mini-review-toggle specific to block display is adjusted or overridden */
/* The styles above for .inline and .block-button should suffice. */

/* Remove or repurpose .mini-review-footer and .mini-review-date as date is moved */
.mini-review-footer {
    /* Styles removed as footer content (date) is now in the header */
    /* If footer is used for other things, adjust accordingly */
    display: none; /* Hide if completely empty */
}

/* .mini-review-date style is now handled by .mini-review-added-date */ 