* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto Condensed', sans-serif;
    background-color: #0a0a0a;
    overflow: hidden;
}

#DisplayContent {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#PlayerDisplay {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Fake Player Styles */
.fake-player-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    background: linear-gradient(rgba(16, 16, 23, 0.71), #000000), url('https://image.tmdb.org/t/p/original/default.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.play-button-overlay {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: none;
    background: transparent;
    order: 1;
}

.play-button-overlay:hover {
    transform: scale(1.1);
}

.play-button-overlay:focus {
    outline: 3px solid rgba(0, 123, 255, 0.8);
    outline-offset: 5px;
}

.play-button-circle {
    width: 100px;
    height: 100px;
    background: rgba(0, 123, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(0, 123, 255, 0.5);
    position: relative;
}

.play-button-circle::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(0, 123, 255, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.play-button-circle i {
    font-size: 40px;
    color: white;
    margin-left: 5px;
}

.video-title-overlay {
    position: relative;
    color: white;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.7);
    max-width: 80%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    padding: 20px 30px 10px;
    border-radius: 10px;
    order: 2;
}

.video-title-overlay h1 {
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    font-weight: 600;
    line-height: 1.4;
}

.video-title-overlay .watching-label {
    font-size: 0.65em;
    font-weight: 400;
    opacity: 0.85;
    display: block;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.video-title-overlay .video-name {
    font-size: 1em;
    font-weight: 700;
    display: block;
    text-transform: capitalize;
}

.video-title-overlay p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.video-title-overlay .language-flags {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.video-title-overlay .language-flag-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.video-title-overlay .language-flags img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.video-title-overlay .language-name {
    font-size: 0.9em;
    font-weight: 600;
}

.video-title-overlay .separator {
    opacity: 0.7;
}

.video-title-overlay .online-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #4ade80;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.video-title-overlay .online-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: blink 2s infinite;
    box-shadow: 0 0 10px #4ade80;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

.video-title-overlay .server-count {
    font-weight: 600;
    color: #60a5fa;
}

/* Telegram Link Mini (siempre visible) */
.telegram-link-mini {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 136, 204, 0.2);
    color: #00a8ff;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(0, 136, 204, 0.3);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.telegram-link-mini:hover {
    background: rgba(0, 136, 204, 0.3);
    color: #fff;
    border-color: rgba(0, 136, 204, 0.5);
    transform: translateY(-1px);
}

.telegram-link-mini i {
    font-size: 0.9rem;
}

/* Telegram Bottom Section */
.telegram-bottom-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 35px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.telegram-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
}

.telegram-button-bottom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0088cc;
    color: white;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.telegram-button-bottom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
    background: #00a8ff;
}

.telegram-button-bottom i {
    font-size: 1.1rem;
}

/* Language Tabs */
.language-tab-container {
    display: flex;
    overflow-x: auto;
    background-color: #1a1a1a;
    color: #fff;
    padding: 10px;
    gap: 8px;
    position: relative;
    overflow-y: visible;
    min-height: 50px;
    border-bottom: 2px solid #333;
}

.language-tab-container::-webkit-scrollbar {
    width: 8px;
    height: 6px;
}

.language-tab-container::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
}

.language-tab {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    cursor: pointer;
    background-color: #2a2a2a;
    border-radius: 20px;
    position: static;
    flex: 0 0 auto;
    transition: all 0.3s;
    gap: 8px;
    border: none;
    color: white;
    font-family: inherit;
    font-size: 14px;
}

.language-tab:hover {
    background-color: #3a3a3a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.language-tab.active {
    background-color: #007bff;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.4);
}

.language-tab:focus {
    outline: 2px solid rgba(0, 123, 255, 0.8);
    outline-offset: 2px;
}

.language-tab img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* Server Tabs */
.tab-container {
    display: flex;
    overflow-x: auto;
    background-color: #333;
    color: #fff;
    padding: 10px;
    gap: 8px;
    position: relative;
    overflow-y: visible;
    min-height: 37px;
    z-index: 100;
}

.tab-container::-webkit-scrollbar {
    width: 8px;
    height: 6px;
}

.tab-container::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
}

.tab {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    background-color: #444;
    border-radius: 20px;
    position: relative;
    flex: 0 0 auto;
    transition: all 0.3s;
    border: none;
    color: white;
    font-family: inherit;
}

.tab:hover {
    background-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.tab:focus {
    outline: 2px solid rgba(0, 123, 255, 0.8);
    outline-offset: 2px;
}

.tab.active {
    background-color: #007bff;
}

.tab img {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.tab span {
    font-size: 13px;
    font-weight: 500;
}

/* Warning Modal */
.warning-modal {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    padding: 12px 16px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    border-bottom: 2px solid #f59e0b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease-out;
}

.warning-modal.hidden {
    display: none;
}

.warning-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.warning-icon {
    font-size: 18px;
    animation: pulse 2s infinite;
}

.warning-text {
    font-weight: 500;
    line-height: 1.4;
}

.warning-close {
    background: rgba(120, 53, 15, 0.1);
    border: none;
    color: #78350f;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s;
    flex-shrink: 0;
}

.warning-close:hover {
    background: rgba(120, 53, 15, 0.2);
    transform: scale(1.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* No Servers Message Styles */
.no-servers-icon {
    font-size: 4rem;
    animation: bounce 2s ease-in-out infinite;
}

.no-servers-message {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.no-servers-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.3;
}

.no-servers-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.telegram-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #0088cc, #00a8ff);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.telegram-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
    background: linear-gradient(135deg, #00a8ff, #0088cc);
}

.telegram-button i {
    font-size: 1.3rem;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Loading Styles */
.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: fadeInOut 2s ease-in-out infinite;
}

.loading-subtext {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    animation: fadeInOut 2s ease-in-out infinite 0.5s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}
.iframe-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: none;
}

.iframe-container.active {
    display: block;
}

#iframePlayer {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .language-tab-container {
        padding: 8px;
        gap: 6px;
    }

    .language-tab {
        padding: 6px 12px;
        font-size: 13px;
        border-radius: 15px;
    }

    .language-tab img {
        width: 20px;
        height: 20px;
    }

    .tab-container {
        padding: 8px;
        gap: 6px;
    }

    .tab {
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 15px;
    }

    .tab img {
        width: 16px;
        height: 16px;
        margin-right: 6px;
    }

    .fake-player-container {
        gap: 30px;
    }
    
    .play-button-circle {
        width: 80px;
        height: 80px;
    }

    .play-button-circle i {
        font-size: 32px;
    }
    
    .video-title-overlay {
        max-width: 90%;
        padding: 15px 20px 8px;
    }
    
    .video-title-overlay h1 {
        font-size: 1.3rem;
    }
    
    .video-title-overlay .watching-label {
        font-size: 0.6em;
        margin-bottom: 3px;
    }
    
    .video-title-overlay .video-name {
        font-size: 0.95em;
    }
    
    .video-title-overlay p {
        font-size: 0.85rem;
    }
    
    .video-title-overlay .language-flags img {
        width: 16px;
        height: 16px;
    }
    
    .video-title-overlay .language-name {
        font-size: 0.8em;
    }
    
    .video-title-overlay .language-flags {
        gap: 6px;
    }
    
    .video-title-overlay .language-flag-item {
        gap: 4px;
    }
    
    .warning-modal {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .warning-icon {
        font-size: 16px;
    }
    
    .warning-close {
        width: 22px;
        height: 22px;
        font-size: 14px;
    }
}

/* ===== RESPONSIVE DESIGN PARA MÓVILES ===== */

/* Para pantallas pequeñas (móviles en vertical) */
@media (max-width: 768px) and (orientation: portrait) {
    .fake-player-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 20px 30px 20px 20px;
        gap: 20px;
    }
    
    .play-button-overlay {
        order: 1;
        flex-shrink: 0;
        margin-left: 25px;
    }
    
    .play-button-circle {
        width: 80px;
        height: 80px;
    }
    
    .play-button-circle i {
        font-size: 32px;
        margin-left: 3px;
    }
    
    .video-title-overlay {
        order: 2;
        text-align: left;
        max-width: 65%;
        padding: 15px 20px;
        background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    }
    
    .video-title-overlay h1 {
        font-size: 1.1rem;
        margin: 0 0 8px 0;
        line-height: 1.3;
    }
    
    .video-title-overlay .watching-label {
        font-size: 0.7em;
        margin-bottom: 4px;
    }
    
    .video-title-overlay .video-name {
        font-size: 1em;
        margin-bottom: 8px;
    }
    
    .video-title-overlay p {
        font-size: 0.8rem;
        justify-content: flex-start;
        gap: 6px;
        line-height: 1.2;
    }
    
    .video-title-overlay .language-flags {
        gap: 4px;
    }
    
    .video-title-overlay .language-flag-item {
        gap: 3px;
    }
    
    .video-title-overlay .language-flags img {
        width: 14px;
        height: 14px;
    }
    
    .video-title-overlay .language-name {
        font-size: 0.75em;
    }
    
    .telegram-bottom-section {
        display: none;
    }
}

/* Para pantallas pequeñas en horizontal (móviles acostados) */
@media (max-width: 1024px) and (orientation: landscape) {
    .fake-player-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 30px 15px 30px;
        gap: 15px;
    }
    
    .play-button-overlay {
        order: 1;
        flex-shrink: 0;
        margin-left: 30px;
    }
    
    .play-button-circle {
        width: 70px;
        height: 70px;
    }
    
    .play-button-circle i {
        font-size: 28px;
        margin-left: 2px;
    }
    
    .video-title-overlay {
        order: 2;
        text-align: left;
        max-width: 70%;
        padding: 12px 20px;
        background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    }
    
    .video-title-overlay h1 {
        font-size: 1rem;
        margin: 0 0 6px 0;
        line-height: 1.2;
    }
    
    .video-title-overlay .watching-label {
        font-size: 0.65em;
        margin-bottom: 3px;
    }
    
    .video-title-overlay .video-name {
        font-size: 0.95em;
        margin-bottom: 6px;
    }
    
    .video-title-overlay p {
        font-size: 0.75rem;
        justify-content: flex-start;
        gap: 5px;
    }
    
    .telegram-bottom-section {
        display: none;
    }
}

/* Para pantallas muy pequeñas (móviles pequeños) */
@media (max-width: 480px) {
    .fake-player-container {
        padding: 15px 25px 15px 25px;
        gap: 15px;
    }
    
    .play-button-overlay {
        margin-left: 20px;
    }
    
    .play-button-circle {
        width: 60px;
        height: 60px;
    }
    
    .play-button-circle i {
        font-size: 24px;
        margin-left: 2px;
    }
    
    .video-title-overlay {
        max-width: 60%;
        padding: 10px 15px;
    }
    
    .video-title-overlay h1 {
        font-size: 0.95rem;
        margin: 0 0 5px 0;
    }
    
    .video-title-overlay .video-name {
        font-size: 0.9em;
        margin-bottom: 5px;
    }
    
    .video-title-overlay p {
        font-size: 0.7rem;
        gap: 4px;
    }
    
    .video-title-overlay .language-flags img {
        width: 12px;
        height: 12px;
    }
    
    .video-title-overlay .language-name {
        font-size: 0.7em;
    }
}
