/***************************************
 * FONTS AND GLOBAL SETTINGS
 ***************************************/
/* Custom Prevue Channel font */
@font-face {
  font-family: 'PrevueChannel';
  src: url('fonts/PrevueC.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Updated from block to swap for better performance */
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #fff;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
}

/***************************************
 * COMMON UTILITY CLASSES
 ***************************************/
.text-shadow-standard {
    text-shadow: 1px 1px 1px rgba(0,0,0,0.7);
}

.prevue-font {
    font-family: 'PrevueChannel', monospace !important;
}

.border-retro {
    border-style: solid;
    border-width: 1px;
    border-color: #ffffff #000000 #000000 #ffffff;
}

/***************************************
 * CONTROL BUTTONS
 ***************************************/
/* Controls container */
.controls-container {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transform: scale(1); /* Override any inherited scaling */
    transform-origin: top right;
}

/* Scroll speed controls */
.speed-controls {
    display: flex;
    justify-content: space-between;
    gap: 3px;
    width: 80px;
}

.speed-controls button {
    background-color: #000080;
    color: #ffff00;
    border: 2px solid #ffff00;
    border-radius: 4px;
    padding: 5px 3px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    flex: 1;
}

.speed-controls button:hover {
    background-color: #00004d;
}

/* Pause button styling */
.pause-toggle {
    width: 100%;
    margin: 5px 0;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    padding: 8px;
}

.pause-toggle.paused {
    background-color: #660000;
    color: #ffffff;
    border: 2px solid #ff0000;
}

/***************************************
 * ADVERTISEMENT STYLES
 ***************************************/
/* Ad container styling */
.advertisement-container {
    display: flex;
    height: 50%;
    width: 100%;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    border-bottom: 2px solid #000;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.advertisement {
    padding: 10px;
    background-color: #000080; /* Navy blue background */
    color: #ffff00; /* Yellow text */
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    position: relative;
    margin: 0;
    width: 50%;
    height: 100%;
}

/* Square aspect ratio for video ad container */
.square-aspect {
    aspect-ratio: 1/1;
    max-height: 100%;
    width: 50%;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Individual ad content styling */
.ad-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    width: 100%;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 1s ease;
}

.ad-content.ad-fade-in {
    opacity: 1;
    animation: fadeInAd 1s ease forwards;
}

.ad-content.ad-fade-out {
    opacity: 0;
    animation: fadeOutAd 1s ease forwards;
}

@keyframes fadeInAd {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOutAd {
    from { opacity: 1; }
    to { opacity: 0; }
}

.ad-headline {
    font-family: 'PrevueChannel', Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffff00;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
}

.ad-subheadline {
    font-family: 'PrevueChannel', Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: normal;
    color: #ffffff;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-detail {
    font-family: 'PrevueChannel', Arial, sans-serif;
    font-size: 1rem;
    color: #00ffff; /* Cyan for details */
    margin: 0.3rem 0;
    letter-spacing: 0.5px;
}

.ad-call {
    font-family: 'PrevueChannel', Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff00ff; /* Magenta for call to action */
    margin: 0.3rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-phone {
    font-family: 'PrevueChannel', Arial, sans-serif;
    font-size: 1.1rem;
    color: #ffffff;
    margin: 0.2rem 0;
    letter-spacing: 0.5px;
}

.ad-company {
    font-family: 'PrevueChannel', Arial, sans-serif;
    font-size: 1.1rem;
    color: #ffffff;
    margin-top: 0.5rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Video ad styling */
.video-ad {
    background-color: #000;
    position: relative;
    overflow: hidden;
}

.video-ad video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/***************************************
 * CONTROL DRAWER SYSTEM
 ***************************************/
/* Control drawer container */
.controls-drawer {
    position: fixed;
    top: 0;
    right: -320px; /* Start off-screen */
    width: 300px;
    height: 100vh;
    background-color: rgba(0, 0, 32, 0.9);
    border-left: 2px solid #ffff00;
    transition: right 0.3s ease-in-out;
    z-index: 9999;
    padding: 15px 10px;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

/* When drawer is open */
.controls-drawer.open {
    right: 0;
}

/* Edge panel that triggers the drawer */
.drawer-edge-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 20px;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: 9998;
    cursor: pointer;
    transition: background-color 0.4s ease;
    opacity: 0.9;
}

.drawer-edge-panel:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Edge panel indicator */
.drawer-edge-panel::after {
    content: "⚙";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 0, 0.4);
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drawer-edge-panel:hover::after {
    opacity: 1;
}

/* Drawer header */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ffff00;
}

.drawer-title {
    color: #ffff00;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px #000000;
    font-family: Arial, sans-serif;
}

.drawer-close {
    color: #ffff00;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 80, 0.5);
    border-radius: 2px;
}

.drawer-close:hover {
    background-color: rgba(0, 0, 120, 0.8);
}

/* Scrollbar styling for the drawer */
.controls-drawer::-webkit-scrollbar {
    width: 8px;
}

.controls-drawer::-webkit-scrollbar-track {
    background: rgba(0, 0, 40, 0.3);
}

.controls-drawer::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 0, 0.3);
    border-radius: 4px;
}

.controls-drawer::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 0, 0.5);
}

/* Sections for grouped controls */
.drawer-sections {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.drawer-section {
    margin-bottom: 20px;
}

.section-heading {
    color: #ffff00;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 0, 0.3);
    padding-bottom: 5px;
    text-transform: uppercase;
}

/* Improved control drawer styling */
.control-panel {
    background-color: rgba(0, 0, 128, 0.3);
    border: 1px solid rgba(255, 255, 0, 0.3);
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
}

.control-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 0, 0.2);
}

.control-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.control-group label {
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 5px;
}

.control-group input[type="range"] {
    width: 100%;
    margin: 8px 0;
    background-color: rgba(0, 0, 40, 0.5);
}

.control-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.control-button {
    background-color: #000080;
    color: #ffff00;
    border: 1px solid #ffff00;
    border-radius: 4px;
    padding: 5px 10px;
    margin: 5px 0;
    font-family: Arial, sans-serif;
    cursor: pointer;
    font-size: 14px;
}

.control-button:hover {
    background-color: #00004d;
}

/* Scroll speed controls */
.scroll-speed-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    margin: 5px 0;
}

.speed-btn {
    background-color: #000080;
    color: #ffff00;
    border: 1px solid #ffff00;
    border-radius: 4px;
    width: 25px;
    height: 25px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.speed-display-value {
    background-color: #000033;
    color: #ffff00;
    border: 1px solid #ffff00;
    border-radius: 2px;
    padding: 3px 8px;
    text-align: center;
    margin: 5px 0;
    font-family: monospace;
    font-size: 14px;
}

.reset-btn {
    background-color: #000080;
    color: #ffff00;
    border: 1px solid #ffff00;
    border-radius: 4px;
    padding: 3px 8px;
    margin-top: 5px;
    font-size: 12px;
    cursor: pointer;
    align-self: flex-end;
}

/* Keyboard shortcuts */
.shortcuts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shortcuts-list li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #ffffff;
}

.shortcut-key {
    background-color: #000080;
    color: #ffff00;
    border: 1px solid #ffff00;
    border-radius: 3px;
    padding: 2px 6px;
    margin-right: 10px;
    font-family: monospace;
    min-width: 20px;
    text-align: center;
}

.shortcut-desc {
    font-size: 14px;
}

/* Panel styling inside sections */
.drawer-section .visual-effects-panel,
.drawer-section .audio-content-panel,
.drawer-section .video-controls-panel,
.drawer-section .speed-display {
    background-color: rgba(0, 0, 128, 0.3);
    border: 1px solid rgba(255, 255, 0, 0.3);
    padding: 10px;
    border-radius: 4px;
}

/* Make inputs and selects fill width */
.controls-drawer select,
.controls-drawer input[type="range"] {
    width: 70%;
}

/* Labels inside sections */
.drawer-section label {
    color: #ffffff;
    font-size: 12px;
}

/***************************************
 * VISUAL FILTERS
 ***************************************/
/* Filter: None (default) */
.filter-none {
    box-shadow: none;
    filter: none;
}

/* Filter: Vintage TV */
.filter-vintage-tv {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px 5px rgba(0, 0, 0, 0.7);
}

.filter-vintage-tv::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: 
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 20;
    opacity: 0.85;
}

.filter-vintage-tv::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: 
        radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.4) 100%),
        repeating-linear-gradient(transparent 0px, rgba(0, 0, 0, 0.1) 1px, transparent 2px);
    box-shadow: inset 0 0 100px rgba(0, 30, 60, 0.15);
    opacity: 0.4;
    z-index: 20;
    pointer-events: none;
    animation: enhanced-flicker 0.12s infinite, enhanced-jitter 1s infinite;
}

/***************************************
 * ANIMATIONS AND EFFECTS
 ***************************************/
/* Blinking text effect */
@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.blink {
    animation: blink 1s infinite;
}

/* Advertisement animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.ad-exit {
    animation: fadeOut 0.5s forwards;
}

.ad-enter {
    animation: fadeIn 0.5s forwards;
}

/* Animation Keyframes for Vintage TV filter */
@keyframes enhanced-flicker {
    0% { opacity: 0.3; }
    10% { opacity: 0.4; }
    20% { opacity: 0.5; }
    30% { opacity: 0.4; }
    40% { opacity: 0.3; }
    42% { opacity: 0.5; }
    44% { opacity: 0.3; }
    46% { opacity: 0.4; }
    48% { opacity: 0.2; }
    50% { opacity: 0.5; }
    60% { opacity: 0.3; }
    70% { opacity: 0.5; }
    80% { opacity: 0.4; }
    90% { opacity: 0.3; }
    92% { opacity: 0.6; }
    94% { opacity: 0.3; }
    96% { opacity: 0.5; }
    100% { opacity: 0.4; }
}

@keyframes enhanced-jitter {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-1px) translateY(0); }
    12% { transform: translateX(1px) translateY(-1px); }
    14% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(0) translateY(0); }
    52% { transform: translateX(-1px) translateY(0); }
    54% { transform: translateX(0) translateY(0); }
    80% { transform: translateX(0) translateY(0); }
    82% { transform: translateX(1.5px) translateY(0.5px); }
    84% { transform: translateX(-0.5px) translateY(-0.5px); }
    86% { transform: translateX(0) translateY(0); }
}

/***************************************
 * LAYOUT AND CONTAINERS
 ***************************************/
/* Main container */
.container {
    position: absolute; /* Position absolute for proper scaling */
    overflow: hidden;
    box-sizing: border-box;
    width: 1024px !important;
    height: 768px !important;
    display: flex;
    flex-direction: column;
    background-color: #000;
    transform-origin: top left;
}

/* Fixed aspect ratio container */
.aspect-4-3 {
    width: 1024px;
    height: 768px;
    margin: 0;
    aspect-ratio: 4/3;
}

/***************************************
 * TIME BAR AND LISTINGS
 ***************************************/
/* Listings section container */
.listings-section {
    height: 50%;
    display: flex;
    flex-direction: column;
    font-family: 'PrevueChannel', monospace !important;
}

/* Time bar */
.time-bar {
    position: relative;
    z-index: 15;
    height: 45px;
    display: flex;
    background-color: #000;
    margin: 0;
    padding: 0;
    font-family: 'PrevueChannel', monospace !important;
    font-weight: 500;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.7);
    width: 100%;
    overflow: hidden; /* Contain headers during transition */
}

.current-time {
    width: 150px;
    background-color: #4962c3;
    color: #ffffff;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 25px;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 1);
    border-width: 4px;
    border-style: solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    box-sizing: border-box;
    margin: 0;
    padding: 4px 0 0 0;
    line-height: normal;
    vertical-align: middle;
    font-family: 'PrevueChannel', monospace !important;
}

.time-slots-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
    width: calc(100% - 150px);
    position: relative; /* For absolute positioning of headers */
}

/* Time header base styles */
.time-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 1s ease-in-out;
    background-color: #4962c3; /* Match background with time-slot */
}

/* Time slot styling */
.time-slot {
    flex: 1;
    border-width: 4px;
    border-style: solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    color: #ffff00; /* Changed to yellow like channel numbers */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    padding: 4px 0 0 0;
    box-sizing: border-box;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 2px rgba(0,0,0,1); /* Matched with live clock */
    text-align: center;
    overflow: hidden;
}

/* Visible header styling */
.visible-header {
    z-index: 2;
    opacity: 1;
}

/* Hidden header styling */
.hidden-header {
    z-index: 1;
    opacity: 0; /* Make hidden header completely transparent */
}

/* Time header row in listings for transitions */
.time-header-row-wrapper {
    display: flex;
    height: 61px; /* Same height as channel rows */
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
}

.time-slots-row {
    display: flex;
    flex: 1;
    background-color: #4962c3; /* Same as time header */
}

/* Specific styling for the time header in the listings */
.time-header-row {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Additional styling for the test button */
.time-debug-btn {
    margin: 2px !important;
}

/* Date row */
.date-row {
    display: flex;
    height: 35px;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'PrevueChannel', monospace !important;
}

.date-display {
    flex-grow: 1;
    background-color: #00004d;
    color: #ffff00;
    font-weight: 500;
    font-size: 25px;
    letter-spacing: 0.5px;
    font-family: 'PrevueChannel', monospace !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-width: 4px;
    border-style: solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    box-sizing: border-box;
    padding: 8px 0 0 0;
    line-height: normal;
    vertical-align: middle;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.7);
    margin: 0;
}

.channel-info.empty {
    background-color: #00004d;
    border-color: #ffffff #000000 #000000 #ffffff;
    margin: 0;
    padding: 0;
}

/* Listings container */
.listings-container {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
    height: 339px; /* Fixed height - half of 768px (384px) minus the time-bar (45px) */
}

.listings {
    position: absolute;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Channel rows and info */
.channel-row {
    display: flex;
    height: 61px; /* Fixed height: 339px / 6 rows */
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
}

.channel-info {
    width: 150px !important;
    min-width: 150px;
    max-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #000080;
    padding: 0;
    border-width: 4px;
    border-style: solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    box-sizing: border-box;
    margin: 0;
    font-family: PrevueChannel !important;
    overflow: hidden;
}

.channel-number {
    color: #ffff00;
    font-weight: 500;
    font-size: 25px;
    height: 50%;
    max-height: 28.25px;
    letter-spacing: 0.5px;
    line-height: normal;
    margin: 0;
    padding: 9px 0 0 0;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
    font-family: PrevueChannel !important;
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.channel-name {
    color: #ffff00;
    font-size: 25px;
    height: 50%;
    max-height: 28.25px;
    letter-spacing: 0.5px;
    font-weight: 500;
    text-align: center;
    line-height: normal;
    padding: 2px 0 0 0;
    font-family: PrevueChannel !important;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.channel-programs {
    display: flex;
    flex-grow: 1;
    background-color: #000;
    height: 100%;
}

/* Program styling */
.program {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: PrevueChannel !important;
    letter-spacing: 0.5px;
    color: #fff;
    border-width: 4px;
    border-style: solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    box-sizing: border-box;
    margin: 0;
    flex: 1;
    overflow: hidden;
}

.program-text {
    width: 100%;
    height: 100%;
    padding: 4px 4px;
    white-space: normal;
    overflow: hidden;
    box-sizing: border-box;
    font-size: 24px;
    line-height: 1.05;
    font-weight: 500;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.7);
    display: block;
}

/* Program type color coding */
:root {
    --color-general: #00004d;
    --color-children: #0077bb;
    --color-sports: #006600;
    --color-movie-ppv: #660066;
    --color-movie: #990000;
    --color-special: #cc9900;
    --color-highlight: #003366;
}

.program-general {
    background-color: var(--color-general);
}

.program-children {
    background-color: var(--color-children);
}

.program-sports {
    background-color: var(--color-sports);
}

.program-movie-ppv {
    background-color: var(--color-movie-ppv);
}

.program-movie {
    background-color: var(--color-movie);
}

.program-special {
    background-color: var(--color-special);
}

.highlight-row {
    background-color: var(--color-highlight);
}

.highlight-row .program {
    background-color: var(--color-highlight);
    border-color: #ffffff #000000 #000000 #ffffff;
}

/***************************************
 * LOADING SCREEN
 ***************************************/
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000080;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    border: 5px solid rgba(255, 255, 0, 0.3);
    border-radius: 50%;
    border-top: 5px solid #ffff00;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #ffff00;
    font-family: 'PrevueChannel', monospace;
    font-size: 24px;
    text-shadow: 2px 2px 2px rgba(0,0,0,0.7);
}

/***************************************
 * ERROR NOTIFICATION
 ***************************************/
.error-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(153, 0, 0, 0.9);
    border: 2px solid #ffff00;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 10000;
    display: none;
    font-family: Arial, sans-serif;
    max-width: 80%;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.error-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.error-message {
    margin-right: 15px;
    font-size: 14px;
}

.error-close {
    background: none;
    border: none;
    color: #ffff00;
    font-size: 16px;
    cursor: pointer;
    padding: 0 5px;
}

.error-close:hover {
    color: white;
}

/***************************************
 * PROJECT INFORMATION FOOTER
 ***************************************/
.project-info-footer {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    border-width: 4px;
    border-style: solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    background-color: #004466;
    margin: 0;
    padding: 5px 10px;
    height: auto;
    max-height: 244px;
    overflow: hidden;
}

.footer-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    font-family: 'PrevueChannel', monospace !important;
    color: #ffffff;
    line-height: 1.2;
}

.footer-title {
    color: #ffff00;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.7);
}

.footer-text {
    font-size: 20px;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.7);
    margin: 0;
    padding: 0;
}

.footer-contact {
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
}

.footer-website, .footer-email {
    color: #ffff00;
    font-size: 20px;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.7);
}

/* Font fallback if PrevueC fails to load */
.font-fallback .program,
.font-fallback .time-bar,
.font-fallback .channel-number,
.font-fallback .channel-name,
.font-fallback .date-display {
    font-family: "Courier New", monospace !important;
}

/* Hide responsive elements - these are not needed for fixed layout */
.responsive,
.container.responsive,
.wide-only,
.extra-wide-only,
.video-controls,
.play-button {
    display: none !important;
}
