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

body {
    font-family: 'Samsung One', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000000;
    color: #FFFFFF;
    overflow: hidden;
}

#app {
    width: 100vw;
    height: 100vh;
    position: relative;
}

.screen {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.screen.active {
    display: flex;
    flex-direction: column;
}

.container {
    padding: 60px;
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
}

/* Splash Screen */
#splash {
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

.splash-content {
    text-align: center;
}

.splash-content h1 {
    font-size: 72px;
    margin-bottom: 40px;
    color: #00A8FF;
    text-shadow: 0 0 20px rgba(0, 168, 255, 0.5);
}

.loading {
    font-size: 24px;
    color: #FFFFFF;
}

/* Playlist Input Screen */
#playlist-input {
    justify-content: center;
    align-items: center;
}

#playlist-input h1 {
    font-size: 48px;
    margin-bottom: 40px;
    text-align: center;
    color: #00A8FF;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

#playlist-url {
    padding: 20px;
    font-size: 24px;
    background: #1a1a1a;
    border: 2px solid #333;
    color: #FFFFFF;
    border-radius: 8px;
    outline: none;
}

#playlist-url:focus {
    border-color: #00A8FF;
    box-shadow: 0 0 10px rgba(0, 168, 255, 0.3);
}

.btn-primary, .btn-secondary {
    padding: 20px 40px;
    font-size: 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.btn-primary {
    background: #00A8FF;
    color: #FFFFFF;
}

.btn-primary:hover, .btn-primary:focus {
    background: #0099E6;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.5);
}

.btn-secondary {
    background: #333;
    color: #FFFFFF;
}

.btn-secondary:hover, .btn-secondary:focus {
    background: #444;
}

.error {
    color: #FF4444;
    font-size: 20px;
    text-align: center;
    margin-top: 20px;
}

.hidden {
    display: none !important;
}

/* Channel Browser */
#channel-browser {
    overflow-y: auto;
}

#browser-title {
    font-size: 48px;
    margin-bottom: 40px;
    color: #00A8FF;
}

.category-list {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-item {
    padding: 15px 30px;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
}

.category-item:hover, .category-item.active {
    background: #00A8FF;
    border-color: #00A8FF;
    transform: scale(1.05);
}

.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding-bottom: 60px;
}

.channel-card {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.channel-card:hover, .channel-card:focus {
    border-color: #00A8FF;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.5);
}

.channel-card.selected {
    border-color: #00A8FF;
    background: #1a2a3a;
}

.channel-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 8px;
}

.channel-name {
    font-size: 20px;
    text-align: center;
    color: #FFFFFF;
    word-wrap: break-word;
}

.channel-group {
    font-size: 14px;
    color: #888;
    margin-top: 10px;
}

.message {
    text-align: center;
    font-size: 24px;
    color: #888;
    margin-top: 60px;
}

/* Video Player */
#video-player {
    background: #000000;
}

.video-container {
    width: 100%;
    height: 100%;
    position: relative;
}

#video-element {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.player-info {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 20px;
}

#channel-name-display {
    font-size: 32px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 8px;
}

.btn-back {
    padding: 15px 30px;
    font-size: 20px;
    background: rgba(0, 168, 255, 0.8);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-back:hover, .btn-back:focus {
    background: #00A8FF;
    transform: scale(1.05);
}

/* Focus styles for TV remote navigation */
*:focus {
    outline: 3px solid #00A8FF;
    outline-offset: 3px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #00A8FF;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0099E6;
}

