/* WhisperTV Player - Styles */

:root {
    --primary-bg: #0a0e14;
    --secondary-bg: #141b24;
    --tertiary-bg: #1c2532;
    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --accent-blue-dark: #1e40af;
    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
    --text-dim: #6b7280;
    --border-color: #2d3748;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --epg-current: rgba(59, 130, 246, 0.15);
    --sidebar-width: 310px;
    --sidebar-collapsed-width: 50px;
}

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

#mobile-menu-toggle { display:none; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
}

/* Screen Management */
.screen {
    display: none;
    width: 100%;
    height: 100vh;
}

.screen.active {
    display: flex;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 20, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-icon {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-blue-hover);
}

.btn-secondary {
    background: var(--tertiary-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--secondary-bg);
}

.btn-icon {
    padding: 8px 12px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-icon:hover {
    background: var(--tertiary-bg);
    color: var(--text-primary);
}

/* Error Message */
.error-message {
    color: var(--error-color);
    font-size: 13px;
    margin: 10px 0;
    display: none;
}

.error-message.active {
    display: block;
}

/* ====================== LOGIN SCREEN ====================== */
.login-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
}

.login-box {
    background: var(--secondary-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    width: 400px;
    border: 1px solid var(--border-color);
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo-section h1 {
    font-size: 16pt;
    color: var(--accent-blue);
    margin-bottom: 5px;
}

.logo-section p {
    color: var(--text-secondary);
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: var(--tertiary-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.login-box button[type="submit"] {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
}

/* ====================== CONNECTION SCREEN ====================== */
.connection-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: var(--secondary-bg);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-blue);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    color: var(--text-secondary);
    font-size: 14px;
}

.connection-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.connection-content h2 {
    margin-bottom: 30px;
    color: var(--text-primary);
}

.connections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.connection-card {
    background: var(--secondary-bg);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
}

.connection-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

.connection-card h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 18px;
}

.connection-card p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 5px;
}

.connection-card .expires {
    color: var(--warning-color);
    font-size: 12px;
    margin-top: 10px;
}

/* ====================== PLAYER SCREEN ====================== */
.player-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 25px;
    background: var(--secondary-bg);
    border-bottom: 1px solid var(--border-color);
    height: 60px;
}

.user-controls {
    display: flex;
    align-items: center;
    gap: 1px;
}

.right-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}


.user-controls span {
    color: var(--text-secondary);
    font-size: 13px;
}

.notifications-container,
.favorites-container,
.contact-container {
    margin-right: 8px;
}

/* Add spacing after icons, before timezone/buttons */
.user-controls .timezone-selector {
    margin-left: 15px;
}

/* Timezone in header */
.timezone-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.timezone-selector label {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.timezone-selector select {
    padding: 6px 10px;
    background: var(--tertiary-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 12px;
	margin-right:20pt;
}

.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ====================== SIDEBAR ====================== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--secondary-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
    position: relative;
}

.sidebar.collapsed {
    width: 0;
    border-right: none;
}

.sidebar.collapsed .categories-list {
    opacity: 0;
    pointer-events: none;
}

.sidebar-toggle {
    position: fixed;
    left: var(--sidebar-width);
    top: 60px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-left: none;
    border-radius: 0 6px 6px 0;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 18px;
    transition: left 0.3s ease, background 0.2s;
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar.collapsed + .sidebar-toggle {
    left: 0;
}

.sidebar-toggle:hover {
    background: var(--tertiary-bg);
}

.sidebar-toggle .icon-menu::before {
    content: "◀";
}

.sidebar.collapsed + .sidebar-toggle .icon-menu::before {
    content: "▶";
}

.categories-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
    transition: opacity 0.3s ease;
}

.category-item {
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
    font-size: 12pt;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-item:hover {
    background: var(--tertiary-bg);
    color: var(--text-primary);
}

.category-item.active {
    background: var(--accent-blue);
    color: white;
    border-left: 3px solid var(--accent-blue-dark);
}

/* ====================== CONTENT AREA ====================== */
.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Video and Info Section - Single compact row */
.video-info-section {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--primary-bg);
    flex: 0 0 auto;
    align-items: stretch;
	height:40%;
}

.video-container {
    position: relative;
    width: 40%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.video-container #video-player {
	width:100%;
	height:100%;
}


.video-container video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.video-container.playing .video-overlay {
    display: none;
}

.loading-spinner {
    display: none;
    flex-direction: column;
    align-items: center;
}

.video-container.loading .loading-spinner {
    display: flex;
}

.video-container.loading .select-channel-message {
    display: none;
}

.video-overlay .spinner {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.video-overlay .loading-text {
    color: var(--text-secondary);
    font-size: 14px;
}

.select-channel-message {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Channel info - COMPACT */
.channel-info-panel {
    flex: 1;
    align-items: center;
    gap: 12px;
    background: var(--secondary-bg);
    border-radius: 6px;
    padding: 10px 15px;
    overflow: hidden;
    min-width: 0;
}

.channel-logo-container {
   	float: right;
    max-width: 100px;
    height: 55px;
}

.channel-logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: none;
}

.channel-logo-container img[src]:not([src=""]) {
    display: block;
}

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

.channel-details h3 {
    font-size: 20pt;
    margin-bottom: 6px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
	margin-top:5pt;
}

/* Current program info below channel name */
.current-show {
    padding: 6px 10px;
    background: var(--tertiary-bg);
    border-radius: 4px;
    border-left: 3px solid var(--accent-blue);
	margin-top:20pt;
	opacity: 85%;
}

.show-title {
    font-size: 13pt;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.show-time {
    font-size: 13pt;
    color: var(--text-secondary);
    margin-bottom: 5pt;
}

.show-description {
	font-size:11pt;
	margin-top:5pt;
    display: none;
	line-height:16pt;
}

.vod-poster-container {
    position: absolute;
    right: 100px;
    top: 55%;
    transform: translateY(-50%);
    z-index: 10;
}

.vod-poster-container img {
    width: 150px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

/* ====================== EPG SECTION - BIGGER ====================== */
.epg-section {
    flex: 1;
    background: var(--secondary-bg);
    margin: 0 12px 12px 12px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 0;
}

.epg-section.hidden {
    display: none;
}

/* Make video fullscreen when guide is hidden */
.content-area:has(.epg-section.hidden) .video-info-section {
    flex: 1 !important;
    height: 100% !important;
    margin: 12px;
}

.content-area:has(.epg-section.hidden) .video-container {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    aspect-ratio: unset !important;
}

.epg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
	margin-left:14pt;
}

.epg-header h3 {
    font-size: 16px;
    color: var(--text-primary);
}

/* Hide toggle button when no channels */
.epg-section.no-channels #toggle-epg-btn {
    display: none;
}



.epg-container {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.epg-timeline-header {
    display: flex;
    background: var(--tertiary-bg);
    border-bottom: 2px solid var(--border-color);
    flex-shrink: 0;
    z-index: 10;
}


.epg-timeline-scroll-wrapper {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
}

.epg-timeline {
    display: flex;
    min-width: max-content;
    height: 100%;
}

.epg-time-slot {
    flex: 0 0 150px;
    padding: 12px 15px;
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.epg-time-slot.current {
    background: var(--epg-current);
    color: var(--accent-blue);
    font-weight: 600;
}

.epg-channels-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

.epg-channels {
    position: relative;
    min-height: 200px;
}

.epg-no-selection {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.epg-no-selection h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

/* Show message on initial load */
.epg-channels:empty::before {
    content: 'Select a category from the sidebar to view channels';
    display: block;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
}

.epg-channel-row {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    min-height: 80px;
    transition: background 0.2s;
}

.epg-channel-row:hover {
    background: var(--tertiary-bg);
}



.epg-programs-container {
    flex: 1;
    display: flex;
    position: relative;
    overflow-x: auto;
}

.epg-program {
    padding: 10px 12px;
    border-right: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.epg-program:hover {
    background: rgba(59, 130, 246, 0.1);
}

.epg-program.current {
    background: var(--epg-current);
    border-left: 3px solid var(--accent-blue);
}

.epg-program-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.epg-program-time {
    font-size: 11px;
    color: var(--text-dim);
}


/* EPG Channel Column - Compact and aligned */
.epg-channel-column-header {
    min-width: 240px;
    width: 240px;
    padding: 12px 16px;
    box-sizing: border-box;
}

.epg-channel-info {
    min-width: 240px;
    width: 240px;
    max-width: 240px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    box-sizing: border-box;
    overflow: hidden;
}

/* EPG Favorite Heart Button - Compact */
.epg-favorite-btn {
    order: -1;
    background: transparent !important;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    margin: 0;
    flex-shrink: 0;
    transition: all 0.2s;
    opacity: 0.6;
}

.epg-favorite-btn:hover {
    opacity: 1;
    color: #e74c3c;
    transform: scale(1.15);
}

.epg-favorite-btn.favorited {
    color: #e74c3c;
    opacity: 1;
}

.epg-channel-logo {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.epg-channel-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-primary);
}

/* Fix red time indicator - should not extend into channel column */
.epg-current-time-indicator {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--error-color);
    z-index: 5;
    pointer-events: none;
    display: none;
    opacity: 0.45;
}

.epg-current-time-indicator.active {
    display: block;
}
/* Show video controls but hide timeline/time for live streams */
video {
    width: 100%;
    height: 100%;
}

/* Hide timeline controls for LIVE TV only */
video.live-stream::-webkit-media-controls-timeline { display: none !important; }
video.live-stream::-webkit-media-controls-current-time-display { display: none !important; }
video.live-stream::-webkit-media-controls-time-remaining-display { display: none !important; }
video.live-stream::-webkit-media-controls-seek-back-button { display: none !important; }
video.live-stream::-webkit-media-controls-seek-forward-button { display: none !important; }

/* Show timeline controls for VOD */
video.vod-stream::-webkit-media-controls-timeline { display: flex !important; }
video.vod-stream::-webkit-media-controls-current-time-display { display: flex !important; }
video.vod-stream::-webkit-media-controls-time-remaining-display { display: flex !important; }
video.vod-stream::-webkit-media-controls-seek-back-button { display: flex !important; }
video.vod-stream::-webkit-media-controls-seek-forward-button { display: flex !important; }

/* Keep play, volume, and fullscreen visible */
video::-webkit-media-controls-play-button {
    display: flex !important;
}

video::-webkit-media-controls-volume-slider {
    display: flex !important;
}

video::-webkit-media-controls-mute-button {
    display: flex !important;
}

video::-webkit-media-controls-fullscreen-button {
    display: flex !important;
}

video::-webkit-media-controls-panel {
    display: flex !important;
}

video::-webkit-media-controls-enclosure {
    display: flex !important;
}

video::-moz-progress-bar {
    display: none !important;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .video-container {
        flex: 0 0 60%;
    }
}

@media (max-width: 1200px) {
    .video-info-section {
        flex-direction: column;
        max-height: 40vh;
    }
    
    .video-container {
        flex: 1;
        width: 100%;
    }
    
    .channel-info-panel {
        flex: 0;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: absolute;
        left: 0;
        top: 60px;
        bottom: 0;
        z-index: 100;
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .connections-grid {
        grid-template-columns: 1fr;
    }
}
/* ====================== VOD (Movies & Series) STYLES ====================== */

/* VOD Grid Layout - Netflix Style */
.epg-channels.vod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    padding: 20px;
    overflow-y: scroll;
    overflow-x: hidden;
}

.vod-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
    background: transparent;
}

.vod-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    z-index: 10;
}

.vod-poster {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.vod-info {
    padding: 8px 4px;
}

.vod-title {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
    min-height: 34px;
}

.vod-year {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.vod-no-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: #999;
    text-align: center;
}

.vod-no-content h3 {
    margin-bottom: 10px;
    color: #fff;
}

/* Episodes List */
.epg-channels.episodes-list {
    padding: 20px;
    overflow-y: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.episode-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    align-items: center;
}

.episode-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.episode-thumb {
    width: 150px;
    height: 85px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.episode-number {
    flex-shrink: 0;
    width: 60px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #0080ff;
}

.episode-info {
    flex: 1;
    min-width: 0;
}

.episode-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.episode-desc {
    font-size: 11pt;
    color: #999;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Content Navigation */
.content-nav {
    display: flex;
    gap: 10px;
    margin: 0 15px;
}

.content-nav-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.content-nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.content-nav-btn.active {
    background: #fff;
    border-color: #fff;
    color: #000;
}

/* Hide EPG timeline/header for VOD only, show for Live TV */
.vod-grid ~ .epg-timeline-header,
.episodes-list ~ .epg-timeline-header,
#epg-section:has(.vod-grid) .epg-timeline-header,
#epg-section:has(.episodes-list) .epg-timeline-header {
    display: none !important;
}

.vod-grid ~ .epg-channel-column-header,
.episodes-list ~ .epg-channel-column-header,
#epg-section:has(.vod-grid) .epg-channel-column-header,
#epg-section:has(.episodes-list) .epg-channel-column-header {
    display: none !important;
}

/* Also hide the timeline container itself for VOD */
#epg-section:has(.vod-grid) .epg-timeline-scroll-wrapper,
#epg-section:has(.episodes-list) .epg-timeline-scroll-wrapper {
    display: none !important;
}

/* VOD Info Panel Styling */
.vod-play-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
	margin-bottom:5pt;
    cursor: pointer;
    transition: background 0.2s;
}

.vod-play-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

/**
.vod-back-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.2s;
	margin-bottom:10pt;
}

**/

.vod-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;  
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 6px;
    font-size: 16px; 
    font-weight: 600; 
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 12px;
    margin-bottom: 5pt;
}

.vod-back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Season Tabs */
.season-tabs {
    display: flex;
    gap: 10px;
    padding: 20px 20px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.season-tab {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.season-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.season-tab.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

#episodes-container {
    padding: 0 20px 20px;
}

/* VOD Close Buttons */
.vod-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: none;
    z-index: 100;
    transition: all 0.2s;
}

.vod-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.vod-fullscreen-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 10000;
    transition: opacity 0.3s ease, background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.vod-fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* ====================== SEARCH STYLES ====================== */

.search-container {
    position: relative;
    margin: 0 20px;
}

.search-input {
    padding: 8px 16px;
    background: var(--tertiary-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 14px;
    width: 300px;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: var(--secondary-bg);
}

.search-input::placeholder {
    color: var(--text-dim);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--tertiary-bg);
}

.search-result-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Search Results Styling - Add to style.css or mobile.css */

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--tertiary-bg);
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.search-result-item:hover {
    background: var(--secondary-bg);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Mobile search results */
@media (max-width: 1024px) {
    #mobile-menu .search-results {
        position: relative;
        margin-top: 8px;
        max-height: 300px;
    }
}

/**
 * MKV Badge Styles
 * Add these styles to your main CSS file
 */

/* MKV Badge on VOD Cards */
.mkv-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(231, 76, 60, 0.95);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    cursor: help;
    transition: transform 0.2s ease;
}

.mkv-badge:hover {
    transform: scale(1.05);
    background: rgba(231, 76, 60, 1);
}

/* MKV Badge for Episodes (inline style) */
.mkv-badge-inline {
    display: inline-block;
    background: rgba(231, 76, 60, 0.95);
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 8px;
    cursor: help;
    transition: background 0.2s ease;
}

.mkv-badge-inline:hover {
    background: rgba(231, 76, 60, 1);
}

/* Make VOD cards position relative for badge positioning */
.vod-card {
    position: relative;
}

/* Notice styling (if needed - adjust to match your existing notice style) */
#video_playback_notice {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#video_playback_notice button:hover {
    background: #475569 !important;
}

/* EPG Tooltip/Modal */
.epg-tooltip {
    position: fixed;
    background: var(--secondary-bg, #2c3e50);
    border: 1px solid var(--border-color, #34495e);
    border-radius: 8px;
    padding: 16px;
    max-width: 400px;
    min-width: 250px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    animation: tooltipFadeIn 0.2s ease;
}

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

.epg-tooltip-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #ecf0f1);
    margin-bottom: 8px;
    line-height: 1.3;
}

.epg-tooltip-time {
    font-size: 13px;
    color: var(--accent-blue, #3498db);
    margin-bottom: 12px;
    font-weight: 500;
}

.epg-tooltip-description {
    font-size: 14px;
    color: var(--text-secondary, #bdc3c7);
    line-height: 1.5;
    max-height: 200px;
    overflow-y: auto;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .epg-tooltip {
        max-width: calc(100vw - 40px);
        left: 20px !important;
        right: 20px !important;
    }
}

.favorites-container {
    position: relative;
    display: inline-block;
}

/* Favorites Button */
.favorites-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px 12px;
    position: relative;
    transition: color 0.2s;
}

.favorites-btn:hover {
    color: #e74c3c;
}

.favorites-btn i {
    color: #e74c3c;
}

/* Favorites Count Badge */
.favorites-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #e74c3c;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}



/* Favorites Modal */
.favorites-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.favorites-modal.active {
    display: flex;
}

.favorites-modal-content {
    background: var(--secondary-bg, #2c3e50);
    border-radius: 12px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.favorites-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-color, #34495e);
}

.favorites-modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: var(--text-primary, #ecf0f1);
}

.favorites-modal-header h2 i {
    color: #e74c3c;
    margin-right: 10px;
}

.favorites-modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary, #95a5a6);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

.favorites-modal-close:hover {
    color: var(--text-primary, #ecf0f1);
}

.favorites-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Favorites Search */
.favorites-search {
    position: relative;
    margin-bottom: 24px;
}

.favorites-search input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    background: var(--tertiary-bg, #34495e);
    border: 1px solid var(--border-color, #34495e);
    border-radius: 8px;
    color: var(--text-primary, #ecf0f1);
    font-size: 14px;
}

.favorites-search input:focus {
    outline: none;
    border-color: var(--accent-blue, #3498db);
}

.favorites-search i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary, #95a5a6);
}

/* Favorites Tabs */
.favorites-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color, #34495e);
}

.favorites-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary, #95a5a6);
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.favorites-tab:hover {
    color: var(--text-primary, #ecf0f1);
}

.favorites-tab.active {
    color: var(--text-primary, #ecf0f1);
    border-bottom-color: #e74c3c;
}

.favorites-tab-count {
    display: inline-block;
    background: var(--tertiary-bg, #34495e);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: 8px;
}

.favorites-tab.active .favorites-tab-count {
    background: #e74c3c;
    color: white;
}

/* Favorites Sections */
.favorites-section {
    display: none;
}

.favorites-section.active {
    display: block;
}

/* Favorites Channel List */
.favorites-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.favorite-channel-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--tertiary-bg, #34495e);
    border-radius: 8px;
    transition: background 0.2s;
}

.favorite-channel-item:hover {
    background: var(--hover-bg, #3d5266);
}

.favorite-channel-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 4px;
}

.favorite-channel-info {
    flex: 1;
}

.favorite-channel-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #ecf0f1);
    margin-bottom: 4px;
}

.favorite-channel-program {
    font-size: 13px;
    color: var(--text-secondary, #95a5a6);
}

.favorite-channel-program-title {
    color: var(--accent-blue, #3498db);
    font-weight: 500;
}

.favorite-watch-btn {
    padding: 10px 20px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.favorite-watch-btn:hover {
    background: #c0392b;
}

/* Favorites Grid (Movies/Series) */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.favorite-vod-item {
    cursor: pointer;
    transition: transform 0.2s;
}

.favorite-vod-item:hover {
    transform: scale(1.05);
}

.favorite-vod-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.favorite-vod-title {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary, #ecf0f1);
    text-align: center;
    line-height: 1.3;
}

/* Empty State */
.favorites-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary, #95a5a6);
	grid-column: 1 / -1;
    width: 100%;
}

.favorites-empty i {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.favorites-empty h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-primary, #ecf0f1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .favorites-modal-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .favorites-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .favorite-channel-item {
        flex-direction: column;
        text-align: center;
    }
    
    .favorite-watch-btn {
        width: 100%;
    }
}





/* VOD Favorite Button */
.vod-favorite-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 12px;
	margin-bottom:5pt;
}

.vod-favorite-btn:hover {
    background: #e74c3c;
    color: white;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.vod-favorite-btn.favorited {
    background: #e74c3c;
    color: white;
}

.vod-favorite-btn.favorited:hover {
    background: #c0392b;
    border-color: #c0392b;
}

.vod-favorite-btn i {
    font-size: 18px;
}

/* Make sure buttons are on same line */
.show-time {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .vod-favorite-btn {
        padding: 10px 16px;
        font-size: 14px;
        margin-left: 0;
    }
    
    .show-time {
        flex-direction: column;
        align-items: stretch;
    }
    
    .vod-favorite-btn,
    .vod-play-btn,
    .vod-back-btn {
        width: 100%;
    }
}

/* Channel delete button */
.favorite-delete-btn {
    padding: 8px 12px;
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    margin-left: 8px;
    flex-shrink: 0;
}

.favorite-delete-btn:hover {
    background: #ef4444;
    color: white;
}

/* VOD delete button (overlay on poster) */
.favorite-vod-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.favorite-vod-item {
    position: relative;
}


.favorite-vod-delete-btn:hover {
    background: #ef4444;
    transform: scale(1.1);
}

/* Favorites controls (sort and filter) */
.favorites-controls {
    display: flex;
    gap: 12px;
    padding: 15px 20px;
    background: var(--secondary-bg);
    border-bottom: 1px solid var(--border-color);
}

.favorites-sort-dropdown,
.favorites-category-dropdown {
    flex: 1;
    padding: 8px 12px;
    background: var(--tertiary-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.favorites-sort-dropdown:hover,
.favorites-category-dropdown:hover {
    border-color: var(--primary-color);
}

.favorites-sort-dropdown:focus,
.favorites-category-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Category Filter Styles */
.category-search {
	position: sticky;
	top: 0;
	z-index: 10;
	background: var(--secondary-bg);
	padding: 15px;
	border-bottom: 1px solid var(--border-color);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: opacity 0.3s ease, max-height 0.3s ease;  
	overflow: hidden; 
}

.category-search-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}

#category-filter {
	flex: 1;
	padding: 10px 35px 10px 35px;
	background: var(--tertiary-bg);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	color: var(--text-primary);
	font-size: 14px;
	transition: border-color 0.2s;
}

#category-filter:focus {
	outline: none;
	border-color: var(--accent-blue);
}

#category-filter::placeholder {
	color: var(--text-secondary);
	opacity: 0.6;
}

.category-search-icon {
	position: absolute;
	left: 12px;
	color: var(--text-secondary);
	font-size: 14px;
	pointer-events: none;
}

.clear-filter {
	position: absolute;
	right: 10px;
	background: transparent;
	border: none;
	color: var(--text-secondary);
	font-size: 18px;
	cursor: pointer;
	padding: 4px 8px;
	line-height: 1;
	transition: color 0.2s;
	display: none;
}

.clear-filter:hover {
	color: var(--text-primary);
}

.clear-filter.visible {
	display: block;
}

.category-count {
	font-size: 12px;
	color: var(--text-secondary);
	margin-top: 8px;
	text-align: center;
}

.no-categories-found {
	padding: 40px 20px;
	text-align: center;
	color: var(--text-secondary);
	font-size: 14px;
	display: none;
}

.no-categories-found.visible {
	display: block;
}

.no-categories-found i {
	font-size: 32px;
	margin-bottom: 10px;
	opacity: 0.5;
}

/* Mobile adjustments */
@media (max-width: 768px) {
	.category-search {
		padding: 12px;
	}
	
	#category-filter {
		font-size: 13px;
		padding: 8px 32px 8px 32px;
	}
	
	.category-count {
		font-size: 11px;
		margin-top: 6px;
	}
}

.sidebar.collapsed .category-search {
    opacity: 0;
	max-height: 0;
	padding: 0;
	border-bottom: none;
}


/* ==========================================
   CONTACT BUTTON STYLES
   ========================================== */

.contact-container {
    position: relative;
    display: inline-block;
    margin-right: 0;
}

.notifications-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 0;
}



.contact-btn {
	background: transparent;
	border: none;
	color: var(--text-primary);
	font-size: 20px;
	cursor: pointer;
	padding: 8px 12px;
	transition: color 0.2s;
}

.contact-btn:hover {
	color: var(--accent-blue);
}

/* ==========================================
   CONTACT MODAL STRUCTURE
   ========================================== */

.contact-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
	z-index: 10000;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(4px);
}

.contact-modal.active {
	display: flex;
}

.contact-modal-content {
	background: var(--secondary-bg);
	border-radius: 12px;
	width: 90%;
	max-width: 600px;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
	animation: modalSlideIn 0.3s ease;
}

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

/* ==========================================
   MODAL HEADER
   ========================================== */

.contact-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 25px;
	border-bottom: 1px solid var(--border-color);
}

.contact-modal-header h2 {
	margin: 0;
	font-size: 22px;
	color: var(--text-primary);
	display: flex;
	align-items: center;
	gap: 10px;
}

.contact-modal-header h2 i {
	color: var(--accent-blue);
}

.contact-modal-close {
	background: transparent;
	border: none;
	color: var(--text-secondary);
	font-size: 28px;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	transition: background 0.2s, color 0.2s;
}

.contact-modal-close:hover {
	background: var(--tertiary-bg);
	color: var(--text-primary);
}

/* ==========================================
   MODAL BODY
   ========================================== */

.contact-modal-body {
	padding: 25px;
	overflow-y: auto;
	flex: 1;
}

/* Loading State */
.contact-loading {
	text-align: center;
	padding: 40px 20px;
	color: var(--text-secondary);
}

.contact-loading .spinner {
	width: 40px;
	height: 40px;
	border: 3px solid var(--border-color);
	border-top-color: var(--accent-blue);
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto 15px;
}

/* ==========================================
   CONTACT SECTIONS
   ========================================== */

.contact-section {
	margin-bottom: 30px;
}

.contact-section:last-child {
	margin-bottom: 0;
}

.contact-section-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 15px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--border-color);
}

/* ==========================================
   BASIC INFO & ADDRESS
   ========================================== */

.contact-info-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 15px;
	padding: 12px;
	background: var(--tertiary-bg);
	border-radius: 8px;
	transition: background 0.2s;
}

.contact-info-item:hover {
	background: rgba(59, 130, 246, 0.1);
}

.contact-info-icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--accent-blue);
	color: white;
	border-radius: 8px;
	font-size: 16px;
}

.contact-info-content {
	flex: 1;
}

.contact-info-label {
	font-size: 12px;
	color: var(--text-secondary);
	margin-bottom: 4px;
}

.contact-info-value {
	font-size: 15px;
	color: var(--text-primary);
	word-break: break-word;
}

.contact-info-value a {
	color: var(--accent-blue);
	text-decoration: none;
	transition: color 0.2s;
}

.contact-info-value a:hover {
	color: #60a5fa;
	text-decoration: underline;
}

/* Address Block */
.contact-address-block {
	line-height: 1.6;
}

/* ==========================================
   SOCIAL MEDIA BUTTONS
   ========================================== */

.contact-social-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
}

.contact-social-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	color: white;
	transition: transform 0.2s, box-shadow 0.2s;
}

.contact-social-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.contact-social-btn i {
	font-size: 18px;
}

/* Social Platform Colors */
.contact-social-btn.whatsapp {
	background: #25D366;
}

.contact-social-btn.telegram {
	background: #0088cc;
}

.contact-social-btn.twitter {
	background: #000000;
}

.contact-social-btn.discord {
	background: #5865F2;
}

.contact-social-btn.facebook {
	background: #1877F2;
}

.contact-social-btn.instagram {
	background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* ==========================================
   EMPTY STATE
   ========================================== */

.contact-empty {
	text-align: center;
	padding: 40px 20px;
	color: var(--text-secondary);
}

.contact-empty i {
	font-size: 48px;
	margin-bottom: 15px;
	opacity: 0.5;
}

.contact-empty h3 {
	margin: 0 0 10px 0;
	color: var(--text-primary);
}

/* ==========================================
   MOBILE RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
	.contact-modal-content {
		width: 100%;
		max-width: 100%;
		height: 100%;
		max-height: 100%;
		border-radius: 0;
	}

	.contact-modal-header {
		padding: 15px 20px;
	}

	.contact-modal-header h2 {
		font-size: 18px;
	}

	.contact-modal-body {
		padding: 20px;
	}

	.contact-section {
		margin-bottom: 25px;
	}

	.contact-social-grid {
		grid-template-columns: 1fr;
	}

}


/* ==========================================
   SMOOTH SCROLLBAR
   ========================================== */

.contact-modal-body::-webkit-scrollbar {
	width: 8px;
}

.contact-modal-body::-webkit-scrollbar-track {
	background: var(--tertiary-bg);
	border-radius: 4px;
}

.contact-modal-body::-webkit-scrollbar-thumb {
	background: var(--border-color);
	border-radius: 4px;
}

.contact-modal-body::-webkit-scrollbar-thumb:hover {
	background: var(--text-secondary);
}




	/* Bell Button */
	.notifications-bell {
		background: transparent;
		border: none;
		color: var(--text-primary);
		font-size: 20px;
		cursor: pointer;
		padding: 8px 12px;
		position: relative;
		transition: color 0.2s;
	}

	.notifications-bell:hover {
		color: var(--accent-blue);
	}

	/* Notification Count Badge */
	.notifications-count {
		position: absolute;
		top: 2px;
		right: 2px;
		background: #e74c3c;
		color: white;
		border-radius: 10px;
		padding: 2px 6px;
		font-size: 11px;
		font-weight: bold;
		min-width: 18px;
		text-align: center;
	}

	/* Dropdown */
	.notifications-dropdown {
		position: absolute;
		top: calc(100% + 10px);
		right: 0;
		width: 400px;
		max-height: 500px;
		background: var(--secondary-bg);
		border: 1px solid var(--border-color);
		border-radius: 8px;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
		display: none;
		flex-direction: column;
		z-index: 1000;
	}

	.notifications-dropdown.active {
		display: flex;
	}

	/* Header */
	.notifications-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 15px;
		border-bottom: 1px solid var(--border-color);
	}

	.notifications-header h3 {
		margin: 0;
		font-size: 16px;
		color: var(--text-primary);
	}

	.dismiss-all-btn {
		background: transparent;
		border: none;
		color: var(--accent-blue);
		font-size: 13px;
		cursor: pointer;
		padding: 4px 8px;
	}

	.dismiss-all-btn:hover {
		text-decoration: underline;
	}

	/* Notifications List */
	.notifications-list {
		overflow-y: auto;
		max-height: 400px;
		padding: 10px;
	}

	.notifications-loading {
		text-align: center;
		padding: 20px;
		color: var(--text-secondary);
	}

	.notifications-empty {
		text-align: center;
		padding: 40px 20px;
		color: var(--text-secondary);
	}

	/* Individual Notification */
	.notification-item {
		padding: 12px;
		margin-bottom: 8px;
		background: var(--tertiary-bg);
		border-radius: 6px;
		border-left: 3px solid var(--accent-blue);
	}

	.notification-item.pinned {
		border-left-color: #f39c12;
	}

	.notification-title {
		font-weight: 600;
		color: var(--text-primary);
		margin-bottom: 5px;
		display: flex;
		align-items: center;
		gap: 8px;
	}

	.notification-title .pin-icon {
		color: #f39c12;
		font-size: 12px;
	}

	.notification-message {
		color: var(--text-secondary);
		font-size: 13px;
		line-height: 1.4;
		margin-bottom: 5px;
	}

	.notification-date {
		font-size: 11px;
		color: var(--text-secondary);
		opacity: 0.7;
	}

	.audio-warning {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(255, 152, 0, 0.95);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease;
}

.audio-warning-content {
    text-align: center;
    font-weight: bold;
}

.audio-warning-content small {
    font-size: 12px;
    font-weight: normal;
    opacity: 0.9;
}

.audio-warning button {
    margin-top: 10px;
    padding: 5px 15px;
    background: white;
    color: #ff9800;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.audio-warning button:hover {
    background: #f5f5f5;
}

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