/* Basic reset. Keep it simple; older TV browsers choke on modern selectors. */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    color: #f0f0f0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 28px;
    line-height: 1.4;
    overflow: hidden;
}

* {
    box-sizing: border-box;
}

/* TV overscan safe area. Most TVs cut ~5% off each edge. */
.safe {
    position: absolute;
    top: 5%;
    left: 5%;
    right: 5%;
    bottom: 5%;
}

/* Header */
.header {
    padding-bottom: 20px;
    border-bottom: 2px solid #222;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 48px;
    margin: 0;
    color: #ffcc00;
    letter-spacing: 0.05em;
}

.header .sub {
    font-size: 20px;
    color: #888;
    margin-top: 8px;
}

/* Navigation menu. Use inline-block, not flex, for max compatibility. */
.nav {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0; /* removes inline-block whitespace */
}

.nav li {
    display: inline-block;
    font-size: 28px;
    margin-right: 20px;
}

.nav a,
.btn {
    display: inline-block;
    padding: 16px 28px;
    background: #1a1a1a;
    color: #f0f0f0;
    text-decoration: none;
    border: 3px solid #333;
    border-radius: 4px;
    outline: none;
}

/* Focus state for D-pad navigation. Bright and thick for TV visibility. */
.nav a:focus,
.btn:focus,
.card:focus,
a:focus {
    background: #ffcc00;
    color: #000;
    border-color: #fff;
    outline: none;
}

/* Content area */
.content {
    margin-top: 30px;
    padding-right: 20px;
    /* Vertical scroll fallback if needed. Most TVs handle this fine. */
    overflow-y: auto;
    max-height: 70%;
}

.content h2 {
    font-size: 36px;
    color: #ffcc00;
    margin: 0 0 20px 0;
}

.content p {
    font-size: 24px;
    color: #ddd;
    margin: 0 0 16px 0;
}

/* Cards / list items (focusable). */
.card {
    display: block;
    padding: 20px;
    margin-bottom: 16px;
    background: #1a1a1a;
    border: 3px solid #333;
    border-radius: 4px;
    color: #f0f0f0;
    text-decoration: none;
    outline: none;
}

.card .title {
    font-size: 28px;
    color: #ffcc00;
    margin: 0 0 8px 0;
}

.card .meta {
    font-size: 18px;
    color: #888;
}

/* Footer */
.footer {
    position: absolute;
    left: 5%;
    right: 5%;
    bottom: 2%;
    font-size: 16px;
    color: #555;
    border-top: 1px solid #222;
    padding-top: 10px;
}

