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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #000000;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    margin: 0 auto;
    flex: 1;
}

.player-wrapper {
    position: relative;
    background-color: #000000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
    border: 1px solid #2d1b3d;
}

#video-player {
    width: 100%;
    height: auto;
    max-height: 720px;
    display: block;
}

.error-message {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.9) 0%, rgba(185, 28, 88, 0.9) 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 8px;
    text-align: center;
    max-width: 80%;
    font-size: 16px;
    line-height: 1.5;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

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

.controls-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.control-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #1f2937;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.control-button:hover {
    background-color: #374151;
}

.control-button:active {
    transform: scale(0.98);
}

.control-button svg {
    width: 20px;
    height: 20px;
}

.info-panel {
    background-color: #111827;
    border-radius: 8px;
    padding: 20px;
}

.info-panel h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #9ca3af;
}

#stream-info p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #d1d5db;
}

#stream-info span {
    color: #60a5fa;
    font-weight: 500;
}

#stream-status.active {
    color: #34d399;
}

#stream-status.error {
    color: #f87171;
}

#connection-status.connected {
    color: #34d399;
}

#connection-status.disconnected {
    color: #f87171;
}

#connection-status.reconnecting {
    color: #fbbf24;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .controls-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .control-button {
        justify-content: center;
        padding: 12px;
    }
    
    .info-panel {
        padding: 15px;
    }
}

/* Mobile Touch Optimizations */
@media (hover: none) and (pointer: coarse) {
    .control-button {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .control-button svg {
        width: 24px;
        height: 24px;
    }
}

/* Fullscreen Styles */
.player-wrapper.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    border-radius: 0;
}

.player-wrapper.fullscreen #video-player {
    height: 100%;
    max-height: 100%;
}

/* Loading Animation */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Subtitle Styles */
.vtt-subtitle {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
    max-width: 80%;
    pointer-events: none;
    line-height: 1.4;
}

.vtt-subtitle.hidden {
    display: none;
}

/* Hide video controls progress bar */
#video-player::-webkit-media-controls-timeline,
#video-player::-webkit-media-controls-current-time-display,
#video-player::-webkit-media-controls-time-remaining-display {
    display: none !important;
}

/* Firefox */
#video-player::-moz-progress-bar {
    display: none !important;
}

/* Hide progress bar for all browsers */
.video-js .vjs-progress-control {
    display: none !important;
}

.video-js .vjs-time-control {
    display: none !important;
}

/* Native Video Text Track Styles */
video::-webkit-media-text-track-container {
    position: absolute;
    bottom: 10%;
    width: 100%;
    text-align: center;
}

video::-webkit-media-text-track-background {
    background-color: transparent !important;
}

video::-webkit-media-text-track-display {
    background-color: rgba(0, 0, 0, 0.85) !important;
    border-radius: 5px;
    padding: 5px 15px !important;
    margin: 0 auto !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif !important;
}

video::cue {
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    font-size: 20px;
    line-height: 1.5;
    padding: 5px 15px;
    border-radius: 5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Error message styles for subtitles */
.error-message.warning {
    background-color: rgba(251, 191, 36, 0.9);
    color: #000;
}

/* Features Section */
.features-section {
    margin-top: 40px;
    padding: 40px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.feature-card {
    background: linear-gradient(145deg, #1f1f2e 0%, #2d1b3d 100%);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #3d2951;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #6b46c1, #9333ea, #6b46c1);
    border-radius: 12px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
    border-color: #6b46c1;
}

.feature-card:hover::before {
    opacity: 0.1;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #f3f4f6;
    font-weight: 600;
}

.feature-card p {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.6;
}

.feature-note {
    font-size: 12px;
    color: #6b7280;
}

/* Case Study Section */
.case-study-section {
    background: linear-gradient(135deg, #111827 0%, #1e1b2e 100%);
    border-radius: 12px;
    padding: 40px;
    margin-top: 40px;
    text-align: center;
    border: 1px solid #2d1b3d;
}

.section-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #f3f4f6;
}

.case-study-section h3 {
    font-size: 20px;
    margin-bottom: 30px;
    color: #d1d5db;
    font-weight: 500;
}

.screenshots-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.screenshot-item {
    background: linear-gradient(145deg, #1f1f2e 0%, #2d1b3d 100%);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #3d2951;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.25);
}

.screenshot-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #374151 0%, #4c3763 100%);
}

.screenshot-item p {
    padding: 15px;
    font-size: 14px;
    color: #9ca3af;
}

.detail-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #6b46c1 0%, #9333ea 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.detail-button:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #111827 0%, #1e1b2e 100%);
    border-top: 1px solid #3d2951;
    margin-top: 80px;
    padding: 40px 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #6b46c1, transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-line {
    margin-bottom: 10px;
    font-size: 14px;
    color: #9ca3af;
}

.footer-line:last-child {
    margin-bottom: 0;
}

.company-name {
    font-size: 16px;
    font-weight: 600;
    color: #f3f4f6;
}

.address {
    color: #9ca3af;
    font-size: 14px;
}

.footer-line a {
    color: #a78bfa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-line a:hover {
    color: #c4b5fd;
}

.separator {
    margin: 0 15px;
    color: #4b5563;
}

.copyright {
    font-size: 13px;
    color: #6b7280;
}

.footer-line.copyright {
    margin-top: 5px;
}

/* Tablet Responsive (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .feature-icon {
        font-size: 40px;
    }
    
    .case-study-section {
        padding: 30px;
    }
    
    .screenshots-container {
        gap: 20px;
    }
    
    .footer-content {
        padding: 0 30px;
    }
    
    .footer-line {
        font-size: 13px;
    }
    
    .company-name {
        font-size: 15px;
    }
}

/* Mobile Responsive Updates */
@media (max-width: 767px) {
    .features-section {
        padding: 30px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .feature-icon {
        font-size: 36px;
        margin-bottom: 10px;
    }
    
    .feature-card h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .case-study-section {
        padding: 20px;
        margin-top: 30px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .case-study-section h3 {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .screenshots-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .screenshot-item img {
        height: 150px;
    }
    
    .detail-button {
        padding: 10px 24px;
        font-size: 14px;
    }
    
    .footer {
        margin-top: 50px;
        padding: 30px 0;
    }
    
    .footer-content {
        padding: 0 15px;
    }
    
    .footer-line {
        font-size: 12px;
        line-height: 1.8;
    }
    
    .company-name {
        font-size: 14px;
        display: block;
        margin-bottom: 5px;
    }
    
    .address {
        font-size: 12px;
        display: block;
        margin-bottom: 5px;
    }
    
    .separator {
        display: none;
    }
    
    .footer-line:not(.copyright) span {
        display: block;
        margin-bottom: 5px;
    }
    
    .footer-line:not(.copyright) span:last-child {
        margin-bottom: 0;
    }
    
    .footer-line.copyright {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #374151;
    }
    
    .copyright {
        font-size: 12px;
    }
}