@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-dark: #080708;
  --bg-panel: rgba(15, 12, 14, 0.75);
  --bg-input: rgba(10, 8, 9, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(226, 135, 67, 0.4);
  
  --accent-orange: #e28743;
  --accent-red: #ef4444;
  --accent-green: #10b981;
  
  --text-main: #f8f6f7;
  --text-muted: #a39ea0;
  --text-dim: #635d60;
  
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --radius-pill: 9999px;
  
  --shadow-main: 0 30px 60px -15px rgba(0, 0, 0, 0.8);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: rgba(226, 135, 67, 0.25);
  border-radius: 4px;
  border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(226, 135, 67, 0.6);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(226, 135, 67, 0.25) var(--bg-dark);
  user-select: none;
  -webkit-user-select: none;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

input, textarea {
  user-select: text !important;
  -webkit-user-select: text !important;
}

.bg-art-wrapper {
  position: fixed;
  top: 0;
  right: 0;
  width: 65vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background-image: url('../images/bg_art.jpg');
  background-size: cover;
  background-position: center right;
}

.bg-art-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: 
    linear-gradient(to right, var(--bg-dark) 0%, rgba(8, 7, 8, 0.85) 30%, rgba(8, 7, 8, 0.2) 70%, transparent 100%),
    linear-gradient(to bottom, var(--bg-dark) 0%, transparent 15%, transparent 85%, var(--bg-dark) 100%);
}

.layout-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

header {
  padding: 36px 0 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon-box {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(18, 15, 17, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-title strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #ffffff;
}

.brand-title span {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 500;
}

.header-nav {
  display: flex;
  gap: 12px;
}

.btn-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

main.content-area {
  flex: 1;
  display: grid;
  grid-template-columns: 620px 1fr;
  gap: 80px;
  align-items: center;
  padding: 40px 0 60px 0;
}

.hero-section {
  display: flex;
  flex-direction: column;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 24px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-orange);
  box-shadow: 0 0 8px var(--accent-orange);
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 20px;
  color: #fff;
  letter-spacing: -0.5px;
}

.hero-heading em {
  font-style: italic;
  color: #ebdcd6;
  font-weight: 300;
}

.hero-description {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 520px;
}

.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-main);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-status-box {
  background: rgba(226, 135, 67, 0.06);
  border: 1px solid rgba(226, 135, 67, 0.2);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.card-status-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(226, 135, 67, 0.12);
  border: 1px solid rgba(226, 135, 67, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  font-size: 14px;
}

.card-status-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.card-status-text span {
  font-size: 11px;
  color: var(--text-muted);
}

.data-row {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.data-row .lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.custom-dropdown-container {
  position: relative;
  min-width: 140px;
}

.custom-dropdown-trigger {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: var(--transition);
}

.custom-dropdown-trigger:hover, .custom-dropdown-container.open .custom-dropdown-trigger {
  border-color: rgba(226, 135, 67, 0.5);
  background: rgba(226, 135, 67, 0.08);
}

.custom-dropdown-trigger .arrow-icon {
  font-size: 9px;
  color: var(--accent-orange);
  transition: transform 0.2s ease;
}

.custom-dropdown-container.open .custom-dropdown-trigger .arrow-icon {
  transform: rotate(180deg);
}

.custom-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 160px;
  background: rgba(18, 14, 16, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 135, 67, 0.3);
  border-radius: var(--radius-sm);
  padding: 6px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9);
  z-index: 100;
  display: none;
  flex-direction: column;
  gap: 2px;
  animation: dropdownSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dropdownSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.custom-dropdown-container.open .custom-dropdown-menu {
  display: flex;
}

.custom-dropdown-item {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-muted);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-dropdown-item:hover {
  background: rgba(226, 135, 67, 0.15);
  color: #fff;
}

.custom-dropdown-item.active {
  background: rgba(226, 135, 67, 0.25);
  color: var(--accent-orange);
  font-weight: 600;
}

.custom-dropdown-item.active::after {
  content: '✓';
  font-size: 11px;
  color: var(--accent-orange);
}

.dropzone {
  border: 1px dashed rgba(255, 255, 255, 0.15);
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent-orange);
  background: rgba(226, 135, 67, 0.04);
}

.dropzone-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
  color: var(--accent-orange);
  font-size: 18px;
  transition: var(--transition);
}

.dropzone:hover .dropzone-icon {
  border-color: var(--accent-orange);
  background: rgba(226, 135, 67, 0.15);
  transform: translateY(-2px);
}

.dropzone h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #fff;
}

.dropzone p {
  font-size: 11px;
  color: var(--text-muted);
}

.paste-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  font-size: 10px;
  color: var(--text-dim);
}

.paste-badge kbd {
  font-family: var(--font-mono);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 4px;
  border-radius: 3px;
}

#file-input {
  display: none;
}

.upload-status {
  display: none;
}

.preview-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 14px;
  border-radius: var(--radius-md);
}

.preview-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 18px;
  color: var(--accent-orange);
}

.preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-meta {
  flex: 1;
}

.preview-name {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

.preview-bytes {
  font-size: 10px;
  color: var(--text-muted);
}

.progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: var(--accent-orange);
  transition: width 0.1s linear;
}

.results-panel {
  display: none;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  animation: fadeIn 0.3s ease;
}

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

.results-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-green);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.field-group {
  margin-bottom: 12px;
}

.field-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.field-row {
  display: flex;
  gap: 8px;
}

.field-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  outline: none;
}

.field-input:focus {
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-action:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #000;
}

.btn-action.copied {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #fff;
}

.viewer-wrapper {
  margin-top: 10px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.media-display {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin: 14px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  max-height: 480px;
  overflow: hidden;
  position: relative;
}

.media-display img {
  max-width: 100%;
  max-height: 440px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.custom-player-container {
  position: relative;
  width: 100%;
  max-height: 450px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 35px rgba(0,0,0,0.8);
}

.custom-player-container video {
  width: 100%;
  max-height: 410px;
  display: block;
  outline: none;
  cursor: pointer;
  object-fit: contain;
}

.custom-player-container.is-fullscreen {
  max-height: 100vh !important;
  height: 100vh !important;
  width: 100vw !important;
  border-radius: 0 !important;
  background: #000 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.custom-player-container.is-fullscreen video {
  max-height: calc(100vh - 50px) !important;
  height: calc(100vh - 50px) !important;
  width: 100vw !important;
  object-fit: contain !important;
}

.custom-player-container:fullscreen {
  max-height: 100vh !important;
  height: 100vh !important;
  width: 100vw !important;
  border-radius: 0 !important;
  background: #000 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.custom-player-container:fullscreen video {
  max-height: calc(100vh - 50px) !important;
  height: calc(100vh - 50px) !important;
  width: 100vw !important;
  object-fit: contain !important;
}

.custom-player-container:-webkit-full-screen {
  max-height: 100vh !important;
  height: 100vh !important;
  width: 100vw !important;
  border-radius: 0 !important;
  background: #000 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.custom-player-container:-webkit-full-screen video {
  max-height: calc(100vh - 50px) !important;
  height: calc(100vh - 50px) !important;
  width: 100vw !important;
  object-fit: contain !important;
}

.player-controls-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(8, 7, 8, 0.95) 0%, rgba(8, 7, 8, 0.6) 70%, transparent 100%);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.custom-player-container:hover .player-controls-bar,
.custom-player-container.paused .player-controls-bar {
  opacity: 1;
}

.player-btn-icon {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: var(--transition);
}

.player-btn-icon:hover {
  color: var(--accent-orange);
  transform: scale(1.1);
}

.player-timeline-wrapper {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.player-timeline-fill {
  width: 0%;
  height: 100%;
  background: var(--accent-orange);
  border-radius: 3px;
  transition: width 0.1s linear;
}

.player-time-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.player-volume-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 10px;
  margin-top: -10px;
}

.player-volume-popup {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 12, 14, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 90px;
  width: 28px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 20;
}

.player-volume-popup::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 100%;
  height: 15px;
}

.player-volume-wrapper:hover .player-volume-popup,
.player-volume-wrapper.active .player-volume-popup,
.player-volume-popup.active {
  opacity: 1;
  pointer-events: auto;
}

.player-volume-track {
  position: relative;
  width: 4px;
  height: 70px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.player-volume-fill {
  width: 100%;
  height: 100%;
  background: var(--accent-orange);
  border-radius: 2px;
  transition: height 0.05s linear;
}

.stats-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.stat-cell {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

.stat-cell .lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.stat-cell .val {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 2px;
  font-family: var(--font-mono);
}

footer {
  padding: 30px 0;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.toast {
  background: rgba(15, 12, 14, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-orange);
  color: var(--text-main);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.toast.error {
  border-left-color: var(--accent-red);
}

@media (max-width: 1024px) {
  main.content-area {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .bg-art-wrapper {
    width: 100vw;
    opacity: 0.2;
  }
}
