#tv-remote-container {
    text-align: center;
    font-family: Arial, sans-serif;
}

.tv-remote {
    display: inline-grid;
    grid-template-areas:
        "power power"
        "dpad volume"
        "nav nav";
    grid-gap: 15px;
    background: #222;
    padding: 20px;
    border-radius: 20px;
    color: white;
    max-width: 260px;
    justify-items: center;
}

.tv-btn {
    background: #444;
    border: none;
    color: white;
    font-size: 24px;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 5px rgba(0,0,0,0.5);
}

.tv-btn:hover {
    background: #666;
}

.tv-btn:active {
    background: #888;
}

.power {
    grid-area: power;
    width: 80px;
    height: 80px;
    font-size: 30px;
    background: #d32f2f;
}

.dpad {
    grid-area: dpad;
    display: grid;
    grid-template-columns: 60px 60px 60px;
    grid-template-rows: 60px 60px 60px;
    gap: 5px;
    justify-items: center;
}

.up { grid-column: 2; grid-row: 1; }
.left { grid-column: 1; grid-row: 2; }
.center { grid-column: 2; grid-row: 2; background: #1976d2; }
.right { grid-column: 3; grid-row: 2; }
.down { grid-column: 2; grid-row: 3; }

.volume {
    grid-area: volume;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vol-up, .vol-down {
    font-size: 20px;
}

.nav {
    grid-area: nav;
    display: flex;
    gap: 20px;
}

.back, .home {
    font-size: 28px;
}

.tv-status-message {
    margin-top: 10px;
    color: #666;
    min-height: 1.2em;
}