/* Audio Player - Resim 2 Tasarımı */
.app-audio-player {
    --primary-color: #ff2d55;
    --primary-dark: #d91845;
    --bg-primary: #2a2a2a;
    --bg-secondary: #1a1a1a;
    --bg-item: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #999;
    
    margin-bottom: 20px;
    background: var(--bg-secondary);
    border-radius: 0;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

/* ============== AudioIgniter uyumlu temel ============== */
.ai-wrap{
	--ai-bg:#fff;
	--ai-surface:#1f1f1f;
	--ai-text:rgba(0,0,0,.88);
	--ai-muted:#fff;
	--ai-accent:#fff; 
	--ai-accent-2:rgba(0,0,0,.08);
	--ai-shadow:0 10px 30px rgba(0,0,0,.08);
	--ai-text:#fff;
	--ai-border:#0d0d0d;

	color:var(--ai-text);
	box-shadow:var(--ai-shadow);
	overflow:hidden; 
}

.ai-player-titlex {display: flex;flex-wrap: wrap;gap: 12px;flex-direction: column;width: 100%;padding: 16px;background: #2a2a2a;}

.ai-with-typography{
	font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
	line-height:1.25;
}

/* İç oyuncu */
.ai-player{
	background:var(--ai-surface);
}

/* ============== Header ============== */
.ai-header{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:16px;
	padding:18px;
	border-bottom:1px solid var(--ai-border);
	background: #1a1a1a;
}

.ai-meta{
	display:flex;
	align-items:center;
	gap:1px;
	width: 100%;
}

.ai-cover{
	width:136px;
	height:auto;
	flex:0 0 136px;
	overflow:hidden;
	background: #2a2a2a;
	display:flex;
	align-items:center;
	justify-content:center;
}

.ai-cover-img{
	width:100%;
	height:100%;
	object-fit:cover;
	display:block;
}

.ai-cover-placeholder{
	color:rgba(0,0,0,.35);
}

.ai-titles{
	min-width:0;
}

.ai-title{
	margin:0 !important;
	font-size:16px !important;
	font-weight:500;
	letter-spacing:0.05em;
	white-space: normal;
	overflow:hidden;
	text-overflow:ellipsis;
	max-width: 100%;color: #ffffff !important;
}

.ai-subtitle{
	margin:6px 0 0;
	font-size:13px;
	color:var(--ai-muted);
	white-space:nowrap;
	overflow:hidden;
	text-overflow:ellipsis;
}

/* Play button (sağda büyük) */
.ai-btn{
	appearance:none;
	border:1px solid var(--ai-border);
	background:#fff;
	color:var(--ai-text);
	cursor:pointer;
	user-select:none;
}

.ai-btn:focus{
	outline:none;
	box-shadow:0 0 0 3px rgba(0,0,0,.08);
}

.ai-btn-play{    border-radius: 50%;min-width: 58px;
	width:58px;
	height:58px;
	display:grid;
	place-items:center;
	background:#f70f5d;
	color:#fff;
}

.ai-btn-play:hover{
	filter:brightness(.95);
}

.ai-btn-icon{
	width:32px;
	height:34px;
	display:grid;
	place-items:center;
	background:#3e3e3e;
}

/* ============== Controls ============== */
.ai-controls{
	display:flex;
	align-items:center;
	gap:10px;
}

.ai-controls-left{
	display:flex;
	gap:10px;
}

.ai-controls-right{
	display:flex;
	align-items:center;
	gap:10px;
}

/* Progress */
.ai-progress{
	display:flex;
	align-items:center;
	gap:12px;
	flex:1 1 auto;
	min-width: 180px;
}

.ai-time{
	font-variant-numeric: tabular-nums;
	font-size:16px;
	color:var(--ai-muted);
	text-align:left;opacity: .7;margin-left: auto;
}

.ai-bar{
	position:relative;
	height:5px;
	background:rgb(62 62 62);
	flex:1 1 auto;
	overflow:hidden;
}

.ai-bar-fill{
	position:absolute;
	left:0; top:0; bottom:0;
	width:0%;
	background:#3e3e3e; 
}

.ai-seek{
	position:absolute;
	left:0; top:-6px;
	width:100%;
	height:5px;
	opacity:0;
	cursor:pointer;
}

/* Volume */
.ai-volume{
	display:flex;
	align-items:center;
	gap:10px;
}

.ai-volume-slider-wrap{
	width:120px;
	display:flex;
	align-items:center;
}

.ai-volume-slider{
	width:100%;
	cursor:pointer;
}

/* ============== Tracklist ============== */
.ai-tracklist{
	padding:0 8px 18px 18px;    margin-bottom: 18px;
}
.ai-track{
	display:flex;
	align-items:center;
	gap:10px;
	cursor:pointer;
	transition: background .15s ease, transform .05s ease;background: #2a2a2a;margin: 0 0 1px;height: 40px;
}

.ai-track:hover{
	background:rgb(247 15 93);
}

.ai-track:active{
	transform: translateY(1px);
}

.ai-track-thumb{
	width:40px;
	height:40px;
	flex:0 0 40px;
	overflow:hidden;
	display:flex;
	align-items:center;
	justify-content:center;background: #2a2a2a;border-right: 1px solid #202020;
}

.ai-track-thumb-img{
	width:100%;
	height:auto%;
	object-fit:cover;
	display:block;
}
.ai-logli-li {
	background: #2a2a2a;
    display: grid;
    height: -webkit-fill-available;
    align-items: center;
}
.ai-track-thumb-placeholder{
	color:rgba(0,0,0,.35);
}

.ai-track-info{
	display:flex;
	align-items:baseline;
	gap:8px;
	min-width:0;
	flex:1 1 auto;
}

.ai-track-num{
	color:var(--ai-muted);
	font-size:13px;
	font-variant-numeric: tabular-nums;font-weight: 600;
}

.ai-track-title{
	font-size:13px;font-weight: 600;
	color:var(--ai-text);
	white-space:nowrap;
	overflow:hidden;
	text-overflow:ellipsis;
}

.ai-track-indicator{
	opacity:0;
	color:var(--ai-accent);
}

.ai-track-active{
	background:rgb(247 15 93);
}

.ai-track-active .ai-track-indicator{
	opacity:1;margin-right: 16px;
}

/* Scrollbar (isteğe bağlı, hafif) */
.ai-tracklist::-webkit-scrollbar{ width:10px; }
.ai-tracklist::-webkit-scrollbar-thumb{
	background:rgba(0,0,0,.12);
	border-radius:999px;
	border:3px solid rgba(0,0,0,0);
	background-clip: padding-box;
}

/* ============== Responsive ============== */
@media (max-width: 620px){
	.ai-meta {flex-direction: column;}
	.ai-time {font-size: 13px;}
	.ai-cover {/*width: 100%;height: auto;flex: 0;*/ display:none;}
}

/* ============== Geliştirilmiş Scrollbar ============== */
.ai-tracklist::-webkit-scrollbar { 
    width: 10px; 
}

.ai-tracklist::-webkit-scrollbar-track {
    background: var(--bg-secondary, #1a1a1a);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-tracklist::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

.ai-tracklist::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Firefox Scrollbar */
.ai-tracklist {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) #1a1a1a;
}

#app-volume {
  accent-color: #f70f5d; /* Tek satırda renk değişimi */
}
/* Playlist - Resim 2 Tasarımı */
.app-playlist {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg-secondary);
}

.app-playlist::-webkit-scrollbar {
    width: 6px;
}

.app-playlist::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.app-playlist::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.app-playlist::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

 /* ============== ARAMA VE FİLTRE ============== */

/* Search Container */
.app-search-container {
    background: #1a1a1a;
    padding: 0 16px;
    border-bottom: 1px solid var(--ai-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.app-search-wrapper {
    margin: 0 auto;
}

/* Search Box */
.app-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.app-search-box:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: #ff2d55;
    box-shadow: 0 0 0 4px rgba(255, 45, 85, 0.1);
}

/* Search Icon */
.app-search-icon {
    color: #999;
    margin-right: 12px;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.app-search-box:focus-within .app-search-icon {
    color: #ff2d55;
}

/* Search Input */
.app-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 0;
}

.app-search-input::placeholder {
    color: #666;
}

/* Clear Button */
.app-clear-search {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.app-clear-search:hover {
    background: rgba(255, 45, 85, 0.2);
    color: #ff2d55;
    transform: rotate(90deg);
}

/* Search Stats */
.app-search-stats {
    margin-top: 12px;
    text-align: center;
    color: #999;
    font-size: 13px;
    font-weight: 600;
}

.app-search-stats #app-search-count {
    color: #ff2d55;
    font-size: 16px;
    font-weight: 700;
}

/* Track Highlight */
.app-playlist-item.search-hidden {
    display: none !important;
}

.app-playlist-item.search-match {
    animation: searchPulse 0.5s ease;
}

.app-playlist-item.search-first-match {
    background: rgba(255, 45, 85, 0.15) !important;
    border-left: 4px solid #ff2d55;
}

.app-track-title mark {
    background: #ff2d55;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

@keyframes searchPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); background: rgba(255, 45, 85, 0.1); }
    100% { transform: scale(1); }
}

/* No Results Message */
.app-no-results {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

.app-no-results-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.app-no-results-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.app-no-results-hint {
    font-size: 14px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .app-search-container {
        padding: 12px;
    }
    
    .app-search-input {
        font-size: 14px;
    }
    
    .app-search-input::placeholder {
        font-size: 13px;
    }
}
