#tv-program {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tv-program-widget {
  width: 100%;
}

.tv-program-header {
    padding-top: 5px;
    color: white;
    text-align: center;
}

.tv-channel-title {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: 600;
}

.tv-update-time {
    font-size: 12px;
    opacity: 0.9;
}

.tv-program-list {
    max-height: 230px;
    overflow-y: auto;
    padding: 10px;
    margin-top: 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tv-program-list::-webkit-scrollbar {
    display: none;
}

.tv-program-item {
    display: flex;
    flex-direction: column;
    padding: 12px 15px;
    margin: 5px 0;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    position: relative;
}

.tv-program-time-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.tv-program-time {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.tv-program-current-badge {
    display: inline-block;
    background: #969696;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
    }
}

.tv-program-title {
    font-size: 16px;
    color: #333;
}

.tv-program-progress {
    width: 100%;
    height: 3px;
    background: #e0e0e0;
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.tv-program-progress-bar {
    height: 100%;
    background: #969696;
    transition: width 0.3s ease;
}

.tv-program-nav {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
}

.tv-program-nav button {
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    background: #f0f0f0;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tv-program-nav button:hover:not(:disabled) {
    background: #667eea;
    color: white;
}

.tv-program-nav button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tv-program-error {
    padding: 40px;
    text-align: center;
    color: #f44336;
    font-size: 16px;
}

@media (max-width: 480px) {
    .tv-program-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tv-program-time {
        margin-bottom: 5px;
    }
    
    .tv-program-title {
        padding: 5px 0;
    }
    
    .tv-program-time-container {
        width: 100%;
        justify-content: space-between;
    }
}

.tv-current-program-container {
    padding: 10px;
    margin-top: 5px;
}

.tv-program-item.current-program {
    background: #f8f9fa;
    border-left: 4px solid #969696;
}

.tv-next-program-info {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0;
}

.tv-next-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.tv-next-title {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    margin-bottom: 2px;
}

.tv-next-time {
    font-size: 11px;
    color: #969696;
}

.tv-full-program-button {
    display: block;
    width: calc(100% - 20px);
    margin: 10px 10px 10px 10px;
    padding: 10px;
    border: none;
    border-radius: 20px;
    background: #f0f0f0;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.tv-full-program-button:hover {
    background: #969696;
    color: white;
}

.tv-no-program {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.tv-full-program-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
    overflow: auto;
    padding: 20px;
    box-sizing: border-box;
}

body.tv-modal-open {
    overflow: hidden;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.tv-full-program-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: calc(100vh - 220px);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    overflow: hidden;
    position: relative;
    margin: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.tv-full-program-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

.tv-full-program-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.tv-full-program-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.tv-full-program-close:hover {
    background: #f0f0f0;
    color: #666;
}

.tv-full-program-list {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #969696 #e0e0e0;
}

.tv-full-program-list::-webkit-scrollbar {
    width: 8px;
}

.tv-full-program-list::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 4px;
}

.tv-full-program-list::-webkit-scrollbar-thumb {
    background: #969696;
    border-radius: 4px;
}

.tv-full-program-list::-webkit-scrollbar-thumb:hover {
    background: #7a7a7a;
}

.tv-full-program-item {
    padding: 12px 15px;
    margin: 5px 0;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.tv-full-program-item:hover {
    background: #e9ecef;
}

.tv-full-program-item.current {
    background: #f0f0f0;
    border-left: 4px solid #969696;
}

.tv-full-program-time-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.tv-full-program-time {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.tv-full-program-current-badge {
    display: inline-block;
    background: #969696;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
}

.tv-full-program-title {
    font-size: 15px;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.tv-full-program-description {
    font-size: 12px;
    color: #666;
    display: block;
    margin-top: 5px;
}

@media (max-width: 480px) {
    .tv-full-program-modal {
        padding: 10px;
    }
    
    .tv-full-program-content {
        max-height: calc(100vh - 200px);
    }
    
    .tv-full-program-header h3 {
        font-size: 16px;
    }
    
    .tv-full-program-item {
        padding: 10px 12px;
    }
    
    .tv-full-program-title {
        font-size: 14px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .tv-full-program-content {
        max-width: 90%;
    }
}