/**
 * myMediaCaster Phoenix Styles - Responsive & Pixel Perfect
 */

/* Global Reset */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #fff;
  font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

.mdl-layout__content {
  display: flex !important;
  flex-direction: column;
  height: 100%;
}

/* Header */
.mdl-layout__header {
    background-color: #f5f5f5 !important;
    color: #424242 !important;
    box-shadow: none !important;
    border-bottom: 1px solid #e0e0e0;
}

.mdl-layout__header-row {
    height: 56px;
    padding: 0 16px;
}

/* Logo Styling exactly as ScreenshotDesktopView.png */
#main-logo {
  font-size: 18px;
  color: #606060;
  display: flex;
  align-items: center;
  user-select: none;
}

#main-logo em {
  font-style: normal;
  background: #bdbdbd; /* Light grey block */
  color: #fff;
  padding: 0 5px;
  border-top-left-radius: 4px;
}

#main-logo strong {
  background: #757575; /* Darker grey block */
  color: #fff;
  padding: 0 4px;
  font-weight: 500;
}

#main-logo span {
  background: #40c4ff; /* Blue block */
  color: #000;
  padding: 0 6px;
  border-bottom-right-radius: 4px;
}

/* App Layout Grid */
.app-content-container {
    display: flex;
    flex-direction: row;
    flex: 1;
    overflow: hidden;
}

/* Player Section */
.player-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #000;
}

.video-container {
    flex: 1;
    position: relative;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Integrated Control Bar */
.media-control-bar {
    background-color: #f5f5f5;
    height: 80px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #e0e0e0;
}

#track-range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 10;
}

#track-range .mdl-slider__container {
    height: 4px !important;
    padding: 0 !important;
}

/* CLUSTER ICONS IN CENTER */
.control-icons-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px; /* Tight clustering */
    width: 100%;
}

.control-icons-row button {
    margin: 0 !important;
}

#btnPlayPause {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background-color: #40c4ff !important;
    color: #fff !important;
}

.control-icons-row .material-icons {
    color: #212121;
    font-size: 24px;
}

/* Sidebar Section */
.sidebar-section {
    width: 360px;
    flex: 0 0 360px;
    border-left: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

.tab-bar {
    display: flex;
    height: 48px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.tab-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    color: #757575;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab-item.active {
    color: #40c4ff;
    border-bottom-color: #40c4ff;
}

.sidebar-toolbar {
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid #eee;
}

.add-media-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #424242;
    cursor: pointer;
}

.toolbar-actions {
    display: flex;
    gap: 4px;
}

#queue-list-container {
    flex: 1;
    overflow-y: auto;
}

/* Queue Item UI */
.queue-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
}

.active-item {
    background-color: #e1f5fe;
}

.item-icon {
    width: 40px;
    height: 40px;
    background-color: #bdbdbd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

.item-icon .material-icons {
    color: #fff;
    font-size: 20px;
}

.item-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-title {
    font-size: 14px;
    color: #212121;
}

.item-subtitle {
    font-size: 12px;
    color: #757575;
}

/* Mobile View Overrides */
@media (max-width: 600px) {
    .app-content-container {
        flex-direction: column;
        overflow-y: auto;
    }

    .player-section {
        flex: 0 0 auto;
    }

    .video-container {
        height: 35vh;
    }

    .sidebar-section {
        width: 100%;
        flex: 1 0 auto;
        border-left: none;
    }

    .media-control-bar {
        height: 100px;
    }

    .control-icons-row {
        gap: 24px;
    }
}

.visuallyhidden { position: absolute; overflow: hidden; clip: rect(0 0 0 0); height: 1px; width: 1px; margin: -1px; }
.material-icons { font-family: 'Material Icons' !important; }
input[type=range].mdl-slider { margin: 0; padding: 0; }
