diff --git a/public/css/main.css b/public/css/main.css index d9b5231..8d59600 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -3144,4 +3144,646 @@ kbd { margin-bottom: var(--space-xs); color: var(--color-text-primary); font-weight: 500; +} + +/* ===================================================== + Watch Page (VOD Player) + ===================================================== */ + +/* Page Container - scrollable */ +.watch-page { + height: 100%; + overflow-y: auto; + overflow-x: hidden; + scroll-behavior: smooth; + background: var(--color-bg-primary); +} + +.watch-page.active { + display: block; +} + +/* Video Section - full viewport height minus navbar */ +.watch-video-section { + position: relative; + width: 100%; + height: calc(100vh - var(--navbar-height)); + min-height: 400px; + background: #000; +} + +#watch-video { + width: 100%; + height: 100%; + object-fit: contain; + background: #000; +} + +/* Player Overlay */ +.watch-overlay { + position: absolute; + inset: 0; + display: flex; + flex-direction: column; + justify-content: space-between; + background: linear-gradient(to bottom, + rgba(0, 0, 0, 0.7) 0%, + transparent 20%, + transparent 75%, + rgba(0, 0, 0, 0.8) 100%); + opacity: 1; + transition: opacity 0.3s ease; + pointer-events: auto; + z-index: 10; +} + +.watch-overlay.hidden { + opacity: 0; + pointer-events: none; +} + +/* Top Bar */ +.watch-top-bar { + display: flex; + align-items: center; + gap: var(--space-md); + padding: var(--space-lg); + padding-top: calc(var(--space-lg) + var(--safe-area-inset-top)); +} + +.watch-back-btn { + width: 48px; + height: 48px; + display: flex; + align-items: center; + justify-content: center; + background: rgba(255, 255, 255, 0.1); + border: none; + border-radius: var(--radius-full); + color: #fff; + cursor: pointer; + transition: background var(--transition-fast); + flex-shrink: 0; +} + +.watch-back-btn:hover { + background: rgba(255, 255, 255, 0.2); +} + +.watch-back-btn .icon { + width: 24px; + height: 24px; +} + +.watch-title-info { + flex: 1; + min-width: 0; +} + +.watch-title { + font-size: 1.25rem; + font-weight: 600; + color: #fff; + margin: 0; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.watch-subtitle { + font-size: 0.875rem; + color: rgba(255, 255, 255, 0.7); + margin: 0; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +/* Center Play Button */ +.watch-center-play { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + width: 80px; + height: 80px; + display: none; + align-items: center; + justify-content: center; + background: rgba(0, 0, 0, 0.6); + border: 2px solid rgba(255, 255, 255, 0.3); + border-radius: var(--radius-full); + color: #fff; + cursor: pointer; + transition: all var(--transition-fast); +} + +.watch-center-play:hover { + background: rgba(0, 0, 0, 0.8); + border-color: rgba(255, 255, 255, 0.5); + transform: translate(-50%, -50%) scale(1.1); +} + +.watch-center-play.show { + display: flex; +} + +.watch-center-play .icon { + width: 40px; + height: 40px; +} + +/* Bottom Bar */ +.watch-bottom-bar { + padding: var(--space-md) var(--space-lg); + padding-bottom: calc(var(--space-lg) + var(--safe-area-inset-bottom)); +} + +/* Progress Container */ +.watch-progress-container { + display: flex; + align-items: center; + gap: var(--space-sm); + margin-bottom: var(--space-md); +} + +.watch-time { + font-size: 0.875rem; + color: rgba(255, 255, 255, 0.8); + min-width: 50px; + font-variant-numeric: tabular-nums; +} + +.watch-time:last-child { + text-align: right; +} + +.watch-progress { + flex: 1; + height: 6px; + -webkit-appearance: none; + appearance: none; + background: rgba(255, 255, 255, 0.3); + border-radius: 3px; + cursor: pointer; +} + +.watch-progress::-webkit-slider-runnable-track { + height: 6px; + border-radius: 3px; +} + +.watch-progress::-webkit-slider-thumb { + -webkit-appearance: none; + appearance: none; + width: 16px; + height: 16px; + background: var(--color-accent); + border-radius: 50%; + cursor: pointer; + margin-top: -5px; + box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); + transition: transform var(--transition-fast); +} + +.watch-progress:hover::-webkit-slider-thumb { + transform: scale(1.2); +} + +/* Control Buttons */ +.watch-controls { + display: flex; + align-items: center; + justify-content: center; + gap: var(--space-sm); +} + +.watch-btn { + position: relative; + width: 44px; + height: 44px; + display: flex; + align-items: center; + justify-content: center; + background: transparent; + border: none; + color: #fff; + cursor: pointer; + border-radius: var(--radius-md); + transition: background var(--transition-fast); +} + +.watch-btn:hover { + background: rgba(255, 255, 255, 0.1); +} + +.watch-btn .icon { + width: 24px; + height: 24px; +} + +.watch-btn-lg { + width: 64px; + height: 64px; + background: rgba(255, 255, 255, 0.1); + border-radius: var(--radius-full); +} + +.watch-btn-lg:hover { + background: rgba(255, 255, 255, 0.2); +} + +.watch-btn-lg .icon { + width: 32px; + height: 32px; +} + +.skip-label { + position: absolute; + bottom: 2px; + font-size: 0.625rem; + font-weight: 600; +} + +.watch-spacer { + flex: 1; +} + +/* Volume Slider */ +.watch-volume { + width: 80px; + height: 4px; + -webkit-appearance: none; + appearance: none; + background: rgba(255, 255, 255, 0.3); + border-radius: 2px; + cursor: pointer; +} + +.watch-volume::-webkit-slider-thumb { + -webkit-appearance: none; + appearance: none; + width: 12px; + height: 12px; + background: #fff; + border-radius: 50%; + cursor: pointer; +} + +/* Scroll Hint */ +.watch-scroll-hint { + position: absolute; + bottom: 100px; + left: 50%; + transform: translateX(-50%); + display: flex; + flex-direction: column; + align-items: center; + gap: var(--space-xs); + color: rgba(255, 255, 255, 0.5); + font-size: 0.75rem; + animation: bounce 2s infinite ease-in-out; + pointer-events: none; +} + +.watch-scroll-hint .icon { + width: 20px; + height: 20px; +} + +@keyframes bounce { + + 0%, + 100% { + transform: translateX(-50%) translateY(0); + } + + 50% { + transform: translateX(-50%) translateY(8px); + } +} + +/* Next Episode Panel */ +.watch-next-episode { + position: absolute; + bottom: 140px; + right: var(--space-lg); + display: flex; + align-items: center; + gap: var(--space-md); + padding: var(--space-md) var(--space-lg); + background: var(--glass-bg); + backdrop-filter: blur(16px); + border: 1px solid var(--glass-border); + border-radius: var(--radius-lg); + box-shadow: var(--shadow-lg); + animation: slideInRight 0.3s ease; + z-index: 20; +} + +.watch-next-episode.hidden { + display: none; +} + +@keyframes slideInRight { + from { + transform: translateX(100px); + opacity: 0; + } + + to { + transform: translateX(0); + opacity: 1; + } +} + +.next-info { + min-width: 0; +} + +.next-label { + font-size: 0.75rem; + text-transform: uppercase; + color: var(--color-text-muted); + margin: 0 0 var(--space-xs) 0; +} + +.next-info h4 { + color: #fff; + margin: 0; + font-size: 0.875rem; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + max-width: 200px; +} + +.next-countdown { + font-size: 1.5rem; + font-weight: 700; + color: var(--color-accent); + min-width: 30px; + text-align: center; +} + +/* ===== Details Section ===== */ +.watch-details-section { + padding: var(--space-xl) var(--space-lg); + padding-bottom: var(--space-2xl); + max-width: 1200px; + margin: 0 auto; +} + +.watch-content-info { + display: flex; + gap: var(--space-xl); + margin-bottom: var(--space-2xl); +} + +.watch-poster { + width: 200px; + height: 300px; + object-fit: cover; + border-radius: var(--radius-md); + flex-shrink: 0; + background: var(--color-bg-tertiary); +} + +.watch-meta { + flex: 1; + min-width: 0; +} + +.watch-meta h2 { + font-size: 2rem; + margin-bottom: var(--space-sm); + color: var(--color-text-primary); +} + +.watch-meta-row { + display: flex; + flex-wrap: wrap; + gap: var(--space-md); + color: var(--color-text-secondary); + margin-bottom: var(--space-md); + font-size: 0.875rem; +} + +.watch-rating { + display: flex; + align-items: center; + gap: var(--space-xs); + color: var(--color-warning); +} + +.watch-description { + color: var(--color-text-secondary); + line-height: 1.7; + margin-bottom: var(--space-lg); + max-width: 700px; +} + +.watch-actions { + display: flex; + gap: var(--space-md); + flex-wrap: wrap; +} + +.watch-actions .btn { + display: flex; + align-items: center; + gap: var(--space-sm); +} + +.watch-actions .btn .icon { + width: 18px; + height: 18px; +} + +.watch-actions .btn .icon-fav-filled { + color: var(--color-error); +} + +/* Recommended Movies Grid */ +.watch-recommended h3, +.watch-episodes h3 { + margin-bottom: var(--space-lg); + font-size: 1.25rem; + color: var(--color-text-primary); +} + +.watch-recommended-grid { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); + gap: var(--space-md); +} + +.watch-recommended-card { + cursor: pointer; + transition: transform var(--transition-fast); +} + +.watch-recommended-card:hover { + transform: scale(1.05); +} + +.watch-recommended-card img { + width: 100%; + aspect-ratio: 2/3; + object-fit: cover; + border-radius: var(--radius-sm); + background: var(--color-bg-tertiary); +} + +.watch-recommended-card p { + margin-top: var(--space-xs); + font-size: 0.813rem; + color: var(--color-text-primary); + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +/* Series Episodes */ +.watch-season-group { + margin-bottom: var(--space-sm); +} + +.watch-season-header { + display: flex; + align-items: center; + gap: var(--space-sm); + padding: var(--space-sm) var(--space-md); + background: var(--color-bg-tertiary); + border-radius: var(--radius-sm); + cursor: pointer; + user-select: none; + transition: background var(--transition-fast); +} + +.watch-season-header:hover { + background: var(--color-bg-hover); +} + +.watch-season-header .icon { + width: 20px; + height: 20px; + color: var(--color-text-muted); + transition: transform var(--transition-fast); +} + +.watch-season-header.collapsed .icon { + transform: rotate(-90deg); +} + +.watch-season-header.collapsed+.watch-episode-list { + display: none; +} + +.watch-season-name { + flex: 1; + font-weight: 500; +} + +.watch-season-count { + font-size: 0.75rem; + color: var(--color-text-muted); +} + +.watch-episode-list { + padding: var(--space-xs) 0 var(--space-xs) var(--space-lg); +} + +.watch-episode-item { + display: flex; + align-items: center; + gap: var(--space-md); + padding: var(--space-sm) var(--space-md); + border-radius: var(--radius-sm); + cursor: pointer; + transition: background var(--transition-fast); +} + +.watch-episode-item:hover { + background: var(--color-bg-hover); +} + +.watch-episode-item.active { + background: var(--color-accent-dim); + border-left: 3px solid var(--color-accent); +} + +.watch-episode-num { + width: 32px; + color: var(--color-text-muted); + font-weight: 600; + font-size: 0.875rem; + flex-shrink: 0; +} + +.watch-episode-title { + flex: 1; + min-width: 0; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.watch-episode-duration { + color: var(--color-text-muted); + font-size: 0.813rem; + flex-shrink: 0; +} + +/* Mobile Responsive */ +@media (max-width: 768px) { + .watch-content-info { + flex-direction: column; + align-items: center; + text-align: center; + } + + .watch-poster { + width: 150px; + height: 225px; + } + + .watch-meta h2 { + font-size: 1.5rem; + } + + .watch-meta-row { + justify-content: center; + } + + .watch-description { + text-align: left; + } + + .watch-actions { + justify-content: center; + } + + .watch-scroll-hint { + display: none; + } + + .watch-volume { + display: none; + } + + .watch-next-episode { + left: var(--space-md); + right: var(--space-md); + bottom: 100px; + flex-wrap: wrap; + } + + .next-info { + flex: 1; + } + + .next-info h4 { + max-width: none; + } } \ No newline at end of file diff --git a/public/index.html b/public/index.html index 10c9307..80a89fd 100644 --- a/public/index.html +++ b/public/index.html @@ -540,6 +540,161 @@ + + +