/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --primary-color: #ea638c;
    --primary-hover: #f47a9f;
    --background-color: #000000;
    --text-color: #ffffff;
    --secondary-color: #1A1A1A;
    --separator-color: #282828;
    --hover-bg: rgba(255, 255, 255, 0.05);
    --button-secondary: transparent;
    --button-secondary-hover: rgba(255, 255, 255, 0.1);
    --header-height: 80px;
    --apple-music-color: #fc3c44;
    --spotify-color: #1DB954;
    --deezer-color: #FF6600;
    --delete-color: #dc3545;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* ============================================
   HEADER STYLES
   ============================================ */
.main-header {
    background-color: white;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

.header-content {
    max-width: 100%;
    margin: 0;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header-title {
    color: var(--background-color);
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.level-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.level-icon {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.level-name {
    font-size: 14px;
    color: var(--background-color);
    font-weight: 600;
}

/* ============================================
   MAIN LAYOUT - TWO COLUMN GRID WITH FIXED HEIGHT
   ============================================ */
.app-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 700px 1fr;
    gap: 1px;
    height: calc(100vh - var(--header-height));
    background-color: var(--separator-color);
}

/* ============================================
   PLAYER COLUMN (LEFT) - NEW LAYOUT
   ============================================ */
.player-column {
    display: flex;
    flex-direction: column;
    background-color: var(--background-color);
    padding: 30px;
    overflow-y: auto;
}

.player-column::-webkit-scrollbar {
    width: 8px;
}

.player-column::-webkit-scrollbar-track {
    background: transparent;
}

.player-column::-webkit-scrollbar-thumb {
    background: var(--separator-color);
    border-radius: 4px;
}

.player-column::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.player-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Station Header with Share Button */
.station-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--separator-color);
}

.station-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.station-name-title {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
}

.station-name-title.welcome-text {
    background: linear-gradient(45deg, var(--primary-color), #A7ABDD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.btn-share-header {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--separator-color);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn-share-header:hover {
    background-color: var(--button-secondary-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Streaming Indicator */
.streaming-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: visible;
    height: 24px;
    width: 50px;
    flex-shrink: 0;
}

.streaming-indicator.active {
    visibility: visible;
}

.streaming-dots {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.streaming-dots .dot {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

.streaming-indicator.active .streaming-dots .dot {
    animation: streamingPulse 0.8s ease-in-out infinite;
}

.streaming-indicator.active .streaming-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.streaming-indicator.active .streaming-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes streamingPulse {
    0%, 60%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    30% {
        transform: scale(1.4);
        opacity: 0.7;
    }
}

.streaming-indicator.loading .streaming-dots {
    position: relative;
    width: 24px;
    height: 24px;
    animation: circularRotate 1.2s linear infinite;
}

.streaming-indicator.loading .streaming-dots .dot {
    position: absolute;
    animation: none;
    width: 8px;
    height: 8px;
}

.streaming-indicator.loading .streaming-dots .dot:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.streaming-indicator.loading .streaming-dots .dot:nth-child(2) {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.streaming-indicator.loading .streaming-dots .dot:nth-child(3) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes circularRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Station Description Card */
.station-description-card {
    background-color: var(--secondary-color);
    border: 1px solid var(--separator-color);
    border-radius: 12px;
    padding: 20px;
    min-height: 120px;
}

.station-description-text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* ============================================
   BUTTON STYLES - 2x2 GRID LAYOUT
   ============================================ */
.player-primary-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-primary,
.btn-secondary {
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: scale(1.02);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

.btn-primary:disabled:hover {
    background-color: var(--primary-color);
    transform: none;
}

.btn-secondary {
    background-color: var(--button-secondary);
    color: var(--text-color);
    border: 1px solid var(--separator-color);
}

.btn-secondary:hover {
    background-color: var(--button-secondary-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-shuffle,
.btn-identify {
    position: relative;
}

.btn-identify:disabled {
    opacity: 0.6;
    cursor: default;
}

.bounce-animation {
    animation: bounceAnimation 2s ease-in-out infinite;
}

@keyframes bounceAnimation {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ============================================
   VOLUME CONTROL
   ============================================ */
.volume-control {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--separator-color);
}

.volume-control i {
    font-size: 1.3em;
    color: var(--text-color);
}

#volumeSlider {
    flex-grow: 1;
    -webkit-appearance: none;
    background: var(--separator-color);
    outline: none;
    height: 6px;
    border-radius: 3px;
    transition: opacity 0.2s;
}

#volumeSlider:hover {
    opacity: 1;
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
    transition: transform 0.2s;
}

#volumeSlider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

#volumeSlider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

/* ============================================
   TABS COLUMN (RIGHT) - THREE TABS WITH SCROLLING
   ============================================ */
.tabs-column {
    display: flex;
    flex-direction: column;
    background-color: var(--background-color);
    overflow: hidden;
}

.tabs-section {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tabs-header {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--separator-color);
    flex-shrink: 0;
    background-color: var(--secondary-color);
    padding: 12px 0;
}

.tab-button {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-button:hover {
    color: var(--text-color);
    background-color: var(--hover-bg);
}

.tab-button.active {
    color: var(--text-color);
    border-bottom-color: var(--primary-color);
}

/* ============================================
   PIN ICON STYLES
   ============================================ */
.pin-icon {
    display: inline-block;
    transition: all 0.3s ease;
    margin-left: 8px;
    font-size: 14px;
    color: #ccc;
    transform: rotate(90deg);
    cursor: pointer;
}

.pin-icon:hover {
    opacity: 0.8;
}

.pin-icon.pinned {
    color: var(--primary-color);
    transform: rotate(0deg);
}

.tab-button.pinned {
    /* Optional: Add any additional styling for pinned tab buttons */
}

/* ============================================
   TAB CONTENT
   ============================================ */
.tab-content {
    display: none;
    flex: 1;
    animation: fadeIn 0.3s ease-in;
    overflow-y: auto;
    overflow-x: hidden;
}

.tab-content::-webkit-scrollbar {
    width: 8px;
}

.tab-content::-webkit-scrollbar-track {
    background: transparent;
}

.tab-content::-webkit-scrollbar-thumb {
    background: var(--separator-color);
    border-radius: 4px;
}

.tab-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tab-content.active {
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   TABLE STYLES (ALL TABLES) - DESKTOP VIEW
   ============================================ */
.table-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.table-container::-webkit-scrollbar {
    width: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: transparent;
}

.table-container::-webkit-scrollbar-thumb {
    background: var(--separator-color);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.discoveries-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* Equal column widths */
}

.discoveries-table thead {
    position: sticky;
    top: 0;
    background-color: var(--background-color);
    z-index: 10;
}

.discoveries-table th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid var(--separator-color);
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#communityTable th:last-child {
    text-align: left;
}

.discoveries-table .station-actions-cell {
    text-align: center;
}

.discoveries-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--separator-color);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discoveries-table tbody tr {
    transition: background-color 0.2s ease;
}

.discoveries-table tbody tr:hover {
    background-color: var(--hover-bg);
}

.discoveries-table tbody tr:last-child td {
    border-bottom: none;
}

/* New styles for combined Title and Artist in tables (Desktop) */
.title-artist-combo {
    /* Override table default ellipsis behavior for multiline content */
    white-space: normal !important; 
    line-height: 1.3;
}

.title-artist-combo > div:first-child {
    /* Style for the main Title (first line) */
    font-weight: 600; 
    color: var(--text-color);
}

.artist-name {
    /* Style for the Artist name (second line) */
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.song-title,
.community-song-title {
    font-weight: 600;
    color: var(--text-color);
}

.station-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.station-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.song-delete {
    text-align: center;
}

.song-delete-icon {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
    font-size: 16px;
}

.song-delete-icon:hover,
.song-delete-icon.hovered {
    color: var(--primary-color);
}

#communityTable td:last-child {
    text-align: left;
    vertical-align: middle;
}

.discoveries-table td:nth-child(4) {
    white-space: nowrap;
}

/* ============================================
   MUSIC SERVICE LINK ICONS (COLORED)
   ============================================ */
.streaming-link-community {
    margin-right: 8px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s;
    display: inline-block;
}

/* Apple Music - Red */
.streaming-link-community.fa-apple {
    color: var(--apple-music-color);
}

.streaming-link-community.fa-apple:hover {
    color: #ff5a5f;
    transform: scale(1.1);
}

/* Spotify - Green */
.streaming-link-community.fa-spotify {
    color: var(--spotify-color);
}

.streaming-link-community.fa-spotify:hover {
    color: #1ed760;
    transform: scale(1.1);
}

/* Deezer - Orange */
.streaming-link-community.fa-deezer {
    color: var(--deezer-color);
}

.streaming-link-community.fa-deezer:hover {
    color: #ff8800;
    transform: scale(1.1);
}

.loading-placeholder,
.table-center-placeholder {
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.new-song-row,
.community-song-row {
    animation: fadeInScale 0.5s ease-out forwards;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   SAVED STATIONS TABLE SPECIFIC STYLES
   ============================================ */
.station-name-cell {
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.2s;
}

.station-name-cell:hover {
    color: var(--primary-color);
}

#savedStations tr.active .station-name-cell {
    color: var(--primary-color);
}

.station-timer-cell {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.station-actions-cell {
    text-align: right;
}

.station-action-button {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--separator-color);
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.station-action-button:hover {
    background-color: var(--button-secondary-hover);
    color: var(--text-color);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   STATION DELETE ICON STYLES
   ============================================ */
.station-delete-cell {
    text-align: center;
}

.station-delete-icon {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
    font-size: 16px;
}

.station-delete-icon:hover {
    color: var(--delete-color);
    transform: scale(1.2);
}

/* ============================================
   SONG IDENTIFIER SPINNER
   ============================================ */
.song-identifier-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: songIdentifierSpin 1s linear infinite;
    position: absolute;
    right: 15px;
}

@keyframes songIdentifierSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   NOTIFICATION STYLES
   ============================================ */
.song-notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    pointer-events: none;
}

.song-notification {
    background: var(--primary-color);
    color: white;
    padding: 25px 35px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(234, 99, 140, 0.3);
    display: flex;
    align-items: center;
    gap: 20px;
    animation: slideIn 4s ease-in-out forwards;
    max-width: 450px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.song-notification i {
    font-size: 36px;
}

.song-notification-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.song-notification-title {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 8px;
}

.song-notification-artist {
    font-size: 1.1em;
    opacity: 0.95;
}

.notification-station {
    font-size: 0.9em;
    opacity: 0.85;
    margin-top: 6px;
}

.notification-links {
    margin-top: 10px;
}

.notification-links a {
    color: #fff;
    margin-right: 10px;
    text-decoration: none;
    font-size: 18px;
    transition: opacity 0.2s;
}

.notification-links a:hover {
    opacity: 0.8;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    10% {
        opacity: 1;
        transform: translateY(0);
    }
    90% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px);
    }
}

/* ============================================
   MODAL STYLES
   ============================================ */
.result-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-width: 500px;
    width: 90%;
}

.result-modal h2 {
    margin-top: 0;
    color: #333;
    font-size: 20px;
}

.result-modal h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 16px;
}

.result-modal p {
    margin: 10px 0;
    color: #666;
    font-size: 14px;
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #333;
}

.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.share-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: 500px;
    width: 90%;
    max-height: 90%;
    overflow-y: auto;
}

.share-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.share-modal-close:hover {
    color: #333;
}

.share-modal-title {
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
    color: #333;
    font-size: 24px;
}

.copy-link-container {
    margin: 0 0 25px 0;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.copy-link-input {
    flex-grow: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: white;
    font-size: 14px;
}

.copy-button {
    padding: 10px 18px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.copy-button:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

.copy-button.copied-state {
    background-color: #4CAF50 !important;
}

.share-icons-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.share-icon-link {
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s;
}

.share-icon-link:hover {
    transform: translateY(-4px);
}

.share-icon {
    font-size: 36px;
    padding: 18px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.share-icon:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(234, 99, 140, 0.4);
}

.share-icon-label {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* ============================================
   BOTTOM SECTION STYLES
   ============================================ */
.bottom-section {
    background-color: white;
    padding: 60px 30px;
    margin: 0;
}

.bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.logo-container {
    flex: 0 0 250px;
}

.logo-container img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.text-container {
    flex: 1;
    color: #333;
}

.text-container h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #222;
}

.text-container p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #555;
}

/* ============================================
   FOOTER STYLES
   ============================================ */
footer {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 30px 0;
    border-top: 1px solid var(--separator-color);
    margin: 0;
}

.footer-content {
    max-width: 100%;
    margin: 0;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-right: 20px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.share-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 22px;
    transition: color 0.2s;
}

.share-links a:hover {
    color: var(--primary-color);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1400px) {
    .app-container {
        grid-template-columns: 600px 1fr;
        gap: 1px;
    }
}

@media (max-width: 1024px) {
    .app-container {
        grid-template-columns: 1fr;
        gap: 1px;
        height: auto;
        min-height: calc(100vh - var(--header-height));
    }
    
    .player-column {
        overflow-y: visible;
    }
    
    .tabs-column {
        overflow: visible;
    }
    
    .tabs-section {
        overflow: visible;
    }
    
    .tab-content {
        overflow-y: visible;
    }
    
    .table-container {
        max-height: 400px;
    }
    
    /* ============================================
       TABLET/MOBILE RESPONSIVE TABLE - CLEAN CARD LAYOUT
       ============================================ */
    .discoveries-table {
        table-layout: auto;
    }
    
    .discoveries-table thead {
        display: none;
    }
    
    .discoveries-table,
    .discoveries-table tbody,
    .discoveries-table tr,
    .discoveries-table td {
        display: block;
        width: 100%;
    }
    
    .discoveries-table tr {
        margin-bottom: 20px;
        padding: 18px;
        background-color: var(--secondary-color);
        border: 1px solid var(--separator-color);
        border-radius: 8px;
    }
    
    .discoveries-table td {
        padding: 8px 0;
        border-bottom: none;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        text-align: left !important;
    }
    
    /* Typography hierarchy for card content */
    /* Song Title - Large, Bold, White */
    #communityTable tbody td:nth-child(1),
    #songsTable tbody td:nth-child(1) {
        font-size: 18px;
        font-weight: 700;
        color: var(--text-color);
        margin-bottom: 6px;
        line-height: 1.3;
    }
    
    /* Artist - Medium, Semi-bold, Slightly Dimmed */
    #communityTable tbody td:nth-child(2),
    #songsTable tbody td:nth-child(2) {
        font-size: 15px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 8px;
    }
    
    /* Station Name - Small, Regular, More Dimmed with "Radio" prefix */
    #communityTable tbody td:nth-child(3),
    #songsTable tbody td:nth-child(3) {
        font-size: 13px;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.5);
        margin-bottom: 12px;
    }
    
    #communityTable tbody td:nth-child(3)::before,
    #songsTable tbody td:nth-child(3)::before {
        content: "Radio ";
        font-weight: 400;
    }
    
    /* Links Section - Centered with spacing */
    #communityTable tbody td:nth-child(4),
    #songsTable tbody td:nth-child(4) {
        text-align: center;
        padding: 12px 0;
        border-top: 1px solid var(--separator-color);
        margin-top: 8px;
    }
    
    /* Actions Section (Your Discoveries only) */
    /* Updated to nth-child(4) as Title and Artist are merged */
    #songsTable tbody td:nth-child(4) {
        text-align: center;
        padding-top: 8px;
    }
    
    /* Saved Stations Table Typography */
    /* Station Name - Large, Bold with "Radio" prefix */
    #savedStationsTable tbody td:nth-child(1) {
        font-size: 18px;
        font-weight: 700;
        color: var(--text-color);
        margin-bottom: 8px;
        cursor: pointer;
    }
    
    #savedStationsTable tbody td:nth-child(1)::before {
        content: "Radio ";
        font-weight: 700;
    }
    
    /* Time Listened - Medium, Monospace */
    #savedStationsTable tbody td:nth-child(2) {
        font-size: 14px;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.6);
        font-family: 'Courier New', monospace;
        margin-bottom: 12px;
    }
    
    /* Share Button - Centered */
    #savedStationsTable tbody td:nth-child(3) {
        text-align: center;
        padding-top: 8px;
        border-top: 1px solid var(--separator-color);
        margin-top: 8px;
    }
    
    /* Delete Icon - Centered */
    #savedStationsTable tbody td:nth-child(4) {
        text-align: center;
        padding-top: 12px;
    }
    
    .station-delete-icon {
        font-size: 16px;
    }
    
    /* Streaming service icons - larger and more spaced */
    .streaming-link-community {
        margin: 0 12px;
        font-size: 24px;
    }
    
    /* Delete icon - larger */
    .song-delete-icon {
        font-size: 16px;
    }
    
    /* Action buttons */
    .station-action-button {
        display: inline-flex;
        margin-top: 5px;
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 12px 20px;
    }
    
    .header-title {
        font-size: 22px;
    }
    
    .level-icon {
        height: 40px;
    }
    
    .level-name {
        font-size: 12px;
    }
    
    .player-column,
    .tabs-section {
        padding: 20px;
    }
    
    .player-primary-controls {
        grid-template-columns: 1fr;
    }
    
    .station-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
        padding-bottom: 15px;
    }
    
    .station-header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .station-name-title {
        order: 1;
    }
    
    .streaming-indicator {
        order: 2;
    }
    
    .btn-share-header {
        align-self: flex-start;
    }
    
    .tab-button {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .pin-icon {
        font-size: 12px;
        margin-left: 6px;
    }
    
    .bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-container {
        order: -1;
        flex: 0 0 auto;
    }
    
    .text-container {
        text-align: left;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 18px;
    }
    
    .station-header {
        gap: 6px;
    }
    
    .station-header-left {
        gap: 2px;
    }
    
    .station-name-title {
        font-size: 1.1em;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .tab-button {
        padding: 8px 12px;
        font-size: 13px;
        flex-direction: column;
        gap: 4px;
    }
    
    .pin-icon {
        margin-left: 0;
        margin-top: 4px;
    }
    
    .discoveries-table tr {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    /* Adjust typography for smaller screens */
    #communityTable tbody td:nth-child(1),
    #songsTable tbody td:nth-child(1),
    #savedStationsTable tbody td:nth-child(1) {
        font-size: 16px;
    }
    
    #communityTable tbody td:nth-child(2),
    #songsTable tbody td:nth-child(2) {
        font-size: 14px;
    }
    
    #communityTable tbody td:nth-child(3),
    #songsTable tbody td:nth-child(3) {
        font-size: 12px;
    }
    
    .streaming-link-community {
        margin: 0 10px;
        font-size: 22px;
    }
    
    .song-delete-icon {
        font-size: 16px;
    }
    
    .station-delete-icon {
        font-size: 16px;
    }
}
