/*
Theme Name: OTT Theme
Theme URI: https://example.com/
Author: Gemini
Author URI: https://google.com/
Description: A simple OTT platform theme for WordPress.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: video, ott, streaming
*/

/* --- Global Styles & Dark Theme --- */
body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

a {
    color: #bb86fc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff;
}

/* --- Header --- */
.site-header {
    background-color: #1f1f1f;
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title a {
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.login-button a {
    background-color: #bb86fc;
    color: #121212;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

.login-button a:hover {
    background-color: #a76ef4;
    color: #121212;
}


/* --- Main Content & Page Titles --- */
.page-header, .entry-header {
    border-bottom: 1px solid #444;
    margin-bottom: 30px;
    padding-bottom: 15px;
}

.page-title, .entry-title {
    font-size: 36px;
    color: #ffffff;
}

/* --- Channels Grid --- */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.channel-tile {
    display: block;
    background-color: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
    position: relative;
}

.channel-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.channel-thumbnail {
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
    background-color: #333;
}

.channel-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.placeholder-thumbnail span {
    color: #fff;
    font-size: 16px;
    padding: 10px;
}


.channel-title {
    font-size: 18px;
    color: #e0e0e0;
    padding: 15px;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

/* --- Single Channel & Video Player --- */
.video-player-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    background: #000;
}

#hls-player {
    width: 100%;
    height: auto;
}

.login-prompt {
    text-align: center;
    padding: 40px;
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
}

.login-prompt p {
    font-size: 18px;
    margin-bottom: 20px;
}

.login-prompt a.button {
    background-color: #bb86fc;
    color: #121212;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 16px;
    display: inline-block;
}

.login-prompt a.button:hover {
    background-color: #a76ef4;
    color: #121212;
}


/* --- Footer --- */
.site-footer {
    margin-top: 40px;
    padding: 20px 0;
    background-color: #1f1f1f;
    border-top: 1px solid #333;
    text-align: center;
    font-size: 14px;
}
