/* Base Styles - Kid Friendly Colors! */
.live-tv-section {
    padding: 2rem 0;
    background-color: #F0F9FF;
    color: #333;
    font-family: 'Comic Sans MS', 'Segoe UI', Roboto, sans-serif;
}

/* TV Player Styles */
.tv-player-container {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(255, 158, 0, 0.2);
    border: 3px solid #FF9E00;
}

.tv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #FF9E00;
    border-bottom: 3px solid #FF6B00;
}

.channel-info {
    display: flex;
    align-items: center;
}

.channel-logo img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    margin-right: 12px;
    border: 2px solid white;
    background: #FFD700;
}

.channel-meta h2 {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.viewer-count {
    font-size: 0.9rem;
    color: white;
    margin-top: 5px;
    font-weight: 500;
}

.tv-controls .btn-control {
    background: rgba(255,255,255,0.3);
    border: none;
    color: white;
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tv-controls .btn-control:hover {
    background: rgba(255,255,255,0.5);
    transform: scale(1.1);
}

.video-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    outline: none;
}

.live-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #FF0000;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    animation: pulse 1.5s infinite;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

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

.kids-corner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.floating-emoji {
    position: absolute;
    font-size: 24px;
    animation: float 8s linear infinite;
    opacity: 0.7;
}

.floating-emoji:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.floating-emoji:nth-child(2) {
    top: 30%;
    right: 10%;
    animation-delay: 2s;
}

.floating-emoji:nth-child(3) {
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

.program-info {
    padding: 1.2rem;
    background: #FFEBCD;
    border-top: 3px solid #FFD700;
}

.current-program h4 {
    font-size: 1rem;
    color: #FF6B00;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.current-program h3 {
    font-size: 1.5rem;
    margin: 0 0 8px 0;
    font-weight: 700;
    color: #FF4500;
}

.program-time {
    color: #FF9E00;
    font-size: 1rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.program-description {
    font-size: 1rem;
    color: #5F5F5F;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.program-actions {
    display: flex;
    gap: 10px;
}

.btn-reminder, .btn-share {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    font-weight: 600;
}

.btn-reminder {
    background: #FF9E00;
    color: white;
}

.btn-share {
    background: #4A90E2;
    color: white;
}

.btn-reminder:hover {
    background: #FF8C00;
    transform: translateY(-2px);
}

.btn-share:hover {
    background: #3A7BC8;
    transform: translateY(-2px);
}

/* Live Comments Styles */
.live-comments-container {
    background: #FFFFFF;
    border-radius: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.2);
    border: 3px solid #4A90E2;
}

.comments-header {
    padding: 1rem;
    border-bottom: 3px solid #4A90E2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #4A90E2;
}

.comments-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
}

.comment-count {
    background: white;
    color: #4A90E2;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

.comments-stream {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    max-height: 500px;
    background: #F5FBFF;
}

.comment {
    display: flex;
    margin-bottom: 1rem;
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.comment.new {
    animation: highlight 1.5s ease-out;
}

@keyframes highlight {
    0% { background-color: rgba(74, 144, 226, 0.3); }
    100% { background-color: white; }
}

.comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    align-items: center;
}

.username {
    font-weight: 700;
    font-size: 1rem;
    color: #FF6B00;
}

.timestamp {
    font-size: 0.8rem;
    color: #999;
}

.comment-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #555;
}

.comment-form {
    padding: 1rem;
    border-top: 3px solid #4A90E2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #E6F2FF;
}

.form-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.form-input {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.form-input input {
    width: 100%;
    padding: 12px 50px 12px 15px;
    border-radius: 30px;
    border: 2px solid #4A90E2;
    background: white;
    color: #333;
    font-size: 1rem;
    outline: none;
    font-family: 'Comic Sans MS', sans-serif;
}

.form-input input::placeholder {
    color: #AAA;
}

.send-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #4A90E2;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.send-button:hover {
    background: #3A7BC8;
    transform: translateY(-50%) scale(1.1);
}

.emoji-picker {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.emoji-btn {
    background: white;
    border: 2px solid #4A90E2;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.emoji-btn:hover {
    background: #4A90E2;
    color: white;
    transform: scale(1.2);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .row {
        flex-direction: column;
    }
    
    .col-lg-8, .col-lg-4 {
        width: 100%;
    }
    
    .live-comments-container {
        margin-top: 20px;
        height: 400px;
    }
}

/* Fullscreen styles */
:-webkit-full-screen .video-wrapper {
    width: 100%;
    height: 100%;
    padding-top: 0;
}

:-webkit-full-screen .video-wrapper video {
    position: relative;
}

:-moz-full-screen .video-wrapper {
    width: 100%;
    height: 100%;
    padding-top: 0;
}

:-moz-full-screen .video-wrapper video {
    position: relative;
}

:-ms-fullscreen .video-wrapper {
    width: 100%;
    height: 100%;
    padding-top: 0;
}

:-ms-fullscreen .video-wrapper video {
    position: relative;
}

:fullscreen .video-wrapper {
    width: 100%;
    height: 100%;
    padding-top: 0;
}

:fullscreen .video-wrapper video {
    position: relative;
}
