/* TV Wrapper */
.sidma-tv-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif;
}

/* TV Frame */
.sidma-tv-frame {
    position: relative;
    background: #1a1a1a;
    border-radius: 20px;
    padding: 20px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        inset 0 0 100px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    border: 4px solid #333;
    /* Wood texture or Metallic look */
    background: linear-gradient(135deg, #2c2c2c 0%, #111 100%);
    transition: transform 0.3s ease;
}

.sidma-tv-frame:hover {
    transform: scale(1.01);
}

/* TV Bezel (Inner Frame) */
.tv-bezel {
    display: flex;
    gap: 20px;
}

@media (max-width: 768px) {
    .tv-bezel {
        flex-direction: column;
    }
}

/* Screen */
.tv-screen-container {
    flex: 1;
    background: #000;
    border-radius: 10px;
    /* Slight Curve */
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 1);
    border: 8px solid #000;
}

/* CRT Scanline Overlay */
.tv-screen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    /* Scan lines */
    pointer-events: none;
    z-index: 10;
    opacity: 0.3;
}

/* Control Panel */
.tv-control-panel {
    width: 120px;
    background: #111;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border: 2px solid #333;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .tv-control-panel {
        width: 100%;
        flex-direction: row;
        height: auto;
        padding: 10px 20px;
    }
}

.brand-logo {
    color: #555;
    font-weight: 900;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .brand-logo {
        margin-bottom: 0;
    }
}

.channel-display {
    background: #000;
    color: #4DDFC2;
    /* Teal Glow */
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    padding: 10px;
    border-radius: 4px;
    width: 80%;
    text-align: center;
    box-shadow: 0 0 5px #4DDFC2;
    text-shadow: 0 0 5px #4DDFC2;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .channel-display {
        width: auto;
        margin-bottom: 0;
        font-size: 1.2rem;
    }
}

.control-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: center;
}

@media (max-width: 768px) {
    .control-buttons {
        flex-direction: row;
        width: auto;
    }
}

.tv-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: radial-gradient(circle, #444 0%, #222 100%);
    color: #888;
    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.tv-btn:active {
    transform: scale(0.95);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8);
}

.btn-power {
    color: white;
    background: #cc0000;
    /* Red */
    font-size: 0.7rem;
    font-weight: bold;
    width: auto;
    padding: 0 10px;
    border-radius: 4px;
    letter-spacing: 1px;
    box-shadow: 0 0 5px rgba(204, 0, 0, 0.5);
}

.btn-power:hover {
    background: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

.btn-power.is-off {
    background: #330000;
    /* Dark Red */
    color: #888;
    box-shadow: none;
}

.speaker-grill {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@media (max-width: 768px) {
    .speaker-grill {
        display: none;
    }
}

.speaker-grill span {
    display: block;
    height: 2px;
    background: #000;
    width: 100%;
    border-bottom: 1px solid #333;
}

/* Stand */
.tv-stand {
    height: 10px;
    width: 60%;
    background: #222;
    margin: 0 auto;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* Guide */
.sidma-channel-guide {
    margin-top: 30px;
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #0C1657;
    /* Brand Navy */
}

.sidma-channel-guide ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

.guide-item {
    display: flex;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    transition: background 0.2s;
}

.guide-item:hover {
    background: #eef;
}

.guide-item.active {
    background: #0C1657;
    color: white;
}

.guide-num {
    font-weight: bold;
    margin-right: 15px;
    opacity: 0.7;
}

.tv-player-target {
    width: 100%;
    height: 100%;
    background: #000;
}

.tv-off-state {
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: monospace;
}