* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #e0e0e0;
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c0c0c0' fill-opacity='0.4'%3E%3Cpath fill-rule='evenodd' d='M3 0h1v1H3V0zm0 3h1v1H3V3z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
    min-height: 100vh;
    color: #000;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
}

.header {
    margin-bottom: 20px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000080;
    border: 3px solid #000;
    padding: 15px;
    box-shadow: 5px 5px 0px #000;
    border-radius: 0;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.google-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 3rem;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: 3px 3px 0px #000;
    letter-spacing: 2px;
}

.tv-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 3rem;
    font-weight: bold;
    color: #FFFF00;
    text-shadow: 3px 3px 0px #000;
    letter-spacing: 2px;
}

.beta-badge {
    background: #FF0080;
    color: #FFFF00;
    padding: 8px 12px;
    border: 2px solid #000;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin-left: 8px;
    border-radius: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    text-shadow: 1px 1px 0px #000;
}

.user-section {
    margin-top: 0;
    padding: 12px 16px;
    background: #c0c0c0;
    border: 2px solid #000;
    font-weight: bold;
    color: #000;
    border-radius: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    box-shadow: 2px 2px 0px #000;
}

.user-greeting {
    color: #000;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    text-shadow: 1px 1px 0px #FFFFFF;
}

.sign-in-btn {
    background: #008000;
    color: #FFFFFF;
    border: 2px solid #000;
    padding: 10px 16px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    margin-left: 10px;
    border-radius: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    box-shadow: 2px 2px 0px #000;
    text-shadow: 1px 1px 0px #000;
}

.sign-in-btn:hover {
    background: #00AA00;
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px #000;
}

.main-content {
    background-color: #FFFFFF;
    border: 3px solid #000;
    padding: 25px;
    border-radius: 0;
    box-shadow: 8px 8px 0px #000;
}

.step h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 2rem;
    color: #FF0000;
    font-weight: bold;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    letter-spacing: 2px;
    text-shadow: 3px 3px 0px #000;
}

.channels-grid, .shows-grid, .episodes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.channel-card, .show-card, .episode-card {
    flex: 0 0 calc(33.33% - 10px);
    min-width: 200px;
    background-color: #FFFFC0;
    border: 3px solid #000;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0px #000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.channel-card:hover, .show-card:hover, .episode-card:hover {
    border: 3px solid #0000FF;
    background-color: #FFFF80;
    box-shadow: 6px 6px 0px #000;
    transform: none;
}

.channel-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
    border: 2px solid #000;
    filter: saturate(1.5) contrast(1.2);
    image-rendering: pixelated;
}

.channel-card h3, .show-card h3, .episode-card h3 {
    color: #000;
    font-weight: bold;
    margin-bottom: 5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px #FFFF00;
    font-size: 1.1rem;
}

.unavailable {
    opacity: 0.8;
    background-color: #c0c0c0;
    cursor: not-allowed;
    position: relative;
    filter: grayscale(50%);
}

.unavailable::after {
    content: "NOT AVAILABLE";
    position: absolute;
    top: 5px;
    right: 5px;
    background: linear-gradient(45deg, #FF0000, #800000);
    color: #FFFFFF;
    padding: 6px 10px;
    border: 2px solid #000;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    border-radius: 0;
    transform: rotate(-5deg);
    box-shadow: 2px 2px 0px #000;
    text-shadow: 1px 1px 0px #000;
}

.unavailable:hover {
    border: 3px solid #808080;
    background-color: #d0d0d0;
    box-shadow: 4px 4px 0px #000;
    transform: none;
}

.episode-card p {
    color: #000080;
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: bold;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    text-shadow: 1px 1px 0px #c0c0c0;
}

.back-btn {
    background-color: #c0c0c0;
    color: #000;
    border: 2px solid #000;
    padding: 10px 16px;
    cursor: pointer;
    margin-bottom: 15px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    box-shadow: 3px 3px 0px #000;
    text-shadow: 1px 1px 0px #FFFFFF;
}

.back-btn:hover {
    background-color: #d0d0d0;
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px #000;
}

.progress-message {
    text-align: center;
    background-color: #FFFFC0;
    border: 3px solid #000;
    padding: 30px;
    border-radius: 0;
    margin: 20px auto;
    max-width: 400px;
    box-shadow: 6px 6px 0px #000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.progress-message h3 {
    color: #FF0000;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px #000;
}

.progress-message p {
    color: #000080;
    font-size: 1rem;
    font-weight: bold;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    text-shadow: 1px 1px 0px #c0c0c0;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .google-text, .tv-text {
        font-size: 2.2rem;
    }
    
    .header-top {
        flex-direction: column;
        gap: 10px;
    }
    
    .channel-card, .show-card, .episode-card {
        flex: 0 0 100%;
        min-width: auto;
    }
}