.trailer-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.trailer-modal.open {
    display: flex;
}

.modal-content {
    position: relative;
    background-color: #000;
    margin: auto;
    padding: 0;
    border: 1px solid #333;
    width: 80%;
    max-width: 900px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    animation-name: animatetop;
    animation-duration: 0.4s;
}

@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0;
    }

    to {
        top: 0;
        opacity: 1;
    }
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: -35px;
    right: 0;
    cursor: pointer;
    z-index: 3001;
}

.close-modal:hover,
.close-modal:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.share-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.share-modal-content {
    background: #1f2937;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-modal-overlay.active .share-modal-content {
    transform: scale(1);
}

.share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.share-header h3 {
    margin: 0;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.close-share-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.close-share-btn:hover {
    color: white;
}

.share-body {
    padding: 20px;
}

.share-title-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.share-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.share-item:hover {
    transform: translateY(-3px);
    color: white;
}

.share-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: filter 0.2s;
}

.share-item:hover .share-icon {
    filter: brightness(1.2);
}

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

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

.twitter .share-icon {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.telegram .share-icon {
    background: #0088cc;
}

.copy-link-container {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 5px;
}

#shareInput {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 10px;
    font-size: 0.9rem;
    outline: none;
    width: 100%;
}

#copyBtn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

#copyBtn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.copy-toast {
    text-align: center;
    color: #4ade80;
    font-size: 0.85rem;
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    height: 20px;
}

.copy-toast.show {
    opacity: 1;
}

#downloadModal {
    z-index: 2147483647 !important;
}

.dl-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: white;
    transition: background 0.2s;
}

.dl-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.dl-server {
    font-weight: 600;
    font-size: 1rem;
}

.dl-lang {
    font-size: 0.8rem;
    background: rgba(229, 9, 20, 0.8);
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 10px;
}

.no-dl-message {
    text-align: center;
    padding: 20px;
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.5;
}

#reportModal {
    z-index: 2147483647 !important;
}
