Medya içeriklerini (Filmler, Diziler, Müzik) kenar çubuğunda "Media" başlığı altında ayrı bir menü bölümünde grupla. Medya içeriği varsa sadece bu bölümü göstererek gezinme hiyerarşisini iyileştir.
697 lines
12 KiB
CSS
697 lines
12 KiB
CSS
/* =======================================================
|
||
🎨 RENK DEĞİŞKENLERİ VE TEMEL STİLLER
|
||
======================================================= */
|
||
:root {
|
||
--yellow: #f5b333;
|
||
--yellow-dark: #e2a62f;
|
||
--sidebar: #f4f4f4;
|
||
--border: #e5e5e5;
|
||
--muted: #666;
|
||
--green: #4caf50;
|
||
}
|
||
|
||
* {
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
html,
|
||
body,
|
||
#app {
|
||
height: 100%;
|
||
margin: 0;
|
||
font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
|
||
Arial, sans-serif;
|
||
color: #222;
|
||
background: #fff;
|
||
}
|
||
|
||
/* =======================================================
|
||
📐 GENEL YERLEŞİM
|
||
======================================================= */
|
||
.app {
|
||
display: grid;
|
||
grid-template-columns: 220px 1fr;
|
||
height: 100vh;
|
||
}
|
||
|
||
.content {
|
||
display: flex;
|
||
flex-direction: column;
|
||
height: 100vh;
|
||
overflow-y: auto;
|
||
}
|
||
|
||
/* =======================================================
|
||
🧭 SIDEBAR
|
||
======================================================= */
|
||
.sidebar {
|
||
background: var(--sidebar);
|
||
border-right: 1px solid var(--border);
|
||
display: flex;
|
||
flex-direction: column;
|
||
height: 100vh;
|
||
position: sticky;
|
||
top: 0;
|
||
}
|
||
|
||
.sidebar .logo {
|
||
padding: 12px 16px;
|
||
font-weight: 900;
|
||
font-size: 28px;
|
||
letter-spacing: 0.5px;
|
||
}
|
||
|
||
.sidebar .menu {
|
||
padding-top: 6px;
|
||
}
|
||
|
||
.sidebar .menu .item {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
padding: 10px 16px;
|
||
color: #222;
|
||
cursor: pointer;
|
||
text-decoration: none;
|
||
transition: background 0.2s ease, color 0.2s ease;
|
||
}
|
||
|
||
.sidebar .menu .item .icon {
|
||
width: 18px;
|
||
text-align: center;
|
||
color: #333;
|
||
}
|
||
|
||
/* Hover efekti */
|
||
.sidebar .menu .item:hover {
|
||
background: #f0f0f0;
|
||
color: #000;
|
||
}
|
||
|
||
/* Aktif menü öğesi */
|
||
.sidebar .menu .item.active {
|
||
background: #e5e5e5;
|
||
border-left: 3px solid var(--yellow);
|
||
font-weight: 600;
|
||
color: #000;
|
||
}
|
||
|
||
.sidebar .menu .item:hover .icon,
|
||
.sidebar .menu .item.active .icon {
|
||
color: #000;
|
||
}
|
||
|
||
/* =======================================================
|
||
🔍 TOPBAR VE ARAMA
|
||
======================================================= */
|
||
.topbar {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
padding: 12px 16px;
|
||
border-bottom: 1px solid var(--border);
|
||
}
|
||
|
||
.search {
|
||
flex: 1;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
background: #f8f8f8;
|
||
border: 1px solid var(--border);
|
||
border-radius: 6px;
|
||
padding: 8px 12px;
|
||
}
|
||
|
||
.search input {
|
||
border: none;
|
||
outline: none;
|
||
background: transparent;
|
||
flex: 1;
|
||
}
|
||
|
||
/* =======================================================
|
||
🟨 BUTONLAR
|
||
======================================================= */
|
||
.btn-primary {
|
||
background: var(--yellow);
|
||
border: 1px solid var(--yellow-dark);
|
||
color: #222;
|
||
font-weight: 700;
|
||
padding: 10px 14px;
|
||
border-radius: 6px;
|
||
cursor: pointer;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
text-transform: uppercase;
|
||
gap: 6px;
|
||
height: 36px;
|
||
transition: background 0.2s;
|
||
font-size: 11px;
|
||
}
|
||
|
||
.btn-primary:hover {
|
||
background: var(--yellow-dark);
|
||
}
|
||
|
||
.btn-primary:active {
|
||
transform: translateY(1px);
|
||
}
|
||
|
||
/* =======================================================
|
||
📂 FILES SAYFASI
|
||
======================================================= */
|
||
.files {
|
||
margin: 0 16px 16px 16px;
|
||
flex: 1;
|
||
border-top: 2px solid #f0c24d;
|
||
padding-top: 14px;
|
||
}
|
||
|
||
.files h2 {
|
||
margin: 0 0 10px 0;
|
||
}
|
||
|
||
.empty {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
height: 260px;
|
||
gap: 10px;
|
||
border: 2px dashed var(--border);
|
||
border-radius: 8px;
|
||
}
|
||
|
||
.create-folder {
|
||
background: var(--yellow);
|
||
border: 1px solid var(--yellow-dark);
|
||
padding: 8px 12px;
|
||
border-radius: 6px;
|
||
font-weight: 700;
|
||
cursor: pointer;
|
||
}
|
||
|
||
/* =======================================================
|
||
📦 TRANSFERS SAYFASI
|
||
======================================================= */
|
||
.torrent {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
padding: 10px 12px;
|
||
border-bottom: 1px solid var(--border);
|
||
}
|
||
|
||
.torrent:last-child {
|
||
border-bottom: none;
|
||
}
|
||
|
||
.progress {
|
||
height: 8px;
|
||
background: #eee;
|
||
border-radius: 99px;
|
||
overflow: hidden;
|
||
flex: 1;
|
||
}
|
||
|
||
.progress > div {
|
||
height: 100%;
|
||
background: var(--green);
|
||
transition: width 0.3s;
|
||
}
|
||
|
||
.small {
|
||
color: var(--muted);
|
||
font-size: 12px;
|
||
}
|
||
|
||
/* =======================================================
|
||
🎞️ MODAL & PLAYER (ORTAK)
|
||
======================================================= */
|
||
.modal-overlay {
|
||
position: fixed;
|
||
inset: 0;
|
||
backdrop-filter: blur(4px);
|
||
color: rgba(0, 0, 0, 0.35);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
z-index: 999;
|
||
}
|
||
|
||
.modal-content {
|
||
width: 70%;
|
||
height: 70%;
|
||
background: #1a1a1a;
|
||
border-radius: 12px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
min-height: 0;
|
||
overflow: hidden;
|
||
box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
|
||
}
|
||
|
||
/* === Video Player === */
|
||
.custom-player {
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
justify-content: space-between;
|
||
min-height: 0;
|
||
background: #000;
|
||
}
|
||
|
||
.video-element {
|
||
flex: 1 1 auto;
|
||
width: 100%;
|
||
height: auto;
|
||
max-height: 100%;
|
||
min-height: 0;
|
||
object-fit: contain;
|
||
background: #000;
|
||
border: none;
|
||
outline: none;
|
||
}
|
||
|
||
.video-element:focus {
|
||
outline: none !important;
|
||
box-shadow: none !important;
|
||
}
|
||
|
||
/* === Kontroller === */
|
||
.controls {
|
||
background: #1c1c1c;
|
||
padding: 10px 16px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
flex-shrink: 0;
|
||
border-top: 1px solid #333;
|
||
}
|
||
|
||
.top-controls {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.control-btn {
|
||
background: none;
|
||
border: none;
|
||
color: #fff;
|
||
font-size: 18px;
|
||
cursor: pointer;
|
||
transition: opacity 0.2s;
|
||
}
|
||
|
||
.control-btn:hover {
|
||
opacity: 0.7;
|
||
}
|
||
|
||
.right-controls {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
}
|
||
|
||
/* === Ses Kaydırıcısı === */
|
||
.volume-slider {
|
||
-webkit-appearance: none;
|
||
width: 100px;
|
||
height: 4px;
|
||
border-radius: 2px;
|
||
background: linear-gradient(
|
||
to right,
|
||
#ff3b30 calc(var(--fill, 100%) * 1%),
|
||
rgba(255, 255, 255, 0.3) calc(var(--fill, 100%) * 1%)
|
||
);
|
||
outline: none;
|
||
cursor: pointer;
|
||
transition: background 0.2s ease;
|
||
}
|
||
|
||
.volume-slider::-webkit-slider-thumb {
|
||
-webkit-appearance: none;
|
||
width: 12px;
|
||
height: 12px;
|
||
border-radius: 50%;
|
||
background: #fff;
|
||
cursor: pointer;
|
||
margin-top: -4px;
|
||
transition: transform 0.2s ease;
|
||
}
|
||
|
||
.volume-slider::-webkit-slider-thumb:hover {
|
||
transform: scale(1.3);
|
||
}
|
||
|
||
/* === Alt Kontroller === */
|
||
.bottom-controls {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 12px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.progress-slider {
|
||
flex: 1;
|
||
cursor: pointer;
|
||
accent-color: #27ae60;
|
||
}
|
||
|
||
.time {
|
||
color: #ccc;
|
||
font-size: 13px;
|
||
min-width: 90px;
|
||
text-align: right;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.backdrop {
|
||
position: fixed;
|
||
inset: 0;
|
||
background: rgba(0, 0, 0, 0.35);
|
||
opacity: 0;
|
||
pointer-events: none;
|
||
transition: opacity 0.2s ease;
|
||
z-index: 999;
|
||
}
|
||
|
||
.backdrop.show {
|
||
opacity: 1;
|
||
pointer-events: auto;
|
||
}
|
||
|
||
/* === Global Close Button (Resim + Video) === */
|
||
.global-close-btn,
|
||
.image-close-btn {
|
||
position: fixed;
|
||
top: 20px;
|
||
right: 30px;
|
||
background: rgba(0, 0, 0, 0.6);
|
||
border: none;
|
||
color: #fff;
|
||
font-size: 36px;
|
||
cursor: pointer;
|
||
z-index: 2100;
|
||
border-radius: 50%;
|
||
width: 46px;
|
||
height: 46px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
transition: background 0.2s ease, transform 0.2s ease;
|
||
}
|
||
|
||
.global-close-btn:hover,
|
||
.image-close-btn:hover {
|
||
background: rgba(255, 255, 255, 0.15);
|
||
transform: scale(1.05);
|
||
}
|
||
|
||
/* =======================================================
|
||
🖼️ RESİM MODALI
|
||
======================================================= */
|
||
.image-modal-overlay {
|
||
position: fixed;
|
||
inset: 0;
|
||
background: rgba(0, 0, 0, 0.35);
|
||
backdrop-filter: blur(4px);
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
z-index: 2000;
|
||
}
|
||
|
||
.image-modal-content {
|
||
position: relative;
|
||
max-width: 90%;
|
||
max-height: 90%;
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
}
|
||
|
||
.image-modal-img {
|
||
max-width: 75vw;
|
||
max-height: 75vh;
|
||
object-fit: contain;
|
||
border-radius: 8px;
|
||
box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
|
||
}
|
||
|
||
/* === Modal Başlığı (Ortak: Files + Transfers) === */
|
||
.modal-header {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
background: #2a2a2a;
|
||
padding: 10px 16px;
|
||
color: #fff;
|
||
font-size: 16px;
|
||
font-weight: 500;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.video-title {
|
||
flex: 1;
|
||
text-align: center;
|
||
font-weight: 600;
|
||
}
|
||
|
||
/* 🌫️ Thumbnail fade-in + blur efekti */
|
||
/* 🌫️ Fade-in thumbnail efekti — sadece img'ler için geçerli */
|
||
img.thumb {
|
||
opacity: 1;
|
||
filter: none;
|
||
transform: none;
|
||
transition: none;
|
||
}
|
||
|
||
img.thumb.loaded {
|
||
opacity: 1;
|
||
filter: none;
|
||
transform: none;
|
||
}
|
||
|
||
/* 🪄 Placeholder her zaman görünür */
|
||
.thumb.placeholder {
|
||
opacity: 1 !important;
|
||
filter: none !important;
|
||
transform: none !important;
|
||
background: linear-gradient(100deg, #f0f0f0 20%, #e2e2e2 50%, #f0f0f0 80%);
|
||
background-size: 200% 100%;
|
||
animation: shimmer 1.4s infinite;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border-radius: 6px;
|
||
}
|
||
|
||
.thumb.placeholder i {
|
||
font-size: 28px;
|
||
color: #777;
|
||
opacity: 0.9;
|
||
}
|
||
|
||
@keyframes shimmer {
|
||
0% {
|
||
background-position: -200% 0;
|
||
}
|
||
100% {
|
||
background-position: 200% 0;
|
||
}
|
||
}
|
||
|
||
/* =======================================================
|
||
📱 RESPONSIVE
|
||
======================================================= */
|
||
|
||
/* Tablet ve aşağısı */
|
||
@media (max-width: 768px) {
|
||
.app {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
|
||
.menu-toggle {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
width: 36px;
|
||
height: 36px;
|
||
background: none;
|
||
border: none;
|
||
font-size: 20px;
|
||
color: #333;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.sidebar {
|
||
position: fixed;
|
||
top: 0;
|
||
left: -240px;
|
||
width: 220px;
|
||
height: 100%;
|
||
background: var(--sidebar);
|
||
border-right: 1px solid var(--border);
|
||
transition: left 0.25s ease;
|
||
z-index: 1000;
|
||
}
|
||
|
||
.sidebar.open {
|
||
left: 0;
|
||
}
|
||
|
||
.files {
|
||
margin: 0 10px 14px 10px;
|
||
padding-top: 12px;
|
||
}
|
||
|
||
.btn-primary {
|
||
flex: 1 1 auto;
|
||
justify-content: center;
|
||
height: 36px;
|
||
padding: 8px 12px;
|
||
font-size: 11px;
|
||
}
|
||
|
||
.modal-content {
|
||
width: 95% !important;
|
||
height: 72% !important;
|
||
border-radius: 10px;
|
||
}
|
||
|
||
.controls {
|
||
padding: 8px 12px;
|
||
gap: 8px;
|
||
}
|
||
|
||
.volume-slider {
|
||
width: 70px;
|
||
}
|
||
|
||
.time {
|
||
font-size: 12px;
|
||
min-width: 78px;
|
||
}
|
||
}
|
||
|
||
/* Küçük telefonlar */
|
||
@media (max-width: 480px) {
|
||
.btn-primary {
|
||
font-size: 12px;
|
||
padding: 8px 10px;
|
||
height: 34px;
|
||
}
|
||
|
||
.torrent-hash {
|
||
font-size: 11px;
|
||
}
|
||
|
||
.modal-content {
|
||
width: 98% !important;
|
||
height: 76% !important;
|
||
}
|
||
|
||
.volume-slider {
|
||
width: 56px;
|
||
}
|
||
|
||
.bottom-controls {
|
||
flex-direction: column;
|
||
align-items: stretch;
|
||
gap: 6px;
|
||
}
|
||
}
|
||
|
||
/* =======================================================
|
||
💾 DISK SPACE
|
||
======================================================= */
|
||
.sidebar .disk-space {
|
||
margin-top: auto;
|
||
padding: 16px;
|
||
border-top: 1px solid var(--border);
|
||
}
|
||
|
||
/* Media menüsünün disk space'den önce olmasını sağla */
|
||
.sidebar .media-menu {
|
||
margin-top: 10px;
|
||
}
|
||
|
||
.sidebar .disk-space-header {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
margin-bottom: 12px;
|
||
color: #222;
|
||
font-weight: 600;
|
||
font-size: 14px;
|
||
}
|
||
|
||
.sidebar .disk-space-header .icon {
|
||
width: 16px;
|
||
text-align: center;
|
||
color: #333;
|
||
}
|
||
|
||
.sidebar .disk-space-title {
|
||
flex: 1;
|
||
}
|
||
|
||
.sidebar .disk-space-info {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
}
|
||
|
||
.sidebar .disk-space-text {
|
||
font-size: 12px;
|
||
color: #666;
|
||
text-align: left;
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
|
||
.sidebar .disk-space-values {
|
||
font-weight: 500;
|
||
color: #333;
|
||
}
|
||
|
||
.sidebar .disk-space-bar-container {
|
||
width: 100%;
|
||
height: 8px;
|
||
background: #e5e5e5;
|
||
border-radius: 99px;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.sidebar .disk-space-bar {
|
||
width: 100%;
|
||
height: 100%;
|
||
position: relative;
|
||
}
|
||
|
||
.sidebar .disk-space-bar-fill {
|
||
height: 100%;
|
||
background: linear-gradient(90deg, #f5b333 0%, #e2a62f 100%);
|
||
border-radius: 99px;
|
||
transition: width 0.3s ease;
|
||
}
|
||
|
||
/* Disk space renkleri - kullanım oranına göre */
|
||
.sidebar .disk-space-bar-fill.low {
|
||
background: linear-gradient(90deg, #4caf50 0%, #388e3c 100%);
|
||
}
|
||
|
||
.sidebar .disk-space-bar-fill.medium {
|
||
background: linear-gradient(90deg, #ff9800 0%, #f57c00 100%);
|
||
}
|
||
|
||
.sidebar .disk-space-bar-fill.high {
|
||
background: linear-gradient(90deg, #f44336 0%, #d32f2f 100%);
|
||
}
|