 @font-face {
     font-family: 'NewDetroit';
     src: url('../fonts/newdetroit.ttf') format('truetype');
     font-weight: normal;
     font-style: normal;
     font-display: swap;
 }

 * {
     box-sizing: border-box;
 }

 body {
     margin: 0;
     padding: 0;
     font-family: 'Inter', sans-serif;
     background-color: #000000;
     color: #ffffff;
     line-height: 1.6;
     transition: all 0.3s ease;
     min-height: 100vh;
     box-sizing: border-box;
     display: flex;
     flex-direction: column;
 }

 .page-wrapper {
     padding: 20px 20px 0px 20px;
     flex: 1;
     display: flex;
     flex-direction: column;
 }

 h1,
 h2,
 h3 {
     text-align: left;
     font-weight: 600;
     letter-spacing: -0.025em;
     font-family: 'NewDetroit', 'Inter', sans-serif;
 }

 h1 {
     font-size: 3rem;
     margin: 0 0 3rem 0;
     color: #ffffff;
     text-align: center;
     padding-top: 2rem;
     font-family: 'NewDetroit', 'Inter', sans-serif;
 }

 .video-container {
     position: relative;
     max-width: 1200px;
     margin: 0 auto;
     border-radius: 12px;
     overflow: hidden;
     box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
     transition: box-shadow 0.3s ease;
     width: 100%;
 }

 .video-container:hover {
     box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
 }

 #andromeda-player {
     width: 100%;
     height: auto;
     background: #000;
     border-radius: 12px;
     display: block;
     aspect-ratio: 16/9;
     object-fit: contain;
 }

 .click-to-play {
     position: absolute;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%);
     background: rgba(0, 0, 0, 0.0);
     color: #ffffff;
     padding: 32px 48px;
     cursor: pointer;
     font-size: 16px;
     font-weight: 500;
     z-index: 1000;
     transition: all 0.3s ease;
     text-align: center;
     min-width: 140px;
 }

 .click-to-play:hover {
     background: rgba(255, 255, 255, 0.0);
     transform: translate(-50%, -50%) scale(1.08);
 }

 .play-icon {
     font-size: 32px;
     margin-bottom: 8px;
     line-height: 1;
 }

 .play-text {
     font-size: 14px;
     font-weight: 600;
     text-transform: uppercase;
     letter-spacing: 1px;
 }

 #andromeda-player::-webkit-media-controls-panel {
     background-color: rgba(0, 0, 0, 0.8);
 }

 #andromeda-player::-webkit-media-controls-play-button,
 #andromeda-player::-webkit-media-controls-timeline,
 #andromeda-player::-webkit-media-controls-current-time-display,
 #andromeda-player::-webkit-media-controls-time-remaining-display {
     display: none !important;
 }

 video::-webkit-media-controls-overflow-button,
 video::-webkit-media-controls-overflow-menu-button,
 video::-webkit-media-controls-overflow-menu,
 video::-webkit-media-controls-panel .overflow-button,
 [pseudo="-webkit-media-controls-overflow-button"] {
     display: none !important;
     visibility: hidden !important;
     width: 0 !important;
     height: 0 !important;
     opacity: 0 !important;
 }

 .video-container {
     position: relative;
 }

 .video-section h2 {
     font-size: 1.75rem;
     margin-bottom: 1.5rem;
     color: #ffffff;
     text-align: left;
     font-weight: 600;
     letter-spacing: -0.025em;
     font-family: 'NewDetroit', 'Inter', sans-serif;
 }

 #andromeda-player {
     outline: none;
 }

 .video-container::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 50px;
     /* Leave space for controls */
     z-index: 10;
     pointer-events: auto;
     background: transparent;
 }

 #andromeda-player::-webkit-media-controls-panel {
     z-index: 20 !important;
 }

 #andromeda-player::-webkit-media-controls-overlay-enclosure {
     background: none !important;
 }

 #andromeda-player::-webkit-media-controls-enclosure {
     background: none !important;
     position: relative !important;
 }

 #andromeda-player::-webkit-media-controls-panel {
     position: absolute !important;
     bottom: 0 !important;
     left: 0 !important;
     right: 0 !important;
     background: transparent !important;
     height: 50px !important;
     display: flex !important;
     align-items: center !important;
     backdrop-filter: none !important;
 }

 #andromeda-player {
     --media-controls-overlay-background: transparent;
 }

 video::-webkit-media-controls-overlay-enclosure {
     background: none !important;
 }

 #andromeda-player::-webkit-media-controls-start-playback-button,
 #andromeda-player::-webkit-media-controls-overlay-play-button,
 video::-webkit-media-controls-start-playback-button,
 video::-webkit-media-controls-overlay-play-button {
     display: none !important;
     opacity: 0 !important;
     visibility: hidden !important;
 }

 #andromeda-player::before,
 #andromeda-player::after {
     display: none !important;
 }

 @media (max-width: 768px) {

     #andromeda-player::-webkit-media-controls-start-playback-button,
     #andromeda-player::-webkit-media-controls-overlay-play-button,
     video::-webkit-media-controls-start-playback-button,
     video::-webkit-media-controls-overlay-play-button {
         display: none !important;
         opacity: 0 !important;
         visibility: hidden !important;
         pointer-events: none !important;
     }
 }

 .guide-container h2 {
     font-size: 1.75rem;
     margin-bottom: 1.5rem;
     color: #ffffff;
     text-align: left;
     font-weight: 600;
     letter-spacing: -0.025em;
     font-family: 'NewDetroit', 'Inter', sans-serif;
 }

 .schedule-link {
     color: inherit;
     text-decoration: none;
     transition: color 0.3s ease;
 }

 .schedule-link:hover {
     color: #cccccc;
 }

 .program-list {
     border-radius: 12px;
     overflow: hidden;
     background: #111111;
     border: 1px solid #666666;
     box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
     transition: opacity 0.4s ease;
 }

 .program-list.updating {
     opacity: 0.3;
 }

 @keyframes slideInFromTop {
     from {
         opacity: 0;
         transform: translateY(-20px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 @keyframes slideOutToTop {
     from {
         opacity: 1;
         transform: translateY(0);
     }

     to {
         opacity: 0;
         transform: translateY(-20px);
     }
 }

 .program-item.entering {
     animation: slideInFromTop 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
 }

 .program-item.leaving {
     animation: slideOutToTop 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
 }

 .program-item.current.entering {
     animation: slideInFromTop 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
 }

 .program-item {
     background: #111111;
     border-bottom: 1px solid #333333;
     padding: 20px 24px;
     transition: all 0.3s ease;
     cursor: pointer;
     position: relative;
 }

 .program-item:last-child {
     border-bottom: none;
 }

 .program-item:hover {
     background-color: #222222;
     transform: translateY(-1px);
 }

 .program-item.current {
     background-color: rgba(255, 255, 255, 0.1);
     border-left: 4px solid #ffffff;
     box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
 }

 .program-item.current:hover {
     background-color: rgba(255, 255, 255, 0.15);
 }

 .program-header {
     display: flex;
     justify-content: space-between;
     align-items: flex-start;
     margin-bottom: 8px;
 }

 .program-title {
     font-weight: 600;
     font-size: 16px;
     color: #ffffff;
     margin: 0;
     line-height: 1.4;
     font-family: 'Inter', sans-serif;
 }

 .program-episode {
     font-size: 13px;
     color: #cccccc;
     margin: 4px 0 0 0;
     font-weight: 400;
     font-family: 'Inter', sans-serif;
 }

 .program-time {
     font-size: 13px;
     color: #cccccc;
     white-space: nowrap;
     margin-left: 20px;
     font-weight: 500;
     background: rgba(255, 255, 255, 0.1);
     padding: 4px 8px;
     border-radius: 6px;
     border: 1px solid rgba(255, 255, 255, 0.2);
 }

 .time-range {
     line-height: 1.2;
 }

 .date-info {
     font-size: 11px;
     color: #999999;
     margin-top: 2px;
     line-height: 1.2;
     font-weight: 400;
     text-align: right;
 }

 .program-description {
     max-height: 0;
     overflow: hidden;
     margin-top: 0;
     padding-top: 0;
     border-top: 1px solid transparent;
     color: #aaaaaa;
     line-height: 1.6;
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     opacity: 0;
     transform: translateY(-8px);
 }

 .program-item.expanded .program-description {
     max-height: 300px;
     margin-top: 16px;
     padding-top: 16px;
     border-top: 1px solid #666666;
     opacity: 1;
     transform: translateY(0);
 }

 .program-item {
     position: relative;
 }

 .live-badge {
     position: absolute;
     bottom: 12px;
     right: 24px;
     background: #ff4444;
     color: #ffffff;
     font-size: 10px;
     font-weight: 700;
     padding: 4px 8px;
     border-radius: 4px;
     letter-spacing: 0.5px;
     text-transform: uppercase;
     animation: pulse 2s infinite;
     z-index: 10;
 }

 @keyframes pulse {
     0% {
         opacity: 1;
     }

     50% {
         opacity: 0.7;
     }

     100% {
         opacity: 1;
     }
 }

 .program-item.no-description::after {
     display: none;
 }

 .loading {
     text-align: center;
     padding: 3rem;
     color: #cccccc;
     font-weight: 400;
     font-size: 14px;
 }

 .loading::before {
     content: '';
     display: inline-block;
     width: 20px;
     height: 20px;
     border: 2px solid #666666;
     border-top: 2px solid #ffffff;
     border-radius: 50%;
     animation: spin 1s linear infinite;
     margin-right: 12px;
     vertical-align: middle;
 }

 @keyframes spin {
     0% {
         transform: rotate(0deg);
     }

     100% {
         transform: rotate(360deg);
     }
 }

 .error {
     text-align: center;
     padding: 2rem;
     color: #ffffff;
     background-color: rgba(255, 255, 255, 0.1);
     border: 1px solid rgba(255, 255, 255, 0.3);
     border-radius: 8px;
     font-weight: 500;
 }

 .main-container {
     max-width: 1800px;
     margin: 0 auto;
     display: grid;
     gap: 2rem;
     grid-template-columns: 1fr;
     grid-template-areas: "video" "schedule";
     flex: 1;
 }

 .video-section {
     grid-area: video;
 }

 .schedule-section {
     grid-area: schedule;
 }

 .guide-container {
     margin: 0;
     padding: 0;
 }

 .guide-container h2 {
     margin-bottom: 1.5rem;
 }

 @media (min-width: 1200px) {
     .main-container {
         max-width: 2000px;
         grid-template-columns: 2fr 1fr;
         grid-template-areas: "video schedule";
         align-items: start;
         gap: 1.5rem;
     }

     .schedule-section {
         max-width: 600px;
         min-width: 450px;
     }

     .guide-container {
         max-height: 700px;
         display: flex;
         flex-direction: column;
     }

     .program-list {
         flex: 1;
         overflow-y: auto;
         min-height: 300px;
     }

     .program-list::-webkit-scrollbar {
         width: 8px;
     }

     .program-list::-webkit-scrollbar-track {
         background: #111111;
         border-radius: 4px;
     }

     .program-list::-webkit-scrollbar-thumb {
         background: #666666;
         border-radius: 4px;
     }

     .program-list::-webkit-scrollbar-thumb:hover {
         background: #888888;
     }
 }

 @media (min-width: 768px) and (max-width: 1199px) {
     .guide-container {
         max-width: 600px;
         margin: 0 auto;
     }

     .video-container {
         max-width: 600px;
     }

     #andromeda-player {
         max-width: 600px;
         width: 100% !important;
         height: auto !important;
     }
 }

 @media (max-width: 767px) {
     h1 {
         font-size: 2rem;
         padding-left: 0;
         margin-bottom: 1.5rem;
     }

     .main-container {
         gap: 2rem;
     }

     .guide-container {
         max-width: 600px;
         padding: 0;
     }

     .video-container {
         max-width: 600px;
     }
 }

 .footer {
     margin-top: auto;
     padding: 2rem 0 3rem 0;
     text-align: center;
     max-width: 1800px;
     margin-left: auto;
     margin-right: auto;
 }

 .footer-links {
     display: flex;
     justify-content: center;
     gap: 2rem;
     flex-wrap: wrap;
 }

 .footer-links a {
     color: #777777;
     text-decoration: none;
     font-weight: 500;
     transition: color 0.3s ease;
 }

 .footer-links a:hover {
     color: #ffffff;
 }