 @font-face {
     font-family: 'Ferrari Sans';
     src: url('fonts/Ferrari-SansRegular.eot');
     src: url('fonts/Ferrari-SansRegular.eot?#iefix') format('embedded-opentype'),
         url('fonts/Ferrari-SansRegular.woff2') format('woff2'),
         url('fonts/Ferrari-SansRegular.woff') format('woff'),
         url('fonts/Ferrari-SansRegular.ttf') format('truetype'),
         url('fonts/Ferrari-SansRegular.svg#Ferrari-SansRegular') format('svg');
     font-weight: 400;
     font-style: normal;
     font-display: swap;
 }

 @font-face {
     font-family: 'Ferrari Sans';
     src: url('fonts/Ferrari-SansMedium.eot');
     src: url('fonts/Ferrari-SansMedium.eot?#iefix') format('embedded-opentype'),
         url('fonts/Ferrari-SansMedium.woff2') format('woff2'),
         url('fonts/Ferrari-SansMedium.woff') format('woff'),
         url('fonts/Ferrari-SansMedium.ttf') format('truetype'),
         url('fonts/Ferrari-SansMedium.svg#Ferrari-SansMedium') format('svg');
     font-weight: 500;
     font-style: normal;
     font-display: swap;
 }

 @font-face {
     font-family: 'Ferrari Sans';
     src: url('fonts/Ferrari-SansBold.eot');
     src: url('fonts/Ferrari-SansBold.eot?#iefix') format('embedded-opentype'),
         url('fonts/Ferrari-SansBold.woff2') format('woff2'),
         url('fonts/Ferrari-SansBold.woff2') format('woff2'),
         url('fonts/Ferrari-SansBold.woff') format('woff'),
         url('fonts/Ferrari-SansBold.ttf') format('truetype'),
         url('fonts/Ferrari-SansBold.svg#Ferrari-SansBold') format('svg');
     font-weight: 700;
     font-style: normal;
     font-display: swap;
 }

 :root {
     --bg-main: #000000;
     --bg-card: #121212;
     --bg-lyrics: #1f1f1f;
     --text-main: #FFFFFF;
     --text-muted: #8e8e93;
     --ferrari-red: #ED1C24;
     --font-ferrari: 'Ferrari Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
 }

 * {
     box-sizing: border-box;
     margin: 0;
     padding: 0;
     -webkit-tap-highlight-color: transparent;
 }

 body {
     font-family: var(--font-ferrari);
     background-color: var(--bg-main);
     color: var(--text-main);
     min-height: 100vh;
     display: flex;
     flex-direction: column;
     align-items: center;
     -webkit-font-smoothing: antialiased;
     overflow-x: hidden;
     overflow-y: auto;
 }

 .d-none {
     display: none;
 }

 .view-container {
     display: none;
     flex-direction: column;
     width: 100%;
     max-width: 420px;
     min-height: 100vh;
     background-color: var(--bg-main);
     position: relative;
     /* animation: fadeIn 0.3s ease; */
     z-index: 10;
 }

 .view-container.active {
     display: flex;
 }

 @keyframes fadeIn {
     from {
         opacity: 0;
         transform: translateY(5px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }


 .header-hero,
 .player-hero-bg {
     position: relative;
     width: 100%;
     height: 250px;
     background-image: url('https://theredhotice.com/Ferrari/images/header-image.png');
     background-repeat: no-repeat;
     background-size: 100% auto;
     background-position: center top;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: flex-end;
     padding-bottom: 20px;
     text-align: center;
 }

 .header-hero-content {
     z-index: 2;
     width: 100%;
 }

 .logo-bx {
     width: 26px;
     position: absolute;
     top: 28px;
     left: 50%;
     transform: translateX(-50%);
     z-index: 100;
 }

 .logo-bx img {
     width: 100%;
     height: auto;
     display: block;
 }

 .lyrics-logo {
     position: fixed;
     top: 28px;
     left: 50%;
     transform: translateX(-50%);
     z-index: 100;
 }

 .hero-title {
     font-family: var(--font-ferrari);
     font-weight: 500;
     font-size: 1.2rem;
     text-transform: uppercase;
     line-height: 1;
 }

 .hero-subtitle {
     font-family: var(--font-ferrari);
     font-weight: 400;
     font-size: 0.8rem;
     color: white;
 }

 .list-header-text {
     display: flex;
     justify-content: center;
     align-items: center;
     margin: 20px auto;
     width: 50%;
 }

 .list-header-text img {
     width: 100%;
     height: auto;
     display: block;
 }

 .list-container {
     padding: 0 15px 40px 15px;
     display: flex;
     flex-direction: column;
     gap: 4px;
     scrollbar-width: none;
     overflow: visible;
     height: auto;
     flex-shrink: 0;
 }

 .list-container::-webkit-scrollbar {
     display: none;
 }

 #view-player {
     overflow: hidden;
 }

 .ep-card {
     /* background: linear-gradient(to bottom, #303030 0%, #1e1e1e 100%); */
     background: #303030 url(../images/bg-tab.jpg) repeat-x left bottom;
     border-radius: 16px;
     padding: 18px 20px;
     /* display: flex; */
     display: grid;
     grid-template-columns: 50px 1fr;
     align-items: center;
     gap: 23px;
     cursor: pointer;
     min-height: 75px;
 }

 .ep-number {
     margin: 0 auto;
     display: flex;
     align-items: center;
     justify-content: center;
     box-sizing: border-box;
     width: 80%;

 }

 .ep-number .episode-number-svg {
     display: block;
     width: 100%;
     height: auto;
     object-fit: contain;
 }

 .ep-details {
     /* flex-grow: 1; */
 }

 .ep-title {
     font-family: var(--font-ferrari);
     font-weight: bold;
     font-size: 0.8rem;
     text-transform: uppercase;
     line-height: 1.2;
     letter-spacing: 0.5px;
 }

 .ep-sub {
     font-family: var(--font-ferrari);
     font-weight: 500;
     color: var(--text-muted);
     font-size: 11px;
     margin-top: 4px;
 }

 .player-hero-bg::before {
     display: none;
 }

 .player-card {
     background-color: var(--bg-main);
     border-top-left-radius: 36px;
     border-top-right-radius: 36px;
     margin-top: 30%;
     position: fixed;
     max-width: 420px;
     z-index: 2;
     padding: 12px 22px 25px 22px;
     display: flex;
     flex-direction: column;
     align-items: center;
     flex-grow: 1;
     touch-action: none;
     will-change: transform;
     transition: transform 0.2s ease-out;
 }

 .player-top-bar {
     position: fixed;
     top: 1vh;
     left: 0;
     width: 100%;
     height: 80px;
     padding: 20px;
     z-index: 20;
     display: flex;
     align-items: center;
     justify-content: space-between;
 }

 .back-btn {
     position: absolute;
     top: auto;
     left: auto;
     right: auto;
     background: none;
     border: none;
     color: white;
     font-size: 12px;
     font-weight: 500;
     cursor: pointer;
     display: flex;
     align-items: center;
     gap: 8px;
     font-family: var(--font-ferrari);
     z-index: 21;
     padding: 4px;
 }

 .back-icon {
     height: 28px;
     width: auto;
     display: block;
 }

 .back-circle {
     width: 32px;
     height: 32px;
     border-radius: 50%;
     background-color: var(--ferrari-red);
     display: flex;
     align-items: center;
     justify-content: center;
     color: white;
     font-size: 1.2rem;
     font-weight: 500;
     line-height: 1;
     padding-bottom: 2px;
     padding-right: 2px;
 }

 .top-logo {
     height: 39px;
     width: auto;
     position: absolute;
     left: 50%;
     margin-top: 28px;
     transform: translateX(-50%);
     filter: brightness(0) invert(1);
 }

 .player-card.dragging {
     transition: none !important;
 }



 .player-ep-num {
     margin-top: 12px;
     margin-bottom: 12px;
     display: flex;
     align-items: center;
     justify-content: center;
     box-sizing: border-box;
 }

 .player-ep-num .episode-number-svg {
     display: block;
     width: 100%;
     height: 100%;
     max-width: 45px;
     max-height: 45px;
     object-fit: contain;
 }

 .player-title {
     font-family: var(--font-ferrari);
     font-size: 20px;
     font-weight: 500;
     text-transform: uppercase;
     line-height: 1.1;
     text-align: center;
 }

 .player-subtitle {
     font-family: var(--font-ferrari);
     font-weight: 500;
     color: #a0a0a0;
     font-size: 14px;
     margin-top: 6px;
     text-align: center;
 }

 .scrubber-container {
     width: 100%;
     padding: 0 4px;
     margin-top: 28px;
 }

 .scrubber-bar {
     width: 100%;
     height: 3px;
     background: #ffffff;
     position: relative;
     cursor: pointer;
 }

 .scrubber-fill {
     height: 100%;
     background: var(--ferrari-red);
     width: 0%;
     position: relative;
 }

 .scrubber-handle {
     position: absolute;
     right: -2px;
     top: -4px;
     width: 4px;
     height: 11px;
     background-color: #ffffff;
 }

 .time-display {
     display: flex;
     justify-content: space-between;
     font-size: 11px;
     color: #ffffff;
     margin-top: 10px;
     font-family: var(--font-ferrari);
     font-weight: 500;
 }

 .controls {
     display: flex;
     justify-content: center;
     align-items: center;
     gap: 15px;
     margin: 22px 0 28px 0;
 }

 .ctrl-btn {
     background: none;
     border: none;
     color: white;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;

 }

 .ctrl-btn svg {
     width: 72px;
     height: 55px;
     fill: white;
 }

 .play-btn {
     width: 72px;
     height: 72px;
     background: white;
     border-radius: 50%;
     display: flex;
     justify-content: center;
     align-items: center;
     cursor: pointer;
     border: none;
     transition: transform 0.1s ease;
 }

 .play-btn:active {
     transform: scale(0.96);
 }

 .play-btn svg {
     width: 50px;
     height: 50px;
     fill: black;
     margin-left: 3px;
 }

 .play-btn.paused svg {
     margin-left: 0;

 }

 .lyrics-box {
     background: linear-gradient(to bottom, #303030 0%, #1e1e1e 100%);
     ;
     border-radius: 24px;
     padding: 24px 22px;
     width: 100%;
     flex-grow: 1;
     min-height: 245px;
     max-height: 250px;
     overflow-y: auto;
     scroll-behavior: smooth;
     font-family: var(--font-ferrari);
     -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
     mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
     scrollbar-width: none;
 }

 .lyrics-box::-webkit-scrollbar {
     display: none;
 }

 .lyric-line {
     font-size: 1.35rem;
     color: #666666;
     font-weight: 500;
     margin-bottom: 10px;
     transition: color 0.3s ease;
     line-height: 1.2;
     letter-spacing: -0.3px;
 }

 .lyric-line.active {
     color: #FFFFFF;
     font-weight: 500;
 }

 .admin-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 20px;
     background: #111;
     border-bottom: 2px solid var(--ferrari-red);
     font-family: var(--font-ferrari);
 }

 .admin-title {
     font-size: 1.2rem;
     font-weight: bold;
     text-transform: uppercase;
 }

 .admin-close {
     background: none;
     border: 1px solid #555;
     color: white;
     padding: 5px 12px;
     border-radius: 5px;
     cursor: pointer;
     font-family: var(--font-ferrari);
 }

 .dashboard-content {
     padding: 20px;
     overflow-y: auto;
     flex-grow: 1;
     font-family: var(--font-ferrari);
 }

 .stats-card {
     background: var(--bg-card);
     border-radius: 10px;
     padding: 15px;
     margin-bottom: 20px;
     text-align: center;
     border: 1px solid #333;
 }

 .stats-number {
     font-size: 2.5rem;
     color: var(--ferrari-red);
     font-weight: 500;
 }

 .stats-label {
     font-size: 0.8rem;
     color: var(--text-muted);
     text-transform: uppercase;
     letter-spacing: 1px;
 }

 .data-table {
     width: 100%;
     border-collapse: collapse;
     margin-top: 10px;
     font-size: 0.85rem;
 }

 .data-table th,
 .data-table td {
     padding: 12px 8px;
     text-align: left;
     border-bottom: 1px solid #333;
 }

 .data-table th {
     color: var(--ferrari-red);
     text-transform: uppercase;
     font-size: 0.75rem;
     font-weight: 500;
 }

 .data-table td {
     color: #ddd;
 }

 .clear-btn {
     background: var(--ferrari-red);
     color: white;
     border: none;
     padding: 10px;
     width: 100%;
     border-radius: 5px;
     cursor: pointer;
     font-weight: 500;
     margin-top: 20px;
     font-family: var(--font-ferrari);
 }

 .player-header {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     background: linear-gradient(to bottom, #000 0%, transparent 100%);
     z-index: 1;
     height: 15vh;
 }

 .legal-footer {
     width: 100%;
     padding: 25px;
     margin-top: 15px;
     text-align: center;
     font-family: var(--font-ferrari);
     border-top: 1px solid rgba(143, 143, 143, 0.7);
 }

 .legal-title {
     color: #8f8f8f;
     font-size: 9px;
     font-weight: 500;
     letter-spacing: 1px;
     text-transform: uppercase;
     margin-bottom: 18px;
 }

 .legal-content {
     max-width: 380px;
     margin: 0 auto;
 }

 .legal-content p {
     color: #8f8f8f;
     font-size: 7px;
     font-weight: 400;
     line-height: 1.55;
     margin: 0 0 18px;
     text-decoration: none;
 }

 .legal-content a {
     color: #8f8f8f;
     text-decoration: underline;
 }

 .legal-content .copyright {
     color: #8f8f8f;
     margin-bottom: 0;
 }