.tpf-list ul, .tpf-grid ul { list-style: none; margin: 0; padding: 0; }
.tpf-list li, .tpf-grid li { padding: 4px 0; border-bottom: 1px dashed #e5e5e5; }
.tpf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.tpf-col { background: #fff; border: 1px solid #eee; padding: 12px; border-radius: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.tpf-time { font-weight: 600; margin-right: 6px; display: inline-block; width: 44px; }
.tpf-like { display: flex; flex-direction: column; gap: 18px; }
.tpf-like-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.tpf-like-chan { display: flex; align-items: center; justify-content: center; }
.tpf-like-logo { width: 80px; height: auto; object-fit: contain; }
.tpf-like-logo-fallback { font-weight: 800; font-size: 20px; text-align: center; }
.tpf-like-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.tpf-like-card { display: grid; grid-template-columns: 120px 1fr; gap: 10px; border: 1px solid #eee; border-radius: 10px; overflow: hidden; background: #fafafa; }
.tpf-like-card.empty { grid-template-columns: 1fr; padding: 16px; background: #fff; }
.tpf-like-thumb img { width: 120px; height: 80px; object-fit: cover; display:block; }
.tpf-like-meta { padding: 8px 8px; }
.tpf-like-time { font-weight: 700; margin-bottom: 4px; }
.tpf-like-title { font-size: 15px; line-height: 1.3; }
@media (max-width: 600px) {
  .tpf-like-row { grid-template-columns: 80px 1fr; }
  .tpf-like-card { grid-template-columns: 100px 1fr; }
  .tpf-like-thumb img { width: 100px; height: 70px; }
}

/* Movie Style Widget Styles */
.tpf-movie-style-widget {
  /* background: #0a0a0a;
  padding: 24px;
  border-radius: 12px;
  margin: 20px 0;
  color: #ffffff; */
}

.tpf-movie-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.tpf-movie-title {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  margin: 0;
}

.tpf-view-all {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  transition: opacity 0.3s ease;
}

.tpf-view-all:hover {
  opacity: 0.7;
}

.tpf-movie-carousel {
  position: relative;
  overflow: hidden;
}

.tpf-movie-scroll-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tpf-movie-scroll-container::-webkit-scrollbar {
  display: none;
}

.tpf-movie-card {
  flex: 0 0 200px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.tpf-movie-card:hover {
  transform: scale(1.05);
}

.tpf-movie-poster {
  position: relative;
  width: 288px;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
}

.tpf-movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tpf-movie-card:hover .tpf-movie-poster img {
  transform: scale(1.1);
}

.tpf-movie-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tpf-movie-placeholder-content {
  text-align: center;
  padding: 20px;
}

.tpf-movie-placeholder-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.tpf-movie-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.tpf-movie-card:hover .tpf-movie-overlay {
  opacity: 1;
}

.tpf-movie-details {
  color: #ffffff;
}

.tpf-movie-card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.tpf-movie-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.tpf-movie-time {
  font-size: 12px;
  color: #cccccc;
}

.tpf-movie-channel {
  font-size: 12px;
  color: #007cba;
  font-weight: 500;
}

.tpf-movie-description {
  font-size: 12px;
  color: #cccccc;
  line-height: 1.4;
  margin: 0;
}

.tpf-movie-info {
  padding: 12px 0;
}

.tpf-movie-name {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.tpf-movie-details-text {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.tpf-movie-year {
  font-size: 14px;
  color: #cccccc;
}

.tpf-movie-duration {
  font-size: 14px;
  color: #cccccc;
}

.tpf-movie-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tpf-movie-genre {
  font-size: 12px;
  color: #007cba;
  background: rgba(0, 124, 186, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.tpf-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.tpf-scroll-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.tpf-scroll-left {
  left: 10px;
}

.tpf-scroll-right {
  right: 10px;
}

.tpf-scroll-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tpf-movie-style-widget {
    padding: 16px;
  }
  
  .tpf-movie-title {
    font-size: 20px;
  }
  
  .tpf-movie-card {
    flex: 0 0 160px;
  }
  
  .tpf-movie-poster {
    width: 160px;
    height: 240px;
  }
  
  .tpf-scroll-btn {
    width: 32px;
    height: 32px;
  }
  
  .tpf-scroll-left {
    left: 5px;
  }
  
  .tpf-scroll-right {
    right: 5px;
  }
}

@media (max-width: 480px) {
  .tpf-movie-card {
    flex: 0 0 140px;
  }
  
  .tpf-movie-poster {
    width: 140px;
    height: 210px;
  }
  
  .tpf-movie-name {
    font-size: 14px;
  }
  
  .tpf-movie-year,
  .tpf-movie-duration {
    font-size: 12px;
  }
}

/* Programme Grid Widget Styles (Legacy) */
.tpf-programme-grid-widget {
  margin: 20px 0;
}

.tpf-no-data {
  text-align: center;
  padding: 40px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #dee2e6;
}

.tpf-no-data h3 {
  color: #6c757d;
  margin: 0 0 16px 0;
  font-size: 20px;
}

.tpf-no-data p {
  color: #6c757d;
  margin: 0 0 8px 0;
  font-size: 14px;
}

.tpf-alternative-notice {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.tpf-alternative-notice p {
  margin: 0;
  color: #856404;
  font-size: 14px;
  font-style: italic;
}

.tpf-programme-header {
  margin-bottom: 24px;
}

.tpf-programme-section-title {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin: 0 0 16px 0;
}

.tpf-channel-info {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #007cba;
}

.tpf-channel-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 4px;
}

.tpf-channel-details h3 {
  margin: 0 0 4px 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.tpf-programme-date {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.tpf-programme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.tpf-programme-item {
  background: #fff;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tpf-programme-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tpf-programme-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.tpf-programme-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tpf-programme-item:hover .tpf-programme-image img {
  transform: scale(1.05);
}

.tpf-programme-content {
  padding: 16px;
}

.tpf-programme-time {
  font-size: 14px;
  font-weight: 600;
  color: #007cba;
  margin-bottom: 8px;
  display: block;
}

.tpf-programme-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.tpf-programme-summary {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.tpf-programme-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.tpf-pagination-btn {
  padding: 8px 16px;
  background: #007cba;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.tpf-pagination-btn:hover:not(:disabled) {
  background: #005a87;
}

.tpf-pagination-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.tpf-pagination-info {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tpf-programme-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .tpf-channel-info {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .tpf-channel-logo {
    width: 50px;
    height: 50px;
  }
  
  .tpf-programme-section-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .tpf-programme-grid {
    gap: 12px;
  }
  
  .tpf-programme-content {
    padding: 12px;
  }
  
  .tpf-programme-image {
    height: 120px;
  }
}

/* Channels List Widget Styles */
.tpf-channels-list {
  background-color: #000000;
  padding: 24px;
  border-radius: 12px;
  margin: 20px 0;
}

.tpf-channels-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.tpf-channels-title {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  margin: 0;
}

.tpf-channels-view-all {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  transition: opacity 0.3s ease;
}

.tpf-channels-view-all:hover {
  opacity: 0.8;
}

.tpf-channels-scroll {
  position: relative;
  overflow: hidden;
}

.tpf-channels-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.tpf-channels-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.tpf-channel-item {
  flex: 0 0 280px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
}

.tpf-channel-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
}

.tpf-channel-logo {
  width: 60px;
  height: 60px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.tpf-channel-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tpf-channel-logo-fallback {
  font-weight: bold;
  font-size: 14px;
  color: #ffffff;
  text-align: center;
}

.tpf-channel-info {
  color: #ffffff;
}

.tpf-channel-name {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 12px 0;
  color: #ffffff;
  line-height: 1.2;
}

.tpf-current-program,
.tpf-next-program {
  margin-bottom: 8px;
}

.tpf-current-program:last-child,
.tpf-next-program:last-child {
  margin-bottom: 0;
}

.tpf-program-time {
  font-size: 14px;
  color: #cccccc;
  margin-bottom: 4px;
  font-weight: 500;
}

.tpf-program-title {
  font-size: 15px;
  color: #ffffff;
  line-height: 1.3;
  font-weight: 500;
}

.tpf-scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.tpf-scroll-arrow:hover {
  background: rgba(0, 0, 0, 0.9);
}

.tpf-scroll-arrow-right {
  right: 10px;
}

.tpf-scroll-arrow-left {
  left: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tpf-channels-list {
    padding: 16px;
    margin: 16px 0;
  }
  
  .tpf-channels-title {
    font-size: 20px;
  }
  
  .tpf-channel-item {
    flex: 0 0 240px;
    padding: 12px;
  }
  
  .tpf-channel-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
  }
  
  .tpf-channel-name {
    font-size: 16px;
    margin-bottom: 10px;
  }
  
  .tpf-program-title {
    font-size: 14px;
  }
  
  .tpf-program-time {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .tpf-channels-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .tpf-channel-item {
    flex: 0 0 200px;
  }
  
  .tpf-channels-container {
    gap: 16px;
  }
}
