/**
 * TCM Schedule Frontend Styles
 */

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

/* Filters */
.tcm-filters {
    margin-bottom: 20px;
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
}

.tcm-country-filters {
    float: right;
}

.country-code {
    float: right;
    padding: 5px 15px;
    font-size: 16px;
    color: red;
    background: #fff;
    text-decoration: none;
    border: 1px solid red;
    margin: 0 5px;
    border-radius: 3px;
    transition: all 0.3s;
}

.country-code:hover {
    background: #ffe0e0;
}

.country-code.selected-country {
    background: red;
    color: #fff;
}

.tcm-view-filters {
    float: left;
}

.schedule-view {
    float: left;
    padding: 5px 15px;
    font-size: 14px;
    color: green;
    background: #fff;
    text-decoration: none;
    border: 1px solid green;
    margin-right: 5px;
    border-bottom: 0;
    border-radius: 3px 3px 0 0;
    transition: all 0.3s;
}

.schedule-view:hover {
    background: #e0ffe0;
}

.schedule-view.selected-view {
    background: green;
    color: #fff;
}

.tcm-timezone-selector {
    float: right;
    margin-right: 20px;
}

.tcm-timezone-selector span {
    margin-right: 5px;
}

.tcm-timezone-selector select {
    padding: 5px;
    font-size: 14px;
}

/* Search Form */
.tcm-search-form {
    float: right;
    margin-right: 15px;
}

.tcm-search-form input[type="text"] {
    padding: 5px;
    font-size: 14px;
    width: 250px;
}

.tcm-search-form input[type="submit"] {
    padding: 5px 15px;
    font-size: 14px;
    background: #0073aa;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 3px;
}

.tcm-search-form input[type="submit"]:hover {
    background: #005177;
}

/* Schedule Table */
.tcm-schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tcm-schedule-table thead {
    background: #333;
    color: #fff;
}

.tcm-schedule-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.tcm-schedule-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

.tcm-schedule-table tbody tr:nth-child(odd) {
    background: #fff;
}

.tcm-schedule-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.tcm-schedule-table tbody tr:hover {
    background: #f0f0f0;
}

.tcm-schedule-table td {
    padding: 12px;
    vertical-align: top;
}

/* Period Headers */
.period-header td {
    background: #666 !important;
    color: #fff !important;
    font-weight: 600;
    padding: 10px 12px !important;
}

.period-header.morning td {
    background: blue !important;
}

.period-header.afternoon td {
    background: magenta !important;
}

.period-header.primetime td {
    background: black !important;
}

.period-header.latenight td {
    background: brown !important;
}

.date-separator td {
    background: #000 !important;
    color: #fff !important;
    font-weight: 600;
    padding: 10px 12px !important;
}

.date-header td {
    background: #000 !important;
    color: #fff !important;
    padding: 8px 12px !important;
}

.time-slot {
    float: left;
    font-size: 16px;
}

.human-date {
    float: left;
    padding-left: 20px;
    font-size: 16px;
}

/* Time Column */
.time-column {
    width: 120px;
    font-size: 13px;
}

.time-column strong {
    font-size: 14px;
}

/* Details Column */
.details-column {
    width: 500px;
}

.movie-thumbnail {
    float: left;
    margin-right: 10px;
}

.movie-thumbnail img {
    width: 54px;
    height: 74px;
    border: 1px solid #ddd;
}

.movie-details {
    float: left;
    max-width: 420px;
}

.movie-details strong {
    font-size: 15px;
    display: block;
    margin-bottom: 5px;
}

/* Actions Column */
.actions-column {
    width: 160px;
}

/* Clear floats */
.clear, .clear2 {
    clear: both;
}

/* Weekly View */
.tcm-schedule-table.weekly td {
    font-size: 13px;
}

/* Search Results */
.tcm-schedule-table.search-results tbody tr:first-child td {
    background: #e7f3ff;
    font-weight: 600;
    padding: 10px 12px;
}
.amazon_button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FF9900;
    color: #fff !important;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s;
}

.amazon_button:hover {
    background-color: #E68A00;
    text-decoration: none;
}

.actions-column {
    text-align: center;
    vertical-align: top;
}

/* Responsive */
@media (max-width: 768px) {
    .tcm-schedule-container {
        padding: 10px;
    }
    
    .tcm-country-filters,
    .tcm-view-filters,
    .tcm-timezone-selector,
    .tcm-search-form {
        float: none;
        margin: 10px 0;
    }
    
    .country-code,
    .schedule-view {
        display: inline-block;
        margin: 5px;
    }
    
    .tcm-schedule-table {
        font-size: 12px;
    }
    
    .details-column {
        width: auto;
    }
    
    .movie-thumbnail img {
        width: 40px;
        height: 55px;
    }


}
