/* ========================================
   RAM IPTV - Estilos Desktop
   Versión exclusiva para PC
   ======================================== */

/* Desktop Layout */
.ram-iptv-desktop-layout {
    display: flex !important;
    width: 100%;
    height: 100%;
    gap: 16px;
    padding: 16px;
}

/* Video Player Container */
.ram-iptv-player-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.ram-iptv-player {
    flex: 1;
    background: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    min-height: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ram-iptv-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Live Indicator */
.ram-iptv-live-indicator-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
}

.ram-iptv-live-badge-animated {
    background: linear-gradient(135deg, #ff3e9a 0%, #ff6b9d 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(255, 62, 154, 0.3);
    animation: pulse 2s infinite;
}

.ram-iptv-live-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Channel Info */
.ram-iptv-channel-info {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ram-iptv-channel-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 62, 154, 0.3);
}

.ram-iptv-channel-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ram-iptv-channel-details {
    flex: 1;
    min-width: 0;
}

.ram-iptv-channel-name {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.ram-iptv-channel-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 2.8em;
}

/* Sidebar */
.ram-iptv-sidebar {
    width: 380px;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
}

.ram-iptv-sidebar.expanded {
    width: 520px;
}

.ram-iptv-sidebar-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(255, 62, 154, 0.1) 0%, rgba(74, 144, 226, 0.1) 100%);
    position: relative;
}

.ram-iptv-sidebar-header h2 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.ram-iptv-sidebar-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

/* Categories */
.ram-iptv-categories {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ram-iptv-categories-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ram-iptv-category-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ram-iptv-category-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 62, 154, 0.3);
}

.ram-iptv-category-chip.active {
    background: var(--category-color, rgba(255, 62, 154, 0.1));
    border-color: var(--category-color, #ff3e9a);
    color: var(--category-color, #ff3e9a);
    box-shadow: 0 0 12px var(--category-color, rgba(255, 62, 154, 0.2));
}

.ram-iptv-category-icon {
    font-size: 14px;
}

.ram-iptv-category-name {
    font-weight: 500;
}

/* Channels Section */
.ram-iptv-channels-section {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.ram-iptv-channels-section-header {
    margin-bottom: 16px;
}

.ram-iptv-channels-section-header h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.ram-iptv-channels-section-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin: 0;
}

.ram-iptv-channels-list {
    max-height: 300px;
    overflow-y: auto;
}

.ram-iptv-channel-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ram-iptv-channel-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 62, 154, 0.3);
    transform: translateY(-1px);
}

.ram-iptv-channel-item-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
}

.ram-iptv-channel-item-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ram-iptv-channel-item-info {
    flex: 1;
    min-width: 0;
}

.ram-iptv-channel-item-name {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 2px 0;
}

.ram-iptv-channel-item-type {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin: 0 0 2px 0;
}

.ram-iptv-channel-item-stats {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    margin: 0;
}

.ram-iptv-channel-item-button {
    background: rgba(255, 62, 154, 0.1);
    border: 1px solid rgba(255, 62, 154, 0.3);
    color: #ff3e9a;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ram-iptv-channel-item-button:hover {
    background: rgba(255, 62, 154, 0.2);
    border-color: #ff3e9a;
}

/* Tab Content */
.ram-iptv-tab-content {
    display: none;
    width: 100%;
    height: 100%;
}

.ram-iptv-tab-content.active {
    display: flex;
}

/* Categories Grid */
.ram-iptv-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.ram-iptv-category-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.ram-iptv-category-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 62, 154, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.ram-iptv-category-card-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.ram-iptv-category-card-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.ram-iptv-category-card-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.ram-iptv-category-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 62, 154, 0.1);
    border: 1px solid rgba(255, 62, 154, 0.3);
    color: #ff3e9a;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

/* Channels Grid */
.ram-iptv-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}

.ram-iptv-channel-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ram-iptv-channel-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 62, 154, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.ram-iptv-channel-card-cover {
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.ram-iptv-channel-live-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 62, 154, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ram-iptv-live-dot-small {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

.ram-iptv-channel-card-content {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ram-iptv-channel-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 62, 154, 0.3);
}

.ram-iptv-channel-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ram-iptv-channel-card-info {
    flex: 1;
    min-width: 0;
}

.ram-iptv-channel-card-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.ram-iptv-channel-card-type {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin: 0 0 4px 0;
}

.ram-iptv-channel-card-stats {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    margin: 0;
}

.ram-iptv-channel-card-button {
    background: rgba(255, 62, 154, 0.1);
    border: 1px solid rgba(255, 62, 154, 0.3);
    color: #ff3e9a;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ram-iptv-channel-card-button:hover {
    background: rgba(255, 62, 154, 0.2);
    border-color: #ff3e9a;
}

/* Scrollbar */
.ram-iptv-channels-list::-webkit-scrollbar {
    width: 6px;
}

.ram-iptv-channels-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.ram-iptv-channels-list::-webkit-scrollbar-thumb {
    background: rgba(255, 62, 154, 0.3);
    border-radius: 3px;
}

.ram-iptv-channels-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 62, 154, 0.7);
}

/* Empty States */
.ram-iptv-empty-channels {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.ram-iptv-empty-channels p {
    margin: 0;
    font-size: 14px;
}
