-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdetails.html
More file actions
executable file
·148 lines (135 loc) · 7.66 KB
/
Copy pathdetails.html
File metadata and controls
executable file
·148 lines (135 loc) · 7.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="VAILISM — Movie & TV Show Details">
<title>VAILISM - Details</title>
<!-- Favicons -->
<link rel="icon" type="image/png" href="/favicon/favicon-96x96.png" sizes="96x96" />
<link rel="icon" type="image/svg+xml" href="/favicon/favicon.svg" />
<link rel="shortcut icon" href="/favicon/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="/favicon/apple-touch-icon.png" />
<meta name="apple-mobile-web-app-title" content="VAILISM" />
<link rel="manifest" href="/favicon/site.webmanifest" />
<link rel="stylesheet" href="style.css" media="print" onload="this.media='all'">
<noscript><link rel="stylesheet" href="style.css"></noscript>
<link rel="preconnect" href="https://image.tmdb.org" crossorigin>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap" rel="stylesheet" media="print" onload="this.media='all'">
<noscript><link href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap" rel="stylesheet"></noscript>
<script src="https://unpkg.com/lucide@latest" defer></script>
<style>
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: #141414; color: #fff; font-family: 'Outfit', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.navbar { position: fixed; top: 0; width: 100%; padding: 35px 4%; display: flex; justify-content: space-between; align-items: center; background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 100%); z-index: 2000; }
.logo { height: 40px; width: auto; object-fit: contain; cursor: pointer; transition: transform 0.2s ease; }
.logo:hover { transform: scale(1.08); }
.skeleton-text { background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%); background-size: 200% 100%; animation: ld 1.5s infinite; color: transparent !important; border-radius: 4px; min-height: 1.2em; }
@keyframes ld { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
</style>
</head>
<body>
<!-- Navbar -->
<nav class="navbar" id="navbar">
<div class="nav-left">
<img class="logo" src="logo.png" alt="VAILISM" tabindex="0" onclick="window.location.href='index.html'">
</div>
<div class="nav-right">
<button class="profile-btn" id="profileBtn" aria-label="Profile" onclick="window.location.href='index.html?openAuth=true'">
<i data-lucide="user"></i>
</button>
</div>
</nav>
<!-- Offline Banner -->
<div id="offline-banner" class="offline-banner">You're offline — showing cached content</div>
<div id="toast-container" class="toast-container"></div>
<div id="details-view" class="details-view fade-in">
<header class="hero details-hero" id="details-hero">
<div class="hero-vignette details-vignette"></div>
<div class="hero-content details-content">
<h1 class="hero-title skeleton-text" id="details-title">Loading...</h1>
<div class="details-meta" id="details-meta" style="opacity: 0;">
<span id="details-rating" class="meta-rating"></span>
<span id="details-year" class="meta-year"></span>
<span id="details-runtime" class="meta-runtime"></span>
</div>
<div class="details-genres" id="details-genres"></div>
<p class="hero-description skeleton-text" id="details-desc"></p>
<div class="hero-buttons">
<button class="btn btn-play" id="details-play" style="display: none;">
<i data-lucide="play" fill="currentColor"></i> Play
</button>
<button class="btn btn-info" id="details-trailer-btn" style="display: none;">
<i data-lucide="video"></i> Trailer
</button>
<button class="btn btn-watchlist" id="details-watchlist-btn" style="display: none;" aria-label="Add to watchlist">
<i data-lucide="plus"></i> My List
</button>
<!-- Episodes shortcut visible only for TV -->
<button class="btn btn-info" id="details-episodes-btn" style="display: none;" onclick="document.getElementById('episodes-section').scrollIntoView({behavior: 'smooth'})">
<i data-lucide="list"></i> Episodes
</button>
</div>
</div>
</header>
<main class="main-content details-main">
<!-- Episodes Section (Hidden for movies) -->
<section id="episodes-section" class="row hidden">
<div class="episodes-sticky-header" style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;">
<h2 class="row-header" style="margin-bottom: 0;">Episodes</h2>
<select id="season-select" class="season-select"></select>
</div>
<div class="episodes-list" id="episodes-list">
<!-- Episodes injected dynamically -->
</div>
</section>
<!-- Cast Section -->
<section class="row hidden cast-section" id="cast-section">
<h2 class="row-header">Cast</h2>
<div class="row-posters" id="cast-posters">
<!-- Dynamic cast profiles here -->
</div>
</section>
<!-- Similar Content -->
<section class="row" id="similar-section">
<h2 class="row-header">Similar Titles</h2>
<div class="row-posters" id="similar-posters">
<!-- Skeletons render initially -->
<div class="card skeleton"></div>
<div class="card skeleton"></div>
<div class="card skeleton"></div>
<div class="card skeleton"></div>
<div class="card skeleton"></div>
<div class="card skeleton"></div>
</div>
</section>
</main>
</div>
<!-- Trailer Modal -->
<div id="trailer-modal" class="trailer-modal" aria-hidden="true" role="dialog">
<div class="trailer-container">
<button class="trailer-close-btn" id="trailer-close-btn" aria-label="Close trailer">
<i data-lucide="x"></i> Close
</button>
<div id="trailer-player-container" style="width:100%; height:100%;">
<!-- YouTube iframe dynamically injected here -->
</div>
</div>
</div>
<!-- App logic -->
<script type="module" src="js/AuthManager.js"></script>
<script type="module" src="js/cloud-sync.js"></script>
<script type="module" src="js/watchlist.js"></script>
<script type="module" src="js/watch-progress.js"></script>
<script type="module" src="script.js"></script>
<script type="module" src="details.js"></script>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('/sw.js').catch(err => console.error('[SW] Registration failed:', err));
});
}
</script>
</body>
</html>