html, body {
    font-family: "Liberation Sans", sans-serif;
	margin: 0px;
	background: #fdfdfd;
}

.year-indicator {
    background: #007bff;
    color: white;
    padding: 2px 6p
    border-radius: 3px;
    font-size: 0.8em;
    margin-left: 8px;
}

.topbar {
    position: sticky;
    top: 1vh;
    z-index: 1000;
    width: 80vw;
    min-width: 300px;
    max-width: 500px;
    margin: 0 auto 0 auto;
    background: rgba(35, 35, 35, 1.0);
    display: flex;
    align-items: center;
    box-sizing: border-box;
    box-shadow: 0 8px 40px rgba(0,0,0,0.38);
    border-radius: 6px;
    padding: 0 24px;
    height: 15vw;
    max-height: 50px;
    transition: height 0.3s;
}

.topbar-left {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s;
}

.topbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s, filter 0.4s;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.topbar-right {
    margin-left: auto;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s, filter 0.4s;
    z-index: 2;
}

.content-area {
	min-height: 90vh;
}

.search-btn {
    z-index: 2;
    color: #999;
    background: transparent;
    border: transparent;
    font-size: 1.13em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.search-btn:hover {
    color: #eee;
}

.topbar.search-active .topbar-right,
.topbar.search-active .topbar-center,
.topbar.search-active .topbar-left {
    transform: translateX(-80vw);
}

.topbar.search-active .topbar-left {
    opacity: 0;
    pointer-events: none;
}

.search-input {
    position: absolute;
    height: 100%;
    background: transparent;
    text-align: center;
    color: #eee;
    border: none;
    font-size: calc(4vw + 25px);
    outline: none;
    transition:
        width 0.4s cubic-bezier(0.23, 1, 0.32, 1),
        opacity 0.35s cubic-bezier(0.23, 1, 0.32, 1),
        background 0.18s;
}

.search-highlight {
	background-color: #ffebae;
	padding: 1px 2px;
	border-radius: 5px;
}

.search-input.collapsed {
    width: 0;
    opacity: 0;
    pointer-events: none;
}

.topbar.search-active .search-input {
    width: 100%;
    pointer-events: auto;
    left: 0;
}

.search-bar.collapsed {
    opacity: 0;
    pointer-events: none;
}

.search-input::placeholder {
    color: #888;
}

.dropdown-trigger {
    color: #eee;
    cursor: pointer;
    background: transparent;
    border: none;
}

.dropdown-menu {
    position: fixed;
    background: #222;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 999;
    text-align: center;
    max-height: 75vh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: #555 #222;
}

.dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #222;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.dropdown-menu .dropdown-item {
    padding: 12px 20px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dropdown-open {
    overflow: hidden;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
}

.custom-dropdown {
    position: relative;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #979797;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border-bottom: 1px solid #333;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    color: white;
    background: rgba(244, 244, 244, .1);
}

.dropdown-menu a span {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.dropdown-menu a:hover span {
    transform: scale(1.09);
}

.year-dropdown, .pane-dropdown {
    background: #181818;
    color: #eee;
    border: none;
    border-radius: 8px;
    padding: 7px 17px 7px 9px;
    font-size: 1.16em;
    outline: none;
    margin-right: 14px;
    min-width: 92px;
}

.pane-dropdown {
    margin: 0;
    min-width: 135px;
}

/* Side panels */
.years-menu {
    background: #232323;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-right: 2px solid #282828;
}

.years-menu {
    min-width: 90px;
    width: 90px;
    padding: 0;
}

.queue-pane {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 8vh;
	height: 30vh;
	background: #232323;
	border-top: 1px solid #2e2e2e;

	box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.4);
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	border-top-left-radius: 12px;
	border-top-right-radius: 12px;
	max-height: calc(85vh);
	
	display: flex;
	flex-direction: column;
}


.queue-pane.collapsed {
    transform: translateY(100%);
    pointer-events: none;
    opacity: 1;
}

/* Year navigation */
.year {
    padding: 8px 0 8px 16px;
    font-size: 1.5em;
    cursor: pointer;
    border-bottom: 1px solid #282828;
    transition: background 0.13s;
}

.year.active, .year:hover {
    background: #323232;
    font-weight: bold;
    color: #fff;
}

.episode-body,
.pane-switcher {
    color: #181818;
    padding-bottom: 18vw;
	padding-top: 12vw;
}

.episode-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.episode-item {
    display: flex;
    flex-direction: column;
    padding: 1.2em 0.4em;
    border-bottom: 2px solid #e0e0e0;
    gap: 0.4em;
	margin: 0px 2em;
}

.episode-item:last-child {
    border-bottom: none;
}

.episode-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 2.2em;
}

.episode-header-left {
    display: flex;
    align-items: center;
    gap: 0.7em;
}

.episode-item-title {
    font-size: 2.75em;
    margin: 0px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.1;
	min-width: 15vw;
	cursor: pointer;
}

.episode-meta {
    display: flex;
    align-items: center;
    gap: 0.7em;
    font-size: 1.2em;
}

.episode-item-description {
	font-size: 1.75em;
	color: #181818;
	line-height: 1.15;
	text-align: justify;
}

.episode-tags {
    font-size: 0.90em;
    color: #666;
    margin-bottom: 0;
    margin-top: 0.3em;
    white-space: normal;
    word-break: break-word;
}

.episode-item-meta {
    display: none;
}

.play-episode-btn {
    font-size: 1em;
    padding: 0.4em 1.1em;
    border-radius: 6px;
    border: 1px solid #888;
    background: #fff;
    transition: background 0.16s, border 0.16s;
    cursor: pointer;
}

.play-episode-btn:active {
    background: #efefef;
    border-color: #aaa;
}

.unlistened-badge {
    background: #e43e2b;
    color: #fff;
    border-radius: 6px;
    padding: 0.15em 0.7em;
    font-size: 0.85em;
    margin-left: 0.6em;
    letter-spacing: 0.02em;
    font-weight: 500;
}

.day-of-week {
    color: #919191;
    font-size: 1.3em;
	min-width: 12vw;
}

.episode-title {
    font-size: 3em;
    margin-bottom: 0.3em;
}

.episode-description {
	font-size: 1.6em;
	color: #6a6a6a;
	text-align: center;
	position: fixed;
	width: 100%;
	background: linear-gradient(to bottom, #fefefe 0%, #fefefe 80%, transparent 100%);
	align-content: end;
	z-index: 2;
	padding-bottom: 1.5rem;
	height: 25vw;
	top: 0%;
	line-height: 5;
}

.episode-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.4em;
    margin-left: 1em;
    height: 100%;
    display: flex;
    align-items: center;
}

.episode-menu-btn:focus,
.episode-menu-btn:hover {
    background: #ececec;
    border-radius: 5px;
}

.now-playing {
	background: #addee673 !important;
	margin-left: 0;
	margin-right: 0;
	padding-left: 2em;
	padding-right: 2em;
}

.queue-item.now-playing {
	background: #38475e73 !important;
    border-left: 1rem solid #007bff;
	margin: 0px 1rem 0px 0px;
}

.episode-date {
    font-weight: bold;
    letter-spacing: 0.03em;
}

.episode-day {
    color: #919191;
    font-size: 1em;
    margin-left: 0.4em;
}

.episode-menu {
	width: 95%;
	display: flex;
	border-bottom: 2px solid #e0e0e0;
	justify-content: center;
	padding: 2vw 0 2vw 0;
	align-self: center;
}

.menu-opened {
    border-bottom: none;
    padding-bottom: 0px;
}

/* Individual menu buttons */
.episode-menu-item {
    width: 30vw;
	height: 8vw;
    font-size: 1.5em;
    margin: .25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border: 4px solid #d1d5db;
    border-radius: .5em;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    min-height: 36px;
}

.episode-menu-item:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.episode-menu-item:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Love button specific styling */
.episode-menu-item.love-btn {
    border-color: #fca5a5;
    color: #dc2626;
}

.episode-menu-item.love-btn:hover {
    background-color: #fef2f2;
    border-color: #f87171;
}

.episode-menu-item.love-btn.loved {
    background-color: #dc2626;
    color: white;
    border-color: #dc2626;
}

.episode-menu-item.love-btn.loved:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
}

/* Queue button specific styling */
.episode-menu-item.queue-btn {
    border-color: #93c5fd;
    color: #2563eb;
    background: #f9f9f9;
}

.episode-menu-item.queue-btn:hover {
    background-color: #eff6ff;
    border-color: #60a5fa;
}

.episode-menu-item i {
    font-size: .75em;
}

.episode-menu-btn i {
    transition: transform 0.2s ease;
    transform: rotate(180deg);
}

.episode-menu-btn.active i {
    transition: transform 0.2s ease;
    transform: rotate(90deg);
}

/* Range input styling */
input[type='range'] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    width: 100%;
    margin: 0;
    padding: 0;
}

input[type='range']:focus {
    outline: none;
}

/* Firefox range styling */
input[type='range']::-moz-range-thumb {
    width: 3.5em;
    height: 3.5em;
    border: 2px solid #535353;
    border-radius: 30%;
    background: #dbdbdb;
}

input[type='range']::-moz-range-thumb:hover {
    background: #f1f1f1;
    border: 2px solid #777;
}

input[type='range']::-moz-range-track {
    width: 100%;
    height: 1.3em;
    background: #828282;
}

.disabled::-moz-range-track {
    background: #626262 !important;
}

.disabled::-moz-range-thumb {
    background: #626262 !important;
    box-shadow: 0 0 0.125em #111 !important;
    border: 2px solid #242424 !important;
}

/* Webkit range styling */
input[type='range']::-webkit-slider-thumb {
    width: 3.5em;
    height: 3.5em;
    border: 2px solid #535353;
    border-radius: 30%;
    background: #dbdbdb;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transform: translateY(-25%);
}

input[type='range']:hover::-webkit-slider-thumb {
    background: #f1f1f1;
    border: 2px solid #777;
}

input[type='range']::-webkit-slider-runnable-track {
    width: 100%;
    height: 1.3em;
    background: #828282;
    border-radius: 0.5em;
}

input[type='range'].disabled::-webkit-slider-thumb {
    background: #626262 !important;
    box-shadow: 0 0 0.125em #111 !important;
    border: 2px solid #242424 !important;
}

input[type='range'].disabled::-webkit-slider-runnable-track {
    background: #626262 !important;
}

.step-btn.hidden {
	display: none;
}







.queue-header {
    font-weight: bold;
    padding: 8px 18px 25px 18px;
    color: #f5f5f5;
    border-bottom: 1px solid #333;
    text-align: center;
    font-size: 3.5em;
    position: sticky;
    top: 0;
	background: rgb(15, 15, 15);
	z-index: 2;
}

.queue-list {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-bottom: 20px;
	align-content: center;
}

.queue-list li {
	font-size: 2em;
	margin: 0px 1rem;
	color: #f5f5f5;
	width: auto;
	padding: 18px;
}

.queue-item {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.queue-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}


.queue-item.dragging {
    opacity: 0.5;
    background-color: rgba(255, 255, 255, 0.05);
}

.queue-item.drop-above::before {
    content: '';
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    background-color: #007bff;
    border-radius: 2px;
}

.queue-item.drop-below::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    background-color: #007bff;
    border-radius: 2px;
}

.queue-item-handle {
	cursor: grab;
	padding: 1rem 2.5rem 1rem .5rem;
	font-size: 2.5rem;
	display: flex;
}

.queue-item-handle:hover {
    color: rgba(255, 255, 255, 0.8);
}

.queue-item-handle:active {
    cursor: grabbing;
}

.queue-item-handle i {
    display: block;
}

.queue-item-content {
    flex: 1;
    min-width: 0;
}

.queue-item-title {
	font-size: 1.5em;
}

.queue-item-actions {
	display: flex;
	margin-left: 8px;
	flex-shrink: 0;
}

.queue-item-remove {
	background: none;
	border: none;
	color: inherit;
	border-radius: 3px;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.2s, background-color 0.2s;
	font-size: 2rem;
	padding: 1rem;
}

.queue-item-remove:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
}

.queue-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
}

.queue-item.will-move-up {
    transform: translateY(-2px);
    background-color: rgba(0, 255, 0, 0.1);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.queue-item.will-move-down {
    transform: translateY(2px);
    background-color: rgba(255, 165, 0, 0.1);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.queue-resize-handle {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgb(15, 15, 15);
    border-bottom: 1px solid #333;
    padding: 8px 0;
    text-align: center;
    cursor: ns-resize;
    user-select: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2em;
}


.queue-resize-handle:hover {
    background: rgba(0, 0, 0, 0.9);
    color: rgba(255, 255, 255, 0.8);
}

.queue-resize-handle i {
    transform: rotate(90deg);
    display: block;
}


.media-player-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #232323;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
    z-index: 200;
}

.time-display-bar {
	display: flex;
	justify-content: space-between;
	padding: 1vw 2vw;
	box-sizing: border-box;
	font-size: 2rem;
	color: #dbdbdb;
}

.current-time {
    order: 1;
}

.duration-time {
    order: 2;
}

.scrubber::-webkit-slider-runnable-track,
.scrubber::-moz-range-track {
    height: 4px;
    background: #bbb;
    border-radius: 2px;
}

.scrubber::-webkit-slider-thumb,
.scrubber::-moz-range-thumb,
.scrubber::-ms-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    background: #fff;
    border: 2.5px solid #242424;
    border-radius: 50%;
    margin-top: -9px;
    cursor: pointer;
    box-shadow: 0 1px 5px rgba(36,36,36,0.13);
}

.scrubber:focus {
    outline: none;
}

.scrubber::-ms-fill-lower,
.scrubber::-ms-fill-upper {
    background: #bbb;
}

.player-controls {
    display: flex;
    align-items: center;
}

.player-main-controls {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 18px;
    z-index: 1;
}

.player-side-controls {
    margin-left: auto;
    padding-right: 4vw;
}

.play-btn {
    width: 10vw;
}

.player-btn, .play-btn {
    background: none;
    color: #dbdbdb;
    border: none;
    padding: 0 8px;
    cursor: pointer;
    transition: color 0.14s;
}

.player-btn:hover, .play-btn:hover {
    color: #e2e2e2;
}

.disabled,
button:disabled {
    filter: grayscale(100%) !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
    color: #626262 !important;
    border-color: #bbbbbb !important;
    box-shadow: none !important;
    text-decoration: line-through;
}

/* Responsive design */
@media (max-width: 670px) {
    .topbar {
        width: 90%;
        margin: 10px auto;
        flex-direction: column;
        height: auto;
        padding: 15px 16px;
        gap: 12px;
        border-radius: 8px;
    }
    
    .topbar-left {
        justify-content: center;
        width: 100%;
        margin-bottom: 8px;
        flex: none;
        min-width: unset;
    }
    
    .topbar-center {
        flex: none;
        justify-content: center;
        min-width: unset;
        width: 100%;
        margin-bottom: 2px;
    }

    .dropdown-menu {
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }

    .dropdown-menu.active {
        transform: translateX(-50%) translateY(0);
    }

    .search-bar {
        width: 90%;
    }

    .queue-pane {
        height: 40vh;
    }

    .episode-menu {
		width: 90%;
		display: flex;
		border-bottom: 2px solid #e0e0e0;
		justify-content: center;
		padding: 2vw 0 2vw 0;
		align-self: center;
    }
    
    .episode-menu-item {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 800px), (orientation: portrait) {
    .dropdown-menu {
        top: calc(10.5vw + 63px);
        width: 90vw;
        font-size: calc(2vw + 1.6vh + 10px);
        border-radius: 10px;
    }
    
    .media-player-bar {
        height: 18vw;
    }
    
    .player-btn {
        font-size: 9vw;
    }
    
    .queue-toggle {
        font-size: 6vw;
    }
    
    .topbar {
        width: 95vw;
        min-height: calc(10.5vw + 13px);
        max-width: none;
    }
    
    .dropdown-trigger {
        font-size: calc(4vw + 25px);
    }
    
    .search-btn {
        font-size: calc(4vw + 25px);
    }
    
    .search-bar {
        font-size: calc(4vw + 10px);
    }
}