/* Result / Reveal Styles */
.result-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    margin-top: 0;
    margin-bottom: 0;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: url('bg.png') center center / cover no-repeat;
    z-index: 999;
    will-change: opacity;
}

.result-container.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.result-card {
    position: relative;
    padding: 32px;
    background: transparent;
    border: none;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.result-card.transitioning {
    opacity: 0;
    transform: translateY(-10px);
}

.result-content-wrapper {
    display: block;
    margin-bottom: 8px;
}

.result-poster {
    display: none;
}

.result-poster[src=""], .result-poster:not([src]) {
    display: none;
}

.result-text {
    text-align: left;
    width: 100%;
}

.result-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.player-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.player-icon-black path {
    stroke: #000000;
}

.player-icon-yellow path {
    stroke: #FFF5C7;
}

.amazon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #000000;
    background: #FFF5C7;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.amazon-button:hover {
    background: #e8e0b0;
}

.amazon-button.disabled {
    pointer-events: none;
    opacity: 1;
    background: #FFF5C7;
    color: #000000;
}

.trailer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #FFF5C7;
    background: transparent;
    border: 1.5px solid #FFF5C7;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.trailer-button:hover {
    background: rgba(255, 245, 199, 0.1);
    border-color: #e8e0b0;
}

.trailer-button.disabled {
    pointer-events: none;
    opacity: 0.4;
}

.result-shine {
    display: none;
}

.result-badge {
    display: none;
}

.result-title {
    font-size: 56px;
    font-weight: 900;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.04em;
    margin-bottom: 8px;
    color: #FFF5C7;
    line-height: 1.1;
    text-align: left;
}

.result-meta {
    font-size: 14px;
    color: #FFF5C7;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    text-align: left;
}

.result-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    text-align: left;
}

.result-genre {
    font-size: 14px;
    color: #FFF5C7;
    font-weight: 500;
    margin-bottom: 16px;
    text-align: left;
    letter-spacing: 0.5px;
}

.result-tagline {
    font-size: 15px;
    color: #FFF5C7;
    font-style: italic;
    font-weight: 400;
    line-height: 1.6;
    text-align: left;
    margin-bottom: 8px;
}

.result-synopsis {
    font-size: 15px;
    color: #FFF5C7;
    font-weight: 400;
    line-height: 1.6;
    text-align: left;
    margin-top: 12px;
}

/* Next button */
.next-button {
    position: fixed !important;
    bottom: 40px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #FFF5C7;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: none !important;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 220px;
    z-index: 1001;
    will-change: auto;
    isolation: isolate;
}

.next-button span {
    min-width: 150px;
    display: inline-flex;
    justify-content: center;
}

.next-icon {
    width: 24px;
    height: 22px;
    flex-shrink: 0;
}

.next-icon path {
    stroke: #FFF5C7;
}

.next-button:hover {
    opacity: 1;
}

.next-button:active {
    opacity: 1;
    transform: translateX(-50%) !important;
}

.next-button:focus {
    outline: none;
    transform: translateX(-50%) !important;
}

.next-button:focus-visible {
    outline: none;
    transform: translateX(-50%) !important;
}

.next-button.hidden {
    display: none;
}

/* New search button */
.new-search-button {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #FFF5C7;
    background: transparent;
    border: 1px solid rgba(255, 245, 199, 0.5);
    border-radius: 10px;
    cursor: pointer;
    transition: none !important;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 220px;
    z-index: 1001;
    opacity: 1;
}

.new-search-button:hover {
    opacity: 0.8;
    background: rgba(255, 245, 199, 0.1);
    border-color: rgba(255, 245, 199, 0.7);
}

.new-search-button:active {
    opacity: 1;
    transform: translateX(-50%) !important;
}

.new-search-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.6;
}

.new-search-icon path {
    stroke: #FFF5C7;
    stroke-width: 1.5;
}

.new-search-button.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .result-container {
        align-items: center;
        justify-content: center;
        padding: 20px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .result-card {
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .result-title {
        font-size: 40px;
    }
    
    .result-content-wrapper {
        display: block;
    }
    
    .result-poster {
        display: none;
    }
    
    .result-text {
        text-align: left;
        width: 100%;
    }
    
    .result-meta {
        justify-content: flex-start;
        text-align: left;
    }

    .result-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
    }
    
    .next-button {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        margin-top: 24px;
        min-width: auto;
        width: 100%;
        max-width: 100%;
        padding: 18px 24px;
        font-size: 20px;
        font-weight: 600;
    }
    
    .next-icon {
        width: 28px;
        height: 26px;
    }
    
    .next-button span {
        font-size: 18px;
    }
}

